SuperAPI AI Directory

linkfox-temu-order-global

Office & productivity

View repository

Updated 10-16 00:00

About this skill

Temu Global site order management API (Manage Order)

This skill (linkfox-temu-order-global) covers the Global region (site=global, non-US/Europe) under the Order menu, the bg.order.* / temu.local.order.* endpoints (menu_code=dbd3d395963a408984b8ae7dbc5f64f9,sub_menu_code see partner-global-catalog.md). For the US site, use linkfox-temu-order-us; for the Europe site, use linkfox-temu-order-eu。

Currently integrated: 9 endpoints; the remaining order endpoints will be added one by one according to the Partner documentation to references/apis/ and global_order_*.py。

Gateway (built into this skill):

Capability Method Path
Order OpenAPI (global_order_*、temu_global_proxy) POST https://tool-gateway.linkfox.com/temu/proxy
signed file download POST https://tool-gateway.linkfox.com/temu/fileDownload

Related skills

Scenario skill
Product list/detail/edit/inventory/listing and delisting linkfox-temu-manage-product-global
US site orders linkfox-temu-order-us
Europe site orders linkfox-temu-order-eu
Product publishing, categories, V2 add linkfox-temu-add-product-us
Price/supply price, pricing sheets linkfox-temu-price-global
Cancel orders (buyer + seller) linkfox-temu-cancel-order-global
Returns and refunds linkfox-temu-returns-refunds-us
Fulfillment/shipping (including self-shipping) linkfox-temu-fulfillment-global
Gateway and Temu token This skill scripts/

How to call

  • API endpoint:POST /temu/proxy(different operations are distinguished by the request body; for complete parameters/responses/error codes see references/api.md)
  • Python script:python scripts/<脚本名>.py '<JSON 参数>' [--inline](available scripts are listed in the script overview above)
  • Cost constraint: This tool consumes compute; on failure/empty results, do not automatically switch keywords, paginate, or repeatedly probe; if you need to continue searching, first explain to the user that additional consumption will be incurred.

Output strategy (default script behavior):

  • Alwayswrite the complete response to <cwd>/linkfox/<YYYY-MM-DD>/<session>/data/<skill-name>-<timestamp>.json(<cwd> is the working directory when the script runs, which in Claude Code is the current project directory;<session> is taken from the environment variable SESSION_ID, automatically aggregated according to the user's task;writing to /tmp is prohibited, and if the current directory is not writable, report an error)
  • Response body ≤ 8 KB: after writing to disk, print the complete JSON to stdout
  • Response body > 8 KB: after writing to disk, stdout outputs only a summary (top-level fields, common counts such as total/costToken, the length of the largest list field + the first 3 samples)
  • Add --inline to force full printing to stdout (also written to disk)

Data reading suggestions: First look at the summary to judge whether it is sufficient; when specific fields are needed, prefer to use jqorConvertFrom-Json to extract on demand from the saved json file, avoiding bringing the entire JSON into context.

Document Content
api.md Gateway, authentication, error codes, extended flows
partner-global-catalog.md Endpoint catalog + Partner URL + scripts (updated as integrations are added)
apis/README.md Split into files by endpoint(apis/<type-slug>.md)

Resolve authentication and compute issues

When the following abnormal situations occur, use references/onboarding.md to guide resolution:

Abnormal situation

  • API Key not configured: The environment variable is not configured with LINKFOX_AGENT_API_KEYis also not configured LINKFOXAGENT_API_KEY。
  • Respond with 401 or 402 status code
  • Response indicates insufficient computing power or balance: The message contains "insufficient computing power balance/insufficient billing/insufficient balance/quota exceeded/insufficient balance/package expired/recharge required/please recharge", or content with a similar meaning.

Default parameters

Field Default Description
site global Partner Global
managementType semi-managed Semi-managed
tokenPurpose order-shipping Order/shipping scenario token (see access-token.md)

Authentication

  1. LinkFox:LINKFOXAGENT_API_KEY → Header Authorization + Token
  2. Temu:accessToken or storeKey(storeKey , it is recommended to include tokenPurpose=order-shipping)

Scripts (by type)

Script type Status
global_order_list_v2_get.py bg.order.list.v2.get Integrated
global_order_detail_v2_get.py bg.order.detail.v2.get Integrated
global_order_shippinginfo_v2_get.py bg.order.shippinginfo.v2.get Integrated
global_order_decryptshippinginfo_get.py bg.order.decryptshippinginfo.get Integrated
global_order_amount_query.py bg.order.amount.query Integrated
global_order_amount_v2_query.py temu.order.amount.v2.query Integrated
global_order_combinedshipment_list_get.py bg.order.combinedshipment.list.get Integrated
global_order_customization_get.py bg.order.customization.get Integrated
global_order_verification_upload.py temu.local.order.verification.upload Integrated
temu_global_proxy.py Any type General
temu_global_file_download.py Signed file download General

Integrating a new API (convention)

Each time you provide a Partner document (type + parameter table + optional sub_menu_code), you will:

  1. Add references/apis/<type-slug>.md(complete input/output parameter hierarchy)
  2. Add scripts/global_order_<slug>.py(call _global_order_script.run_cli)
  3. Update partner-global-catalog.md、apis/README.md and this table

Example

export LINKFOXAGENT_API_KEY="<key>"

# 订单列表 V2(待发货 parentOrderStatus=2)
python scripts/global_order_list_v2_get.py '{
  "accessToken": "TOKEN",
  "site": "global",
  "tokenPurpose": "order-shipping",
  "request": {
    "pageNumber": 1,
    "pageSize": 20,
    "parentOrderStatus": 2
  }
}'

# 按父订单号查询(最多 20 个)
python scripts/global_order_list_v2_get.py '{
  "accessToken": "TOKEN",
  "site": "global",
  "tokenPurpose": "order-shipping",
  "request": {
    "parentOrderSnList": ["PO-123456789"]
  }
}'

# 订单详情 V2(须 parentOrderSn)
python scripts/global_order_detail_v2_get.py '{
  "accessToken": "TOKEN",
  "site": "global",
  "tokenPurpose": "order-shipping",
  "request": {
    "parentOrderSn": "PO-123456789"
  }
}'

# 收货地址 V2(传 parentOrderSn)
python scripts/global_order_shippinginfo_v2_get.py '{
  "accessToken": "TOKEN",
  "site": "global",
  "tokenPurpose": "order-shipping",
  "request": {
    "parentOrderSn": "PO-123456789"
  }
}'

# 敏感收货地址解密(传 parentOrderSn)
python scripts/global_order_decryptshippinginfo_get.py '{
  "accessToken": "TOKEN",
  "site": "global",
  "tokenPurpose": "order-shipping",
  "request": {
    "parentOrderSn": "PO-123456789"
  }
}'

# 订单金额/供货价(ERP 对账,传 parentOrderSn)
python scripts/global_order_amount_query.py '{
  "accessToken": "TOKEN",
  "site": "global",
  "tokenPurpose": "order-shipping",
  "request": {
    "parentOrderSn": "PO-123456789"
  }
}'

# 订单金额 V2(税费拆分更细,传 parentOrderSn)
python scripts/global_order_amount_v2_query.py '{
  "accessToken": "TOKEN",
  "site": "global",
  "tokenPurpose": "order-shipping",
  "request": {
    "parentOrderSn": "PO-123456789"
  }
}'

# 可合并发货订单组(request 可为空对象)
python scripts/global_order_combinedshipment_list_get.py '{
  "accessToken": "TOKEN",
  "site": "global",
  "tokenPurpose": "order-shipping",
  "request": {}
}'

# 定制商品内容(子订单号 orderSn,单次最多 10 个)
python scripts/global_order_customization_get.py '{
  "accessToken": "TOKEN",
  "site": "global",
  "tokenPurpose": "order-shipping",
  "request": {
    "orderSnList": ["SO-123456789", "SO-987654321"]
  }
}'

# 上传 SN/IMEI 或二手鉴真(orderList[].orderSn)
python scripts/global_order_verification_upload.py '{
  "accessToken": "TOKEN",
  "site": "global",
  "tokenPurpose": "order-shipping",
  "request": {
    "orderList": [
      {
        "orderSn": "SO-123456789",
        "verificationInfo": [
          {
            "serialNumber": "SN-001234567890",
            "imeiNumberList": ["352099001761481"]
          }
        ]
      }
    ]
  }
}'

Feedback: skillName:linkfox-temu-order-global

Gateway and authorization scripts

Script Description
check_linkfox_token.py Verify LinkFox user Token
temu_token_guide.py Temu accessToken backend authorization steps
save_temu_access_token.py Save accessToken locally
list_temu_access_tokens.py List saved tokens
get_temu_access_token.py Read saved token
temu_proxy.py General gateway forwarding (multi-site)
temu_file_download.py Signed file download (multi-site)

Authorization instructions:references/access-token.md

Computing power consumption rules

No computing power is consumed.