Graphrt

TikTok Shop

Toko, produk, inventory dan harga, pesanan, fulfillment, retur, layanan pelanggan

Eksperimental v0.1.0 Node.js 15 aksi Risiko ToS rendah
Pakai di Graphrt Desktop

Tentang

Plugin Graphrt untuk toko seller di TikTok Shop, lewat TikTok Shop Partner API (open-api.tiktokglobalshop.com, endpoint berversi mulai 202309). Mencakup produk, inventory dan harga, pesanan, pengiriman, retur dan pesan pembeli. Setiap request ditandatangani dengan app secret kamu, sesuai syarat TikTok Shop.

Yang bisa dilakukan

  • Shops: get_authorized_shops, which returns each shop's cipher
  • Products: - search_products and get_product. - update_inventory (node only, per SKU and warehouse, each SKU/warehouse pair once) and update_price (node only, per SKU, currency as an uppercase code such as IDR, IDR, JPY, KRW and VND prices must be whole numbers).
  • Orders: search_orders and get_order_detail (up to 50 orders)
  • Fulfilment: ship_package (node only, TikTok Shipping pickup or drop-off, or seller shipping) and get_package_shipping_document (a label or packing slip URL that is valid for 24 hours, the plugin does not download it)
  • Returns: search_returns
  • Customer service: get_conversations, get_conversation_messages and send_message (text or cards)
  • Token refresh (node only): refresh_access_token calls auth.tiktok-shops.com and returns the new tokens
  • api_request: any other Open API endpoint, signed. Set include_shop_cipher: false for app-level endpoints. Paths may use only letters, digits, _, - and ~ per segment (no % encodings or dots), so the signed path is exactly the path that is sent.

Aksi

Setiap aksi adalah langkah yang bisa ditambahkan ke workflow. Agent juga bisa memakai sebagian besar aksi sebagai tool.

  • Get TikTok Shop authorized shops tiktok-shop-api.get_authorized_shops
  • Search TikTok Shop products tiktok-shop-api.search_products
  • Get a TikTok Shop product tiktok-shop-api.get_product
  • Update TikTok Shop inventory tiktok-shop-api.update_inventory
  • Update TikTok Shop price tiktok-shop-api.update_price
  • Search TikTok Shop orders tiktok-shop-api.search_orders
  • Get TikTok Shop order details tiktok-shop-api.get_order_detail
  • Get TikTok Shop shipping document tiktok-shop-api.get_package_shipping_document
  • Ship a TikTok Shop package tiktok-shop-api.ship_package
  • Search TikTok Shop returns tiktok-shop-api.search_returns
Tampilkan semua 15 aksi
  • List TikTok Shop buyer conversations tiktok-shop-api.get_conversations
  • Get TikTok Shop conversation messages tiktok-shop-api.get_conversation_messages
  • Send a TikTok Shop buyer message tiktok-shop-api.send_message
  • Refresh TikTok Shop access token tiktok-shop-api.refresh_access_token
  • TikTok Shop API request tiktok-shop-api.api_request

Pengaturan

Graphrt menyalakan plugin dengan environment yang bersih. Hanya nilai ini yang sampai ke plugin, dan secret tidak masuk log.

  • TIKTOK_SHOP_APP_KEY Wajib
    App key from Partner Center
  • TIKTOK_SHOP_APP_SECRET Wajib
    App secret, used to sign every request. Never an argument
  • TIKTOK_SHOP_ACCESS_TOKEN For API operations
    Seller access token, sent in the x-tts-access-token header (valid about 7 days)
  • TIKTOK_SHOP_CIPHER For shop operations
    The shop's cipher from get_authorized_shops
  • TIKTOK_SHOP_REFRESH_TOKEN For refresh_access_token
    Refresh token

Cara memakainya

Di Graphrt Desktop

  1. Buka Plugins dan cari TikTok Shop.
  2. Klik Install lalu setujui.
  3. Ikuti langkah setup di halaman plugin, lalu tempel pengaturan yang dibutuhkan.
  4. Jelaskan pekerjaan yang membutuhkannya, dan builder menambahkan langkahnya.
Plugin di Graphrt Desktop

Dengan CLI

terminal
$ graphrt plugin install tiktok-shop-api --yes
workflow.yaml
- id: to_ship
  type: tiktok-shop-api.search_orders
  order_status: AWAITING_SHIPMENT
  create_time_ge: 1763424000   # Unix seconds
- id: stock
  type: tiktok-shop-api.update_inventory
  product_id: "1729592969712207008"
  skus: [{ sku_id: "1729592969712207013", quantity: 25 }]
- id: reply
  type: tiktok-shop-api.send_message
  conversation_id: "{{#start.conversation_id#}}"
  text: "Terima kasih! Paket kakak sudah kami kirim."
Plugin di docs