SuperAPI AI Directory

linkfox-temu-cancel-order-eu

Coding & development

View repository

Updated 10-16 06:23

About this skill

Temu Europe site — Cancel Order (Buyer + Seller)

This skill (linkfox-temu-cancel-order-eu) covers Partner Platform for EU cancel orderrelated interfaces:

  • Buyer/Consumer:bg.aftersales.cancel.list.get、bg.aftersales.cancel.agree
  • Store/Seller:temu.order.cancel.appeal.apply、temu.order.cancel.appeal.result.get、temu.order.cancel.outofstock.apply、temu.order.cancel.outofstock.result.get

See partner-eu-catalog.md(6 interfaces).

Gateway (built into this skill):

Capability Method Path
Cancel order OpenAPI (eu_cancel_*、eu_seller_cancel_*、temu_eu_proxy) POST https://tool-gateway.linkfox.com/temu/proxy
signature file download POST https://tool-gateway.linkfox.com/temu/fileDownload

Related skills

Scenario skill
Order list/detail/shipping/address/amount linkfox-temu-order-eu
US site cancel order linkfox-temu-cancel-order-us
Global site (non-US/EU) cancel order linkfox-temu-cancel-order-global
Self-Fulfilled Shipments linkfox-temu-fulfillment-eu(site=eu)
Product management linkfox-temu-manage-product-eu
Returns and refunds linkfox-temu-returns-refunds-eu
Gateway and Temu token This skill scripts/

How to call

  • API endpoint:POST /temu/proxy(business operations are distinguished by the type in the request body; for complete parameters/responses/error codes see references/api.md)
  • Python script:python scripts/<脚本名>.py '<JSON 参数>' [--inline](available scripts see the script list 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 (script default behavior):

  • Alwayswrite the complete response to <cwd>/linkfox/<YYYY-MM-DD>/<session>/data/linkfox-temu-cancel-order-eu-<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 task;writing to /tmp is prohibited, if the current directory is not writable then report an error)
  • Response body ≤ 8 KB: after saving to disk, print the complete JSON to stdout
  • Response body > 8 KB: after saving to disk, stdout outputs only a summary (top-level fields, common counts such as total/costToken, length of the largest list field + first 3 samples)
  • Add --inline to force full printing to stdout (also saved to disk)

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

Resolve authentication and compute issues

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

Abnormal situations

  • API Key not configured: environment variable not configured LINKFOX_AGENT_API_KEY, and also not configured LINKFOXAGENT_API_KEY。
  • Response 401 or 402 status code
  • Response indicates insufficient compute or balance: the message contains "insufficient compute 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 eu Partner EU
managementType semi-managed Semi-managed
tokenPurpose order-shipping Order/cancel scenario token

Authentication

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

Scripts (by type)

Buyer cancellation

Script type
eu_cancel_aftersales_cancel_list_get.py bg.aftersales.cancel.list.get
eu_cancel_aftersales_cancel_agree.py bg.aftersales.cancel.agree

Seller cancellation

Script type
eu_seller_cancel_order_cancel_appeal_apply.py temu.order.cancel.appeal.apply
eu_seller_cancel_order_cancel_appeal_result_get.py temu.order.cancel.appeal.result.get
eu_seller_cancel_order_cancel_outofstock_apply.py temu.order.cancel.outofstock.apply
eu_seller_cancel_order_cancel_outofstock_result_get.py temu.order.cancel.outofstock.result.get

General

Script Description
temu_eu_proxy.py Any type
temu_eu_file_download.py signed file download

Integrate new interface (convention)

  1. Add references/apis/<type-slug>.md
  2. Add scripts/eu_cancel_* or eu_seller_cancel_*(call _eu_cancel_order_script.run_cli)
  3. Update partner-eu-catalog.md、apis/README.md

Example

export LINKFOXAGENT_API_KEY="<key>"

python scripts/eu_cancel_aftersales_cancel_list_get.py '{
  "accessToken": "TOKEN",
  "tokenPurpose": "order-shipping",
  "site": "eu",
  "request": { "pageNo": 1, "pageSize": 20, "afterSalesStatusGroup": 8 }
}'

python scripts/eu_seller_cancel_order_cancel_outofstock_apply.py '{
  "accessToken": "TOKEN",
  "tokenPurpose": "order-shipping",
  "site": "eu",
  "request": {
    "parentOrderSn": "PO-123456789",
    "orderSnList": ["O-111111111"]
  }
}'

Feedback: skillName:linkfox-temu-cancel-order-eu

Gateway and authorization scripts

Authorization description:references/access-token.md

Computing power consumption rules

Does not consume computing power.