skillZs
★ LIVE SKILL TAGS ★
>>> LIVE SKILLS INDEX <<<
* OPEN SOURCE *
NO LOGIN, NO TRACKING
※ REAL INSTALL DATA ※
← back to all skills
linkfox-ai/linkfox-skills316 installs

linkfox-temu-cancel-order-us

Temu 美国站取消订单 API(买家+卖家合一),经 LinkFox 网关转发 Partner US:买家售后取消列表/同意(bg.aftersales.cancel.*)、卖家申诉/缺货取消(temu.order.cancel.appeal/outofstock.*)等。当用户提到 Temu US 取消订单、买家取消、卖家取消、缺货取消、afterSalesStatusGroup、applySn、order-shipping 时触发。订单用 linkfox-temu-order-us;欧洲站用 linkfox-temu-cancel-order-eu;全球站用 linkfox-temu-cancel-order-global。

How do I install this agent skill?

npx skills add https://github.com/linkfox-ai/linkfox-skills --skill linkfox-temu-cancel-order-us
view source ↗

Is this agent skill safe to install?

  • Gen Agent Trust Hubpass

    This skill provides a set of tools to interact with Temu's Order Cancellation API through a LinkFox gateway. It facilitates Temu seller operations by managing authentication, local token storage, and API request proxying. The technical implementation is consistent with the vendor's stated purpose, and all external communications are directed to verified vendor domains.

  • Socketwarn

    1 alert: gptSecurity

  • Snykwarn

    Risk: MEDIUM · 1 issue

What does this agent skill do?

Temu 美国站 — 取消订单(买家 + 卖家)

本 skill(linkfox-temu-cancel-order-us)覆盖 Partner Platform for US 取消订单相关接口:

  • 买家/消费者:bg.aftersales.cancel.list.get、bg.aftersales.cancel.agree
  • 店家/卖家:temu.order.cancel.appeal.apply、temu.order.cancel.appeal.result.get、temu.order.cancel.outofstock.apply、temu.order.cancel.outofstock.result.get

详见 partner-us-catalog.md(6 个接口)。

网关(本 skill 内置):

能力方法路径
取消单 OpenAPI(us_cancel_*、us_seller_cancel_*、temu_us_proxy)POSThttps://tool-gateway.linkfox.com/temu/proxy
加签文件下载POSThttps://tool-gateway.linkfox.com/temu/fileDownload

相关 skill

场景skill
订单列表/详情/发货/地址/金额linkfox-temu-order-us
欧洲站取消订单linkfox-temu-cancel-order-eu
全球站(非 US/EU)取消订单linkfox-temu-cancel-order-global
履约/发货linkfox-temu-fulfillment-us
商品管理linkfox-temu-manage-product-us
退货与退款linkfox-temu-returns-refunds-us
网关与 Temu token本 skill scripts/

调用方式

  • API 端点:POST /temu/proxy(不同操作通过请求体区分;完整参数/响应/错误码见 references/api.md)
  • Python 脚本:python scripts/<脚本名>.py '<JSON 参数>' [--inline](可用脚本见上文脚本一览)
  • 成本约束:本工具会消耗算力;失败/空结果不得自动换关键词、翻页或连续试探;需要继续检索时先向用户说明会产生额外消耗。

输出策略(脚本默认行为):

  • 始终将完整响应写入 <cwd>/linkfox/<YYYY-MM-DD>/<session>/data/linkfox-temu-cancel-order-us-<timestamp>.json(<cwd> 为脚本执行时的工作目录,在 Claude Code 里即当前项目目录;<session> 取自环境变量 SESSION_ID,按用户任务自动聚合;禁止写入 /tmp,当前目录不可写则报错)
  • 响应体 ≤ 8 KB:落盘后把完整 JSON 打印到 stdout
  • 响应体 > 8 KB:落盘后 stdout 只输出摘要(顶层字段、常见计数如 total/costToken、最大列表字段的长度 + 前 3 条样本)
  • 加 --inline 强制全量打印到 stdout(同样落盘)

读数据建议:先看摘要判断是否足够;需要具体字段时优先用 jq或ConvertFrom-Json 从保存的 json 文件按需抽取,避免整份 JSON 进入上下文。

解决认证和算力问题

发生以下异常情况时,采用 references/onboarding.md 引导解决问题:

异常情况

  • 未配置API Key:环境变量未配置 LINKFOX_AGENT_API_KEY,也未配置 LINKFOXAGENT_API_KEY。
  • 响应401或402状态码
  • 响应提示算力或余额不足:消息含"算力余额不足/计费不足/余额不足/quota exceeded/insufficient balance/套餐到期/需充值/请充值",或类似含义的内容。

默认参数

字段默认说明
siteusPartner US
managementTypesemi-managed半托管
tokenPurposeorder-shipping订单/取消场景 token

鉴权

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

Scripts(按 type)

买家取消

脚本type
us_cancel_aftersales_cancel_list_get.pybg.aftersales.cancel.list.get
us_cancel_aftersales_cancel_agree.pybg.aftersales.cancel.agree

卖家取消

脚本type
us_seller_cancel_order_cancel_appeal_apply.pytemu.order.cancel.appeal.apply
us_seller_cancel_order_cancel_appeal_result_get.pytemu.order.cancel.appeal.result.get
us_seller_cancel_order_cancel_outofstock_apply.pytemu.order.cancel.outofstock.apply
us_seller_cancel_order_cancel_outofstock_result_get.pytemu.order.cancel.outofstock.result.get

通用

脚本说明
temu_us_proxy.py任意 type
temu_us_file_download.py加签文件下载

接入新接口(约定)

  1. 新增 references/apis/<type-slug>.md
  2. 新增 scripts/us_cancel_* 或 us_seller_cancel_*(调用 _us_cancel_order_script.run_cli)
  3. 更新 partner-us-catalog.md、apis/README.md

示例

export LINKFOXAGENT_API_KEY="<key>"

# 买家取消 — 待处理列表
python scripts/us_cancel_aftersales_cancel_list_get.py '{
  "accessToken": "TOKEN",
  "tokenPurpose": "order-shipping",
  "request": { "pageNo": 1, "pageSize": 20, "afterSalesStatusGroup": 8 }
}'

# 卖家 — 缺货取消申请
python scripts/us_seller_cancel_order_cancel_outofstock_apply.py '{
  "accessToken": "TOKEN",
  "tokenPurpose": "order-shipping",
  "request": {
    "parentOrderSn": "PO-123456789",
    "orderSnList": ["O-111111111"]
  }
}'

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

网关与授权脚本

脚本说明
check_linkfox_token.py校验 LinkFox Token
save_temu_access_token.py / list_temu_access_tokens.py / get_temu_access_token.py本地 token
temu_token_guide.pyTemu 授权指引

授权说明:references/access-token.md

算力消耗规则

不消耗算力。

Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.

<a href="https://skillzs.dev/skills/linkfox-ai/linkfox-skills/linkfox-temu-cancel-order-us">View linkfox-temu-cancel-order-us on skillZs</a>