Install
openclaw skills install @linkfox-ai/linkfox-tiktok-shop-fulfillmentTikTok Shop ERP 履约(Fulfillment)业务技能,经 /tiktokShop/developerProxy(appType=erp)转发 Fulfillment Open API:查询订单拆单属性(Get Order Split Attributes)。依赖 linkfox-tiktok-shop-auth 选店(传 openId;token 后台化,勿手动 refresh)。当用户提到 TikTok 小店拆单、订单能否拆分、拆单属性、must_split、can_split、Get Order Split Attributes、split_attributes、订单拆包裹、TikTok Shop fulfillment split 时触发。**不含授权**(用 linkfox-tiktok-shop-auth);**不含订单列表/详情**(用 linkfox-tiktok-shop-order);发货/包裹后续可继续扩展本 skill。
openclaw skills install @linkfox-ai/linkfox-tiktok-shop-fulfillment本 skill 调用 TikTok Shop 卖家 ERP 履约开放接口。统一经 LinkFox 网关:
linkfox-tiktok-shop-auth → openId(选店)
↓
POST /tiktokShop/developerProxy
appType = erp
openId = <ERP openId> # 网关从库取 token;ttsAccessToken 已废弃
path / method / queryString / body
↓
401 或 token 失效 → 网关自动 refresh 并重试一次
↓
TikTok Open API → 网关透传 httpStatus + body
📌 前置依赖:
linkfox-tiktok-shop-auth(固定 ERP)。 📌 勿手动刷新 token:业务调用只需openId;网关遇 401/过期会自动续签。 📌 转发说明 + 索引:references/api.md📌 完整官方参数/响应:references/apis/<api>.md📌 官方入口:Get Order Split Attributes
python scripts/check_auth_dependency.py;exit 42 → 先安装并完成 linkfox-tiktok-shop-auth。/refreshToken。linkfox-tiktok-shop-order,再对本 skill 传 order_ids。| 概念 | 说明 |
|---|---|
| 转发入口 | 仅 POST /tiktokShop/developerProxy,固定 appType=erp |
| path | 相对路径,如 fulfillment/202309/orders/split_attributes;白名单 fulfillment/、authorization/ |
| shop_cipher | 来自 get_authorized_shops;单店可自动解析 |
| Get Order Split Attributes | Query order_ids(可数组,脚本拼逗号)+ shop_cipher |
| 与订单 skill 分工 | list/detail → shop-order;拆单属性/履约 → 本 skill |
| 脚本 | 作用 |
|---|---|
check_auth_dependency.py | 检测 linkfox-tiktok-shop-auth |
fulfillment_api.py | 具名 API |
fulfillment_proxy.py | 通用 path/method |
get_authorized_shops.py | 取 shop_cipher |
get_order_split_attributes.py | 拆单属性(202309) |
共享模块:_shop_fulfillment_common.py、_fulfillment_endpoints.py、_fulfillment_api_runner.py。
linkfox-tiktok-shop-auth 选 ERP 店 → openIdlinkfox-tiktok-shop-order 查到目标订单号get_authorized_shops → shop_cipher(多店必传)get_order_split_attributes 传入 order_ids,查看 can_split / must_split 等python scripts/get_authorized_shops.py '{"openId":"..."}'
python scripts/get_order_split_attributes.py '{
"openId": "...",
"order_ids": ["576461413038785752"]
}'
python scripts/fulfillment_api.py '{
"api": "get_order_split_attributes",
"openId": "...",
"order_ids": ["5764...","5765..."]
}'
order_id 的 can_split / must_split / reason / must_split_reasons。errcode=1005 → 需放行 fulfillment/、authorization/。linkfox-tiktok-shop-order)。return_refund/)。不消耗积分(以网关实际为准)。
Feedback:skillName = linkfox-tiktok-shop-fulfillment。
More skills: LinkFox Skills