{"id":"8e3203f1-72aa-4fe9-91bc-1dd85ae702b3","entityType":"agent","slug":"clawhub-linkfox-ai-linkfox-shopee-store-returns","name":"Shopee-店铺退货","canonicalUrl":"https://www.xpersona.co/agent/clawhub-linkfox-ai-linkfox-shopee-store-returns","canonicalPath":"/agent/clawhub-linkfox-ai-linkfox-shopee-store-returns","generatedAt":"2026-10-11T20:58:42.858Z","source":"CLAWHUB","claimStatus":"UNCLAIMED","verificationTier":"NONE","summary":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-11T16:26:15.293Z","emptyReason":null},"description":"Shopee（虾皮）店铺退货退款（与 linkfox-shopee-store-auth 同系列），经 /shopee/developerProxy 转发 Shopee Open API Returns 模块全部 15 个接口：get_return_list、get_return_detail、confirm、dispute、offer、accept_offer、upload_proof、get_reverse_tracking_info 等。当用户提到 Shopee 退货、退款、return_sn、退货列表、确认退货、退货争议、dispute、逆向物流 时触发。即使未明确提及\"退货\"，只要涉及已授权 Shopee 店铺的退货/退款查询或处理，也应触发。","descriptionLabel":"Source description","evidenceSummary":"Capability contract not published. No trust telemetry is available yet. 1K downloads reported by the source. Last updated 10/11/2026.","installCommand":"clawhub skill install s171g8b6m2khwdy9ye8bxj0wx183vd4z:linkfox-shopee-store-returns","sourceUrl":"https://clawhub.ai/linkfox-ai/linkfox-shopee-store-returns","homepage":"https://clawhub.ai/linkfox-ai/skills/linkfox-shopee-store-returns","primaryLinks":[{"label":"View on ClawHub","url":"https://clawhub.ai/linkfox-ai/linkfox-shopee-store-returns","kind":"source"},{"label":"Homepage","url":"https://clawhub.ai/linkfox-ai/skills/linkfox-shopee-store-returns","kind":"homepage"}],"safetyScore":84,"overallRank":62,"popularityScore":60,"trustScore":null,"claimedByName":null,"isOwner":false,"seoDescription":"Shopee-店铺退货 technical dossier on Xpersona with agent coverage, OPENCLEW support, and live trust metadata."},"coverage":{"evidence":{"source":"public-profile","verified":false,"confidence":"medium","updatedAt":"2026-10-11T16:26:15.293Z","emptyReason":null},"protocols":[{"protocol":"OPENCLEW","label":"OpenClaw","status":"self-declared","notes":"Declared in the public agent profile."}],"capabilities":[],"verifiedCount":0,"selfDeclaredCount":1,"capabilityMatrix":{"rows":[{"key":"OPENCLEW","type":"protocol","support":"unknown","confidenceSource":"profile","notes":"Listed on profile"}],"flattenedTokens":"protocol:OPENCLEW|unknown|profile"}},"adoption":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-11T16:26:15.293Z","emptyReason":null},"stars":null,"forks":null,"downloads":1028,"packageName":null,"latestVersion":"1.0.5","tractionLabel":"1K downloads"},"release":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-11T16:26:15.219Z","emptyReason":null},"lastUpdatedAt":"2026-10-11T16:26:15.293Z","lastCrawledAt":"2026-10-11T16:26:15.219Z","lastIndexedAt":null,"nextCrawlAt":"2026-10-12T16:26:15.219Z","lastVerifiedAt":null,"highlights":[{"version":"1.0.5","createdAt":"2026-08-14T15:07:57.120Z","changelog":"Update from 1.0.4 to 1.0.5","fileCount":41,"zipByteSize":50173},{"version":"1.0.4","createdAt":"2026-08-07T11:07:46.102Z","changelog":"Update from 1.0.3 to 1.0.4","fileCount":41,"zipByteSize":50293},{"version":"1.0.3","createdAt":"2026-07-13T12:25:12.993Z","changelog":"Update from 1.0.2 to 1.0.3","fileCount":24,"zipByteSize":24945},{"version":"1.0.2","createdAt":"2026-07-06T11:33:50.502Z","changelog":"Update from 1.0.1 to 1.0.2","fileCount":24,"zipByteSize":24049},{"version":"1.0.1","createdAt":"2026-07-03T08:33:05.029Z","changelog":"Update from 1.0.0 to 1.0.1","fileCount":23,"zipByteSize":22706},{"version":"1.0.0","createdAt":"2026-07-02T15:56:42.124Z","changelog":"Initial release","fileCount":23,"zipByteSize":22682}]},"execution":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No published capability contract is available yet."},"installCommand":"clawhub skill install s171g8b6m2khwdy9ye8bxj0wx183vd4z:linkfox-shopee-store-returns","setupComplexity":"low","setupSteps":["Install using `clawhub skill install s171g8b6m2khwdy9ye8bxj0wx183vd4z:linkfox-shopee-store-returns` in an isolated environment before connecting it to live workloads.","No published capability contract is available yet, so validate auth and request/response behavior manually.","Review the upstream CLAWHUB listing at https://clawhub.ai/linkfox-ai/linkfox-shopee-store-returns before using production credentials."],"contract":{"contractStatus":"missing","authModes":[],"requires":[],"forbidden":[],"supportsMcp":false,"supportsA2a":false,"supportsStreaming":false,"inputSchemaRef":null,"outputSchemaRef":null,"dataRegion":null,"contractUpdatedAt":null,"sourceUpdatedAt":null,"freshnessSeconds":null},"invocationGuide":{"preferredApi":{"snapshotUrl":"https://www.xpersona.co/api/v1/agents/clawhub-linkfox-ai-linkfox-shopee-store-returns/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-linkfox-ai-linkfox-shopee-store-returns/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-linkfox-ai-linkfox-shopee-store-returns/trust"},"curlExamples":["curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-linkfox-ai-linkfox-shopee-store-returns/snapshot\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-linkfox-ai-linkfox-shopee-store-returns/contract\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-linkfox-ai-linkfox-shopee-store-returns/trust\""],"jsonRequestTemplate":{"query":"summarize this repo","constraints":{"maxLatencyMs":2000,"protocolPreference":["OPENCLEW"]}},"jsonResponseTemplate":{"ok":true,"result":{"summary":"...","confidence":0.9},"meta":{"source":"CLAWHUB","generatedAt":"2026-10-11T20:58:42.856Z"}},"retryPolicy":{"maxAttempts":3,"backoffMs":[500,1500,3500],"retryableConditions":["HTTP_429","HTTP_503","NETWORK_TIMEOUT"]}},"endpoints":{"dossierUrl":"https://www.xpersona.co/api/v1/agents/clawhub-linkfox-ai-linkfox-shopee-store-returns/dossier","snapshotUrl":"https://www.xpersona.co/api/v1/agents/clawhub-linkfox-ai-linkfox-shopee-store-returns/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-linkfox-ai-linkfox-shopee-store-returns/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-linkfox-ai-linkfox-shopee-store-returns/trust"}},"reliability":{"evidence":{"source":"runtime-metrics","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No trust, reliability, or runtime telemetry is available."},"trust":{"status":"unavailable","handshakeStatus":"UNKNOWN","verificationFreshnessHours":null,"reputationScore":null,"p95LatencyMs":null,"successRate30d":null,"fallbackRate":null,"attempts30d":null,"trustUpdatedAt":null,"trustConfidence":"unknown","sourceUpdatedAt":null,"freshnessSeconds":null},"decisionGuardrails":{"doNotUseIf":["Contract metadata is missing or unavailable for deterministic execution."],"safeUseWhen":[],"riskFlags":["missing_or_unavailable_contract","trust_data_unavailable","schema_references_missing"],"operationalConfidence":"low"},"executionMetrics":{"observedLatencyMsP50":null,"observedLatencyMsP95":null,"estimatedCostUsd":null,"uptime30d":null,"rateLimitRpm":null,"rateLimitBurst":null,"lastVerifiedAt":null,"verificationSource":null},"runtimeMetrics":{"successRate":null,"avgLatencyMs":null,"avgCostUsd":null,"hallucinationRate":null,"retryRate":null,"disputeRate":null,"p50Latency":null,"p95Latency":null,"lastUpdated":null}},"benchmarks":{"evidence":{"source":"no-benchmark-data","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No benchmark suites or observed failure patterns are available."},"suites":[],"failurePatterns":[]},"artifacts":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-11T16:26:15.293Z","emptyReason":null},"readme":"Skill: Shopee-店铺退货\n\nOwner: linkfox-ai\n\nSummary: Shopee（虾皮）店铺退货退款（与 linkfox-shopee-store-auth 同系列），经 /shopee/developerProxy 转发 Shopee Open API Returns 模块全部 15 个接口：get_return_list、get_return_detail、confirm、dispute、offer、accept_offer、upload_proof、get_reverse_tracking_info 等。当用户提到 Shopee 退货、退款、return_sn、退货列表、确认退货、退货争议、dispute、逆向物流 时触发。即使未明确提及\"退货\"，只要涉及已授权 Shopee 店铺的退货/退款查询或处理，也应触发。\n\nTags: latest:1.0.5\n\nVersion history:\n\nv1.0.5 | 2026-08-14T15:07:57.120Z | user\n\nUpdate from 1.0.4 to 1.0.5\n\nv1.0.4 | 2026-08-07T11:07:46.102Z | user\n\nUpdate from 1.0.3 to 1.0.4\n\nv1.0.3 | 2026-07-13T12:25:12.993Z | user\n\nUpdate from 1.0.2 to 1.0.3\n\nv1.0.2 | 2026-07-06T11:33:50.502Z | user\n\nUpdate from 1.0.1 to 1.0.2\n\nv1.0.1 | 2026-07-03T08:33:05.029Z | user\n\nUpdate from 1.0.0 to 1.0.1\n\nv1.0.0 | 2026-07-02T15:56:42.124Z | user\n\nInitial release\n\nArchive index:\n\nArchive v1.0.5: 41 files, 50173 bytes\n\nFiles: references/api.md (5881b), references/apis/accept-offer.md (1373b), references/apis/cancel-dispute.md (1387b), references/apis/confirm.md (1346b), references/apis/convert-image.md (1359b), references/apis/dispute.md (1322b), references/apis/get-available-solutions.md (1577b), references/apis/get-return-detail.md (1521b), references/apis/get-return-dispute-reason.md (1437b), references/apis/get-return-list.md (1456b), references/apis/get-reverse-tracking-info.md (1483b), references/apis/get-shipping-carrier.md (1408b), references/apis/offer.md (1310b), references/apis/query-proof.md (1329b), references/apis/upload-proof.md (1361b), references/apis/upload-shipping-proof.md (1418b), references/onboarding.md (2046b), scripts/_returns_api_runner.py (4292b), scripts/_returns_endpoints.py (3967b), scripts/_shopee_returns_common.py (11949b), scripts/accept_offer.py (660b), scripts/cancel_dispute.py (672b), scripts/check_auth_dependency.py (3983b), scripts/confirm.py (630b), scripts/convert_image.py (666b), scripts/dispute.py (630b), scripts/get_available_solutions.py (726b), scripts/get_return_detail.py (690b), scripts/get_return_dispute_reason.py (738b), scripts/get_return_list.py (678b), scripts/get_reverse_tracking_info.py (738b), scripts/get_shipping_carrier.py (708b), scripts/offer.py (618b), scripts/onboarding.py (24089b), scripts/query_proof.py (654b), scripts/returns_api.py (1066b), scripts/upload_proof.py (660b), scripts/upload_shipping_proof.py (714b), skill-card.md (2633b), SKILL.md (7680b), _meta.json (147b)\n\nFile v1.0.5:SKILL.md\n\n---\nname: linkfox-shopee-store-returns\ndescription: Shopee（虾皮）店铺退货退款（与 linkfox-shopee-store-auth 同系列），经 /shopee/developerProxy 转发 Shopee Open API Returns 模块全部 15 个接口：get_return_list、get_return_detail、confirm、dispute、offer、accept_offer、upload_proof、get_reverse_tracking_info 等。当用户提到 Shopee 退货、退款、return_sn、退货列表、确认退货、退货争议、dispute、逆向物流 时触发。即使未明确提及\"退货\"，只要涉及已授权 Shopee 店铺的退货/退款查询或处理，也应触发。\n---\n\n# Shopee 店铺 Returns\n\nShopee Open Platform **Returns 模块**（15 个 API）。**依赖 `linkfox-shopee-store-auth`** 选店；经 **`POST /shopee/developerProxy`** 传入 `shopId`（或 `merchantId`），由服务端解析 token 转发（`path` 须 `api/v2/returns/...`）。\n\n## 调用方式\n\n- **API 端点**：`POST /shopee/developerProxy`（不同操作通过请求体区分；完整参数/响应/错误码见 `references/api.md`）\n- **Python 脚本**：`python scripts/<脚本名>.py '<JSON 参数>' [--inline]`（可用脚本见上文脚本一览）\n- **成本约束**：本工具会消耗积分；失败/空结果不得自动换关键词、翻页或连续试探；需要继续检索时先向用户说明会产生额外消耗。\n\n**输出策略（脚本默认行为）**：\n- **始终**将完整响应写入 `<cwd>/linkfox/<YYYY-MM-DD>/<session>/data/<skill-name>-<timestamp>.json`（`<cwd>` 为脚本执行时的工作目录，在 Claude Code 里即当前项目目录；`<session>` 取自环境变量 `SESSION_ID`，按用户任务自动聚合；**禁止写入 /tmp**，当前目录不可写则报错）\n- 响应体 ≤ 8 KB：落盘后把完整 JSON 打印到 stdout\n- 响应体 > 8 KB：落盘后 stdout 只输出摘要（顶层字段、常见计数如 `total`/`costToken`、最大列表字段的长度 + 前 3 条样本）\n- 加 `--inline` 强制全量打印到 stdout（同样落盘）\n\n**读数据建议**：先看摘要判断是否足够；需要具体字段时优先用 `jq`或`ConvertFrom-Json` 从保存的 json 文件按需抽取，避免整份 JSON 进入上下文。\n\n## 解决认证和积分问题\n发生以下异常情况时，采用 references/onboarding.md 引导解决问题：\n\n### 异常情况\n- **未配置API Key**：环境变量未配置 `LINKFOX_AGENT_API_KEY`，也未配置 `LINKFOXAGENT_API_KEY`。\n- **响应401或402状态码**\n- **响应提示积分或余额不足**：消息含\"积分余额不足/计费不足/余额不足/quota exceeded/insufficient balance/套餐到期/需充值/请充值\"，或类似含义的内容。\n\n## 官方参考\n\nReturns 模块索引：[v2.returns.get_return_list](https://open.shopee.com/documents/v2/v2.returns.get_return_list?module=102&type=1)\n\n---\n\n## Prerequisites（必须先读）\n\n1. 运行 `python scripts/check_auth_dependency.py`；exit code **42** → 先安装 **`linkfox-shopee-store-auth`** 并授权店铺。\n2. **不要**在本 skill 内实现授权/令牌逻辑。\n\n---\n\n## Core Concepts\n\n- **转发链路**：`developerProxy`（`shopId`/`merchantId` 选店，服务端注入 token）→ 紫鸟 `shopee-proxy` → Shopee API\n- **退货 vs 订单**：订单查询见 `linkfox-shopee-store-orders`；本 skill 处理**退货/退款/争议**\n- **典型流程**：`get_return_list` → `get_return_detail` → `confirm` / `offer` / `dispute`\n- **店铺级 API**：通常传 **`shopId`**\n\n## 可用脚本（Returns 模块 15 个 API）\n\n| 脚本 | API | Method |\n|------|-----|--------|\n| `get_return_list.py` | get_return_list | GET |\n| `get_return_detail.py` | get_return_detail | GET |\n| `confirm.py` | confirm | POST |\n| `dispute.py` | dispute | POST |\n| `get_available_solutions.py` | get_available_solutions | GET |\n| `offer.py` | offer | POST |\n| `accept_offer.py` | accept_offer | POST |\n| `convert_image.py` | convert_image | POST |\n| `upload_proof.py` | upload_proof | POST |\n| `query_proof.py` | query_proof | GET |\n| `get_return_dispute_reason.py` | get_return_dispute_reason | GET |\n| `cancel_dispute.py` | cancel_dispute | POST |\n| `get_shipping_carrier.py` | get_shipping_carrier | GET |\n| `upload_shipping_proof.py` | upload_shipping_proof | POST |\n| `get_reverse_tracking_info.py` | get_reverse_tracking_info | GET |\n| `returns_api.py` | 通用入口（JSON 含 `api` 字段） | — |\n\n共享：`_shopee_returns_common.py`、`_returns_endpoints.py`、`_returns_api_runner.py`。\n\n## 接口说明（按 API）\n\n入参与响应细节放在 `references/apis/`，SKILL 只保留索引。\n\n| API | 说明文档 |\n|-----|----------|\n| `accept_offer` | [references/apis/accept-offer.md](./references/apis/accept-offer.md) |\n| `cancel_dispute` | [references/apis/cancel-dispute.md](./references/apis/cancel-dispute.md) |\n| `confirm` | [references/apis/confirm.md](./references/apis/confirm.md) |\n| `convert_image` | [references/apis/convert-image.md](./references/apis/convert-image.md) |\n| `dispute` | [references/apis/dispute.md](./references/apis/dispute.md) |\n| `get_available_solutions` | [references/apis/get-available-solutions.md](./references/apis/get-available-solutions.md) |\n| `get_return_detail` | [references/apis/get-return-detail.md](./references/apis/get-return-detail.md) |\n| `get_return_dispute_reason` | [references/apis/get-return-dispute-reason.md](./references/apis/get-return-dispute-reason.md) |\n| `get_return_list` | [references/apis/get-return-list.md](./references/apis/get-return-list.md) |\n| `get_reverse_tracking_info` | [references/apis/get-reverse-tracking-info.md](./references/apis/get-reverse-tracking-info.md) |\n| `get_shipping_carrier` | [references/apis/get-shipping-carrier.md](./references/apis/get-shipping-carrier.md) |\n| `offer` | [references/apis/offer.md](./references/apis/offer.md) |\n| `query_proof` | [references/apis/query-proof.md](./references/apis/query-proof.md) |\n| `upload_proof` | [references/apis/upload-proof.md](./references/apis/upload-proof.md) |\n| `upload_shipping_proof` | [references/apis/upload-shipping-proof.md](./references/apis/upload-shipping-proof.md) |\n\n模块总览 / Feedback 见 [references/api.md](./references/api.md)。\n\n## Usage Scenarios\n\n### 1. 查退货列表与详情\n1. `get_return_list.py`：`page_no`、`page_size`\n2. `get_return_detail.py`：`return_sn`\n\n### 2. 处理退货\n1. `get_available_solutions.py`：`return_sn`\n2. `confirm.py` 或 `offer.py`：POST `body`\n3. 如有争议：`dispute.py` / `cancel_dispute.py`\n\n### 3. 凭证与逆向物流\n- `upload_proof.py` / `query_proof.py`\n- `get_reverse_tracking_info.py`\n\n## 调用原则\n\n- 先看 **`developerProxy.httpStatus`**，再读 `*Response` 字段\n- GET：业务参数放 JSON 顶层\n- POST：复杂接口传 `body`\n- 每个脚本 docstring 含 **官方文档 URL**（`module=102`）\n\n## Not Applicable\n\n- 店铺授权 → `linkfox-shopee-store-auth`\n- 订单查询/取消 → `linkfox-shopee-store-orders`\n- 正向物流发货 → `linkfox-shopee-store-logistics`\n- 商品 listing → `linkfox-shopee-store-product`\n\n## 积分消耗规则\n\n不消耗积分。\n\n**Feedback:**\n\nAuto-detect and report feedback via the Feedback API when any of the following apply:\n1. The functionality or purpose described in this skill does not match actual behavior\n2. The skill's results do not match the user's intent\n3. The user expresses dissatisfaction or praise about this skill\n4. Anything you believe could be improved\n\nCall the feedback API as specified in `references/api.md`. Do not interrupt the user's flow.\n\n\n---\n*For more high-quality, professional cross-border e-commerce skills, visit [LinkFox Skills](https://skill.linkfox.com/).*\n\nFile v1.0.5:_meta.json\n\n{\n  \"ownerId\": \"kn7dmc1t4j28hem1twwyav85p182pb1j\",\n  \"slug\": \"linkfox-shopee-store-returns\",\n  \"version\": \"1.0.5\",\n  \"publishedAt\": 1786720077120\n}\n\nFile v1.0.5:references/api.md\n\n# linkfox-shopee-store-returns — 参数与字段参考\r\n\r\n> 单接口入参/响应说明已拆到 **`apis/`**（按 API 一份）；本文件保留模块总览与 Feedback。\r\nShopee **Returns 模块**全部 15 个 API，经 **`POST /shopee/developerProxy`** 转发。\r\n\r\n授权见 **`linkfox-shopee-store-auth`**。官方索引：[v2.returns.get_return_list](https://open.shopee.com/documents/v2/v2.returns.get_return_list?module=102&type=1)\r\n\r\n## 通用约定\r\n\r\n- **Base URL**：`https://tool-gateway.linkfox.com`\r\n- **Method**：POST（网关），上游 Method 见各接口\r\n- **Auth**：Header `Authorization: <api_key>`（`LINKFOXAGENT_API_KEY`）\r\n- **流程**：`POST /shopee/storeTokens` → `POST /shopee/developerProxy`\r\n- **path**：须 `api/v2/returns/...`\r\n- **标识**：店铺级 API，通常传 **`shopId`**\r\n- **官方文档 URL 规则**：`https://open.shopee.com/documents/v2/v2.returns.{api}?module=102&type=1`\r\n- **复杂 POST**（如 `dispute`、`offer`）：推荐传完整 `body` 对象\r\n\r\n---\r\n\r\n## Returns 模块总览\r\n\r\n| # | API | Method | path | 脚本 | 官方文档 |\r\n|---|-----|--------|------|------|----------|\r\n| 1 | accept_offer | POST | `api/v2/returns/accept_offer` | `accept_offer.py` | [apis/accept-offer.md](./apis/accept-offer.md) |\r\n| 2 | cancel_dispute | POST | `api/v2/returns/cancel_dispute` | `cancel_dispute.py` | [apis/cancel-dispute.md](./apis/cancel-dispute.md) |\r\n| 3 | confirm | POST | `api/v2/returns/confirm` | `confirm.py` | [apis/confirm.md](./apis/confirm.md) |\r\n| 4 | convert_image | POST | `api/v2/returns/convert_image` | `convert_image.py` | [apis/convert-image.md](./apis/convert-image.md) |\r\n| 5 | dispute | POST | `api/v2/returns/dispute` | `dispute.py` | [apis/dispute.md](./apis/dispute.md) |\r\n| 6 | get_available_solutions | GET | `api/v2/returns/get_available_solutions` | `get_available_solutions.py` | [apis/get-available-solutions.md](./apis/get-available-solutions.md) |\r\n| 7 | get_return_detail | GET | `api/v2/returns/get_return_detail` | `get_return_detail.py` | [apis/get-return-detail.md](./apis/get-return-detail.md) |\r\n| 8 | get_return_dispute_reason | GET | `api/v2/returns/get_return_dispute_reason` | `get_return_dispute_reason.py` | [apis/get-return-dispute-reason.md](./apis/get-return-dispute-reason.md) |\r\n| 9 | get_return_list | GET | `api/v2/returns/get_return_list` | `get_return_list.py` | [apis/get-return-list.md](./apis/get-return-list.md) |\r\n| 10 | get_reverse_tracking_info | GET | `api/v2/returns/get_reverse_tracking_info` | `get_reverse_tracking_info.py` | [apis/get-reverse-tracking-info.md](./apis/get-reverse-tracking-info.md) |\r\n| 11 | get_shipping_carrier | GET | `api/v2/returns/get_shipping_carrier` | `get_shipping_carrier.py` | [apis/get-shipping-carrier.md](./apis/get-shipping-carrier.md) |\r\n| 12 | offer | POST | `api/v2/returns/offer` | `offer.py` | [apis/offer.md](./apis/offer.md) |\r\n| 13 | query_proof | GET | `api/v2/returns/query_proof` | `query_proof.py` | [apis/query-proof.md](./apis/query-proof.md) |\r\n| 14 | upload_proof | POST | `api/v2/returns/upload_proof` | `upload_proof.py` | [apis/upload-proof.md](./apis/upload-proof.md) |\r\n| 15 | upload_shipping_proof | POST | `api/v2/returns/upload_shipping_proof` | `upload_shipping_proof.py` | [apis/upload-shipping-proof.md](./apis/upload-shipping-proof.md) |\r\n通用入口：`returns_api.py`（JSON 含 `\"api\": \"<上表 API 名>\"`）。\r\n\r\n---\r\n\r\n## 常用接口说明\r\n\r\n### 查询\r\n\r\n| API | 要点 |\r\n|-----|------|\r\n| `get_return_list` | 退货/退款列表；可选 `page_no`、`page_size`、时间筛选 — [apis/get-return-list.md](./apis/get-return-list.md) |\r\n| `get_return_detail` | 必填 `return_sn` — [apis/get-return-detail.md](./apis/get-return-detail.md) |\r\n| `get_reverse_tracking_info` | 逆向物流轨迹 — [apis/get-reverse-tracking-info.md](./apis/get-reverse-tracking-info.md) |\r\n\r\n### 卖家处理\r\n\r\n| API | 要点 |\r\n|-----|------|\r\n| `confirm` | 卖家确认退货；POST `body` 含 `return_sn` — [apis/confirm.md](./apis/confirm.md) |\r\n| `get_available_solutions` | 必填 `return_sn`；可用解决方案 — [apis/get-available-solutions.md](./apis/get-available-solutions.md) |\r\n| `offer` / `accept_offer` | 提出/接受解决方案 |\r\n| `dispute` / `cancel_dispute` | 发起/取消争议 |\r\n\r\n### 凭证与物流\r\n\r\n| API | 要点 |\r\n|-----|------|\r\n| `upload_proof` / `query_proof` | 上传/查询退货凭证 |\r\n| `convert_image` | 图片转换 — [apis/convert-image.md](./apis/convert-image.md) |\r\n| `get_shipping_carrier` | 退货物流承运商 — [apis/get-shipping-carrier.md](./apis/get-shipping-carrier.md) |\r\n| `upload_shipping_proof` | 上传退货运单凭证 — [apis/upload-shipping-proof.md](./apis/upload-shipping-proof.md) |\r\n| `get_return_dispute_reason` | 争议原因列表 — [apis/get-return-dispute-reason.md](./apis/get-return-dispute-reason.md) |\r\n\r\n---\r\n\r\n## 网关错误码\r\n\r\n| errcode | 含义 | 建议 |\r\n|---------|------|------|\r\n| 1002 | 参数/未登录 | 检查 shopId 与 API Key |\r\n| 1003 | 代理/网络异常 | 重试 |\r\n| 1004 | 无授权记录 | auth skill |\r\n| 1005 | path 未白名单 | 确认 `api/v2/returns/...` |\r\n\r\n---\r\n\r\n## curl 示例\r\n\r\n```bash\r\nexport KEY=$LINKFOXAGENT_API_KEY\r\nBASE=https://tool-gateway.linkfox.com\r\n\r\ncurl -X POST $BASE/shopee/developerProxy -H \"Authorization: $KEY\" \\\r\n  -H \"Content-Type: application/json\" \\\r\n  -d '{\r\n    \"path\": \"api/v2/returns/get_return_list\",\r\n    \"method\": \"GET\",\r\n    \"accessToken\": \"xxx\",\r\n    \"shopId\": \"67890\",\r\n    \"queryString\": \"page_no=1&page_size=20\"\r\n  }'\r\n```\r\n\r\n---\r\n\r\n## Feedback API\r\n\r\n```bash\r\ncurl -X POST https://skill-api.linkfox.com/api/v1/public/feedback \\\r\n  -H \"Content-Type: application/json\" \\\r\n  -d '{\"skillName\":\"linkfox-shopee-store-returns\",\"sentiment\":\"POSITIVE\",\r\n       \"category\":\"OTHER\",\"content\":\"退货列表查询正常\"}'\r\n```\n\nFile v1.0.5:references/apis/accept-offer.md\n\n# accept_offer\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/accept_offer.py` |\n| Method / path | POST `api/v2/returns/accept_offer` |\n| 官方文档 | [accept_offer](https://open.shopee.com/documents/v2/v2.returns.accept_offer?module=102&type=1) |\n| 用途 | Accept buyer/seller offer; pass full body |\n\n经 **`POST /shopee/developerProxy`** 转发；依赖 **`linkfox-shopee-store-auth`** 选店（通常传 `shopId` 或 `merchantId`）。\n\n---\n\n## 脚本 JSON 入参\n\n| 字段 | 类型 | 必填 | 说明 |\n|------|------|------|------|\n| `shopId` | string | 与 `merchantId` 二选一 | 店铺 ID（推荐；Public 等无店铺接口可省略） |\n| `merchantId` | string | 与 `shopId` 二选一 | 商户 ID |\n\n- Method：**POST**\n- POST：传 `body` / `requestBody`，或把 `body_fields` 列在 JSON 顶层\n- `shopId` / `merchantId` / `skipDepCheck` 等为网关选店保留字段，不会进 Shopee query/body\n- Registry notes：Accept buyer/seller offer; pass full body\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/accept_offer.py '{\"shopId\": \"67890\"}'\n\n# 通用入口\npython scripts/returns_api.py '{\"api\": \"accept_offer\", \"shopId\": \"67890\"}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`acceptOffer`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nFile v1.0.5:references/apis/cancel-dispute.md\n\n# cancel_dispute\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/cancel_dispute.py` |\n| Method / path | POST `api/v2/returns/cancel_dispute` |\n| 官方文档 | [cancel_dispute](https://open.shopee.com/documents/v2/v2.returns.cancel_dispute?module=102&type=1) |\n| 用途 | Cancel dispute; pass body with return_sn |\n\n经 **`POST /shopee/developerProxy`** 转发；依赖 **`linkfox-shopee-store-auth`** 选店（通常传 `shopId` 或 `merchantId`）。\n\n---\n\n## 脚本 JSON 入参\n\n| 字段 | 类型 | 必填 | 说明 |\n|------|------|------|------|\n| `shopId` | string | 与 `merchantId` 二选一 | 店铺 ID（推荐；Public 等无店铺接口可省略） |\n| `merchantId` | string | 与 `shopId` 二选一 | 商户 ID |\n\n- Method：**POST**\n- POST：传 `body` / `requestBody`，或把 `body_fields` 列在 JSON 顶层\n- `shopId` / `merchantId` / `skipDepCheck` 等为网关选店保留字段，不会进 Shopee query/body\n- Registry notes：Cancel dispute; pass body with return_sn\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/cancel_dispute.py '{\"shopId\": \"67890\"}'\n\n# 通用入口\npython scripts/returns_api.py '{\"api\": \"cancel_dispute\", \"shopId\": \"67890\"}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`cancelDispute`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nFile v1.0.5:references/apis/confirm.md\n\n# confirm\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/confirm.py` |\n| Method / path | POST `api/v2/returns/confirm` |\n| 官方文档 | [confirm](https://open.shopee.com/documents/v2/v2.returns.confirm?module=102&type=1) |\n| 用途 | Seller confirm return; pass body with return_sn |\n\n经 **`POST /shopee/developerProxy`** 转发；依赖 **`linkfox-shopee-store-auth`** 选店（通常传 `shopId` 或 `merchantId`）。\n\n---\n\n## 脚本 JSON 入参\n\n| 字段 | 类型 | 必填 | 说明 |\n|------|------|------|------|\n| `shopId` | string | 与 `merchantId` 二选一 | 店铺 ID（推荐；Public 等无店铺接口可省略） |\n| `merchantId` | string | 与 `shopId` 二选一 | 商户 ID |\n\n- Method：**POST**\n- POST：传 `body` / `requestBody`，或把 `body_fields` 列在 JSON 顶层\n- `shopId` / `merchantId` / `skipDepCheck` 等为网关选店保留字段，不会进 Shopee query/body\n- Registry notes：Seller confirm return; pass body with return_sn\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/confirm.py '{\"shopId\": \"67890\"}'\n\n# 通用入口\npython scripts/returns_api.py '{\"api\": \"confirm\", \"shopId\": \"67890\"}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`confirm`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nFile v1.0.5:references/apis/convert-image.md\n\n# convert_image\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/convert_image.py` |\n| Method / path | POST `api/v2/returns/convert_image` |\n| 官方文档 | [convert_image](https://open.shopee.com/documents/v2/v2.returns.convert_image?module=102&type=1) |\n| 用途 | Convert image for return proof |\n\n经 **`POST /shopee/developerProxy`** 转发；依赖 **`linkfox-shopee-store-auth`** 选店（通常传 `shopId` 或 `merchantId`）。\n\n---\n\n## 脚本 JSON 入参\n\n| 字段 | 类型 | 必填 | 说明 |\n|------|------|------|------|\n| `shopId` | string | 与 `merchantId` 二选一 | 店铺 ID（推荐；Public 等无店铺接口可省略） |\n| `merchantId` | string | 与 `shopId` 二选一 | 商户 ID |\n\n- Method：**POST**\n- POST：传 `body` / `requestBody`，或把 `body_fields` 列在 JSON 顶层\n- `shopId` / `merchantId` / `skipDepCheck` 等为网关选店保留字段，不会进 Shopee query/body\n- Registry notes：Convert image for return proof\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/convert_image.py '{\"shopId\": \"67890\"}'\n\n# 通用入口\npython scripts/returns_api.py '{\"api\": \"convert_image\", \"shopId\": \"67890\"}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`convertImage`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nFile v1.0.5:references/apis/dispute.md\n\n# dispute\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/dispute.py` |\n| Method / path | POST `api/v2/returns/dispute` |\n| 官方文档 | [dispute](https://open.shopee.com/documents/v2/v2.returns.dispute?module=102&type=1) |\n| 用途 | Open return dispute; pass full body |\n\n经 **`POST /shopee/developerProxy`** 转发；依赖 **`linkfox-shopee-store-auth`** 选店（通常传 `shopId` 或 `merchantId`）。\n\n---\n\n## 脚本 JSON 入参\n\n| 字段 | 类型 | 必填 | 说明 |\n|------|------|------|------|\n| `shopId` | string | 与 `merchantId` 二选一 | 店铺 ID（推荐；Public 等无店铺接口可省略） |\n| `merchantId` | string | 与 `shopId` 二选一 | 商户 ID |\n\n- Method：**POST**\n- POST：传 `body` / `requestBody`，或把 `body_fields` 列在 JSON 顶层\n- `shopId` / `merchantId` / `skipDepCheck` 等为网关选店保留字段，不会进 Shopee query/body\n- Registry notes：Open return dispute; pass full body\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/dispute.py '{\"shopId\": \"67890\"}'\n\n# 通用入口\npython scripts/returns_api.py '{\"api\": \"dispute\", \"shopId\": \"67890\"}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`dispute`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nFile v1.0.5:references/apis/get-available-solutions.md\n\n# get_available_solutions\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/get_available_solutions.py` |\n| Method / path | GET `api/v2/returns/get_available_solutions` |\n| 官方文档 | [get_available_solutions](https://open.shopee.com/documents/v2/v2.returns.get_available_solutions?module=102&type=1) |\n| 用途 | Available solutions for return |\n\n经 **`POST /shopee/developerProxy`** 转发；依赖 **`linkfox-shopee-store-auth`** 选店（通常传 `shopId` 或 `merchantId`）。\n\n---\n\n## 脚本 JSON 入参\n\n| 字段 | 类型 | 必填 | 说明 |\n|------|------|------|------|\n| `shopId` | string | 与 `merchantId` 二选一 | 店铺 ID（推荐；Public 等无店铺接口可省略） |\n| `merchantId` | string | 与 `shopId` 二选一 | 商户 ID |\n| `return_sn` | — | **是** | Query 必填（见 notes / 官方文档） |\n\n- Method：**GET**\n- GET：业务字段放 JSON **顶层**，runner 拼进 `queryString`（不含 `?`）\n- `shopId` / `merchantId` / `skipDepCheck` 等为网关选店保留字段，不会进 Shopee query/body\n- Registry notes：Available solutions for return\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/get_available_solutions.py '{\"shopId\": \"67890\", \"return_sn\": \"<return_sn>\"}'\n\n# 通用入口\npython scripts/returns_api.py '{\"api\": \"get_available_solutions\", \"shopId\": \"67890\", \"return_sn\": \"<return_sn>\"}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`getAvailableSolutions`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nFile v1.0.5:references/apis/get-return-detail.md\n\n# get_return_detail\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/get_return_detail.py` |\n| Method / path | GET `api/v2/returns/get_return_detail` |\n| 官方文档 | [get_return_detail](https://open.shopee.com/documents/v2/v2.returns.get_return_detail?module=102&type=1) |\n| 用途 | Return detail by return_sn |\n\n经 **`POST /shopee/developerProxy`** 转发；依赖 **`linkfox-shopee-store-auth`** 选店（通常传 `shopId` 或 `merchantId`）。\n\n---\n\n## 脚本 JSON 入参\n\n| 字段 | 类型 | 必填 | 说明 |\n|------|------|------|------|\n| `shopId` | string | 与 `merchantId` 二选一 | 店铺 ID（推荐；Public 等无店铺接口可省略） |\n| `merchantId` | string | 与 `shopId` 二选一 | 商户 ID |\n| `return_sn` | — | **是** | Query 必填（见 notes / 官方文档） |\n\n- Method：**GET**\n- GET：业务字段放 JSON **顶层**，runner 拼进 `queryString`（不含 `?`）\n- `shopId` / `merchantId` / `skipDepCheck` 等为网关选店保留字段，不会进 Shopee query/body\n- Registry notes：Return detail by return_sn\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/get_return_detail.py '{\"shopId\": \"67890\", \"return_sn\": \"<return_sn>\"}'\n\n# 通用入口\npython scripts/returns_api.py '{\"api\": \"get_return_detail\", \"shopId\": \"67890\", \"return_sn\": \"<return_sn>\"}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`getReturnDetail`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nFile v1.0.5:references/apis/get-return-dispute-reason.md\n\n# get_return_dispute_reason\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/get_return_dispute_reason.py` |\n| Method / path | GET `api/v2/returns/get_return_dispute_reason` |\n| 官方文档 | [get_return_dispute_reason](https://open.shopee.com/documents/v2/v2.returns.get_return_dispute_reason?module=102&type=1) |\n| 用途 | Dispute reason list |\n\n经 **`POST /shopee/developerProxy`** 转发；依赖 **`linkfox-shopee-store-auth`** 选店（通常传 `shopId` 或 `merchantId`）。\n\n---\n\n## 脚本 JSON 入参\n\n| 字段 | 类型 | 必填 | 说明 |\n|------|------|------|------|\n| `shopId` | string | 与 `merchantId` 二选一 | 店铺 ID（推荐；Public 等无店铺接口可省略） |\n| `merchantId` | string | 与 `shopId` 二选一 | 商户 ID |\n\n- Method：**GET**\n- GET：业务字段放 JSON **顶层**，runner 拼进 `queryString`（不含 `?`）\n- `shopId` / `merchantId` / `skipDepCheck` 等为网关选店保留字段，不会进 Shopee query/body\n- Registry notes：Dispute reason list\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/get_return_dispute_reason.py '{\"shopId\": \"67890\"}'\n\n# 通用入口\npython scripts/returns_api.py '{\"api\": \"get_return_dispute_reason\", \"shopId\": \"67890\"}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`getReturnDisputeReason`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nFile v1.0.5:references/apis/get-return-list.md\n\n# get_return_list\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/get_return_list.py` |\n| Method / path | GET `api/v2/returns/get_return_list` |\n| 官方文档 | [get_return_list](https://open.shopee.com/documents/v2/v2.returns.get_return_list?module=102&type=1) |\n| 用途 | Return/refund list; optional page_no, page_size, create_time_from/to |\n\n经 **`POST /shopee/developerProxy`** 转发；依赖 **`linkfox-shopee-store-auth`** 选店（通常传 `shopId` 或 `merchantId`）。\n\n---\n\n## 脚本 JSON 入参\n\n| 字段 | 类型 | 必填 | 说明 |\n|------|------|------|------|\n| `shopId` | string | 与 `merchantId` 二选一 | 店铺 ID（推荐；Public 等无店铺接口可省略） |\n| `merchantId` | string | 与 `shopId` 二选一 | 商户 ID |\n\n- Method：**GET**\n- GET：业务字段放 JSON **顶层**，runner 拼进 `queryString`（不含 `?`）\n- `shopId` / `merchantId` / `skipDepCheck` 等为网关选店保留字段，不会进 Shopee query/body\n- Registry notes：Return/refund list; optional page_no, page_size, create_time_from/to\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/get_return_list.py '{\"shopId\": \"67890\"}'\n\n# 通用入口\npython scripts/returns_api.py '{\"api\": \"get_return_list\", \"shopId\": \"67890\"}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`getReturnList`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nArchive v1.0.4: 41 files, 50293 bytes\n\nFiles: references/api.md (5881b), references/apis/accept-offer.md (1373b), references/apis/cancel-dispute.md (1387b), references/apis/confirm.md (1346b), references/apis/convert-image.md (1359b), references/apis/dispute.md (1322b), references/apis/get-available-solutions.md (1577b), references/apis/get-return-detail.md (1521b), references/apis/get-return-dispute-reason.md (1437b), references/apis/get-return-list.md (1456b), references/apis/get-reverse-tracking-info.md (1483b), references/apis/get-shipping-carrier.md (1408b), references/apis/offer.md (1310b), references/apis/query-proof.md (1329b), references/apis/upload-proof.md (1361b), references/apis/upload-shipping-proof.md (1418b), references/onboarding.md (2046b), scripts/_returns_api_runner.py (4292b), scripts/_returns_endpoints.py (3967b), scripts/_shopee_returns_common.py (11949b), scripts/accept_offer.py (660b), scripts/cancel_dispute.py (672b), scripts/check_auth_dependency.py (3983b), scripts/confirm.py (630b), scripts/convert_image.py (666b), scripts/dispute.py (630b), scripts/get_available_solutions.py (726b), scripts/get_return_detail.py (690b), scripts/get_return_dispute_reason.py (738b), scripts/get_return_list.py (678b), scripts/get_reverse_tracking_info.py (738b), scripts/get_shipping_carrier.py (708b), scripts/offer.py (618b), scripts/onboarding.py (24089b), scripts/query_proof.py (654b), scripts/returns_api.py (1066b), scripts/upload_proof.py (660b), scripts/upload_shipping_proof.py (714b), skill-card.md (2922b), SKILL.md (7680b), _meta.json (147b)\n\nFile v1.0.4:SKILL.md\n\n---\nname: linkfox-shopee-store-returns\ndescription: Shopee（虾皮）店铺退货退款（与 linkfox-shopee-store-auth 同系列），经 /shopee/developerProxy 转发 Shopee Open API Returns 模块全部 15 个接口：get_return_list、get_return_detail、confirm、dispute、offer、accept_offer、upload_proof、get_reverse_tracking_info 等。当用户提到 Shopee 退货、退款、return_sn、退货列表、确认退货、退货争议、dispute、逆向物流 时触发。即使未明确提及\"退货\"，只要涉及已授权 Shopee 店铺的退货/退款查询或处理，也应触发。\n---\n\n# Shopee 店铺 Returns\n\nShopee Open Platform **Returns 模块**（15 个 API）。**依赖 `linkfox-shopee-store-auth`** 选店；经 **`POST /shopee/developerProxy`** 传入 `shopId`（或 `merchantId`），由服务端解析 token 转发（`path` 须 `api/v2/returns/...`）。\n\n## 调用方式\n\n- **API 端点**：`POST /shopee/developerProxy`（不同操作通过请求体区分；完整参数/响应/错误码见 `references/api.md`）\n- **Python 脚本**：`python scripts/<脚本名>.py '<JSON 参数>' [--inline]`（可用脚本见上文脚本一览）\n- **成本约束**：本工具会消耗积分；失败/空结果不得自动换关键词、翻页或连续试探；需要继续检索时先向用户说明会产生额外消耗。\n\n**输出策略（脚本默认行为）**：\n- **始终**将完整响应写入 `<cwd>/linkfox/<YYYY-MM-DD>/<session>/data/<skill-name>-<timestamp>.json`（`<cwd>` 为脚本执行时的工作目录，在 Claude Code 里即当前项目目录；`<session>` 取自环境变量 `SESSION_ID`，按用户任务自动聚合；**禁止写入 /tmp**，当前目录不可写则报错）\n- 响应体 ≤ 8 KB：落盘后把完整 JSON 打印到 stdout\n- 响应体 > 8 KB：落盘后 stdout 只输出摘要（顶层字段、常见计数如 `total`/`costToken`、最大列表字段的长度 + 前 3 条样本）\n- 加 `--inline` 强制全量打印到 stdout（同样落盘）\n\n**读数据建议**：先看摘要判断是否足够；需要具体字段时优先用 `jq`或`ConvertFrom-Json` 从保存的 json 文件按需抽取，避免整份 JSON 进入上下文。\n\n## 解决认证和积分问题\n发生以下异常情况时，采用 references/onboarding.md 引导解决问题：\n\n### 异常情况\n- **未配置API Key**：环境变量未配置 `LINKFOX_AGENT_API_KEY`，也未配置 `LINKFOXAGENT_API_KEY`。\n- **响应401或402状态码**\n- **响应提示积分或余额不足**：消息含\"积分余额不足/计费不足/余额不足/quota exceeded/insufficient balance/套餐到期/需充值/请充值\"，或类似含义的内容。\n\n## 官方参考\n\nReturns 模块索引：[v2.returns.get_return_list](https://open.shopee.com/documents/v2/v2.returns.get_return_list?module=102&type=1)\n\n---\n\n## Prerequisites（必须先读）\n\n1. 运行 `python scripts/check_auth_dependency.py`；exit code **42** → 先安装 **`linkfox-shopee-store-auth`** 并授权店铺。\n2. **不要**在本 skill 内实现授权/令牌逻辑。\n\n---\n\n## Core Concepts\n\n- **转发链路**：`developerProxy`（`shopId`/`merchantId` 选店，服务端注入 token）→ 紫鸟 `shopee-proxy` → Shopee API\n- **退货 vs 订单**：订单查询见 `linkfox-shopee-store-orders`；本 skill 处理**退货/退款/争议**\n- **典型流程**：`get_return_list` → `get_return_detail` → `confirm` / `offer` / `dispute`\n- **店铺级 API**：通常传 **`shopId`**\n\n## 可用脚本（Returns 模块 15 个 API）\n\n| 脚本 | API | Method |\n|------|-----|--------|\n| `get_return_list.py` | get_return_list | GET |\n| `get_return_detail.py` | get_return_detail | GET |\n| `confirm.py` | confirm | POST |\n| `dispute.py` | dispute | POST |\n| `get_available_solutions.py` | get_available_solutions | GET |\n| `offer.py` | offer | POST |\n| `accept_offer.py` | accept_offer | POST |\n| `convert_image.py` | convert_image | POST |\n| `upload_proof.py` | upload_proof | POST |\n| `query_proof.py` | query_proof | GET |\n| `get_return_dispute_reason.py` | get_return_dispute_reason | GET |\n| `cancel_dispute.py` | cancel_dispute | POST |\n| `get_shipping_carrier.py` | get_shipping_carrier | GET |\n| `upload_shipping_proof.py` | upload_shipping_proof | POST |\n| `get_reverse_tracking_info.py` | get_reverse_tracking_info | GET |\n| `returns_api.py` | 通用入口（JSON 含 `api` 字段） | — |\n\n共享：`_shopee_returns_common.py`、`_returns_endpoints.py`、`_returns_api_runner.py`。\n\n## 接口说明（按 API）\n\n入参与响应细节放在 `references/apis/`，SKILL 只保留索引。\n\n| API | 说明文档 |\n|-----|----------|\n| `accept_offer` | [references/apis/accept-offer.md](./references/apis/accept-offer.md) |\n| `cancel_dispute` | [references/apis/cancel-dispute.md](./references/apis/cancel-dispute.md) |\n| `confirm` | [references/apis/confirm.md](./references/apis/confirm.md) |\n| `convert_image` | [references/apis/convert-image.md](./references/apis/convert-image.md) |\n| `dispute` | [references/apis/dispute.md](./references/apis/dispute.md) |\n| `get_available_solutions` | [references/apis/get-available-solutions.md](./references/apis/get-available-solutions.md) |\n| `get_return_detail` | [references/apis/get-return-detail.md](./references/apis/get-return-detail.md) |\n| `get_return_dispute_reason` | [references/apis/get-return-dispute-reason.md](./references/apis/get-return-dispute-reason.md) |\n| `get_return_list` | [references/apis/get-return-list.md](./references/apis/get-return-list.md) |\n| `get_reverse_tracking_info` | [references/apis/get-reverse-tracking-info.md](./references/apis/get-reverse-tracking-info.md) |\n| `get_shipping_carrier` | [references/apis/get-shipping-carrier.md](./references/apis/get-shipping-carrier.md) |\n| `offer` | [references/apis/offer.md](./references/apis/offer.md) |\n| `query_proof` | [references/apis/query-proof.md](./references/apis/query-proof.md) |\n| `upload_proof` | [references/apis/upload-proof.md](./references/apis/upload-proof.md) |\n| `upload_shipping_proof` | [references/apis/upload-shipping-proof.md](./references/apis/upload-shipping-proof.md) |\n\n模块总览 / Feedback 见 [references/api.md](./references/api.md)。\n\n## Usage Scenarios\n\n### 1. 查退货列表与详情\n1. `get_return_list.py`：`page_no`、`page_size`\n2. `get_return_detail.py`：`return_sn`\n\n### 2. 处理退货\n1. `get_available_solutions.py`：`return_sn`\n2. `confirm.py` 或 `offer.py`：POST `body`\n3. 如有争议：`dispute.py` / `cancel_dispute.py`\n\n### 3. 凭证与逆向物流\n- `upload_proof.py` / `query_proof.py`\n- `get_reverse_tracking_info.py`\n\n## 调用原则\n\n- 先看 **`developerProxy.httpStatus`**，再读 `*Response` 字段\n- GET：业务参数放 JSON 顶层\n- POST：复杂接口传 `body`\n- 每个脚本 docstring 含 **官方文档 URL**（`module=102`）\n\n## Not Applicable\n\n- 店铺授权 → `linkfox-shopee-store-auth`\n- 订单查询/取消 → `linkfox-shopee-store-orders`\n- 正向物流发货 → `linkfox-shopee-store-logistics`\n- 商品 listing → `linkfox-shopee-store-product`\n\n## 积分消耗规则\n\n不消耗积分。\n\n**Feedback:**\n\nAuto-detect and report feedback via the Feedback API when any of the following apply:\n1. The functionality or purpose described in this skill does not match actual behavior\n2. The skill's results do not match the user's intent\n3. The user expresses dissatisfaction or praise about this skill\n4. Anything you believe could be improved\n\nCall the feedback API as specified in `references/api.md`. Do not interrupt the user's flow.\n\n\n---\n*For more high-quality, professional cross-border e-commerce skills, visit [LinkFox Skills](https://skill.linkfox.com/).*\n\nFile v1.0.4:_meta.json\n\n{\n  \"ownerId\": \"kn7dmc1t4j28hem1twwyav85p182pb1j\",\n  \"slug\": \"linkfox-shopee-store-returns\",\n  \"version\": \"1.0.4\",\n  \"publishedAt\": 1786100866102\n}\n\nFile v1.0.4:references/api.md\n\n# linkfox-shopee-store-returns — 参数与字段参考\r\n\r\n> 单接口入参/响应说明已拆到 **`apis/`**（按 API 一份）；本文件保留模块总览与 Feedback。\r\nShopee **Returns 模块**全部 15 个 API，经 **`POST /shopee/developerProxy`** 转发。\r\n\r\n授权见 **`linkfox-shopee-store-auth`**。官方索引：[v2.returns.get_return_list](https://open.shopee.com/documents/v2/v2.returns.get_return_list?module=102&type=1)\r\n\r\n## 通用约定\r\n\r\n- **Base URL**：`https://tool-gateway.linkfox.com`\r\n- **Method**：POST（网关），上游 Method 见各接口\r\n- **Auth**：Header `Authorization: <api_key>`（`LINKFOXAGENT_API_KEY`）\r\n- **流程**：`POST /shopee/storeTokens` → `POST /shopee/developerProxy`\r\n- **path**：须 `api/v2/returns/...`\r\n- **标识**：店铺级 API，通常传 **`shopId`**\r\n- **官方文档 URL 规则**：`https://open.shopee.com/documents/v2/v2.returns.{api}?module=102&type=1`\r\n- **复杂 POST**（如 `dispute`、`offer`）：推荐传完整 `body` 对象\r\n\r\n---\r\n\r\n## Returns 模块总览\r\n\r\n| # | API | Method | path | 脚本 | 官方文档 |\r\n|---|-----|--------|------|------|----------|\r\n| 1 | accept_offer | POST | `api/v2/returns/accept_offer` | `accept_offer.py` | [apis/accept-offer.md](./apis/accept-offer.md) |\r\n| 2 | cancel_dispute | POST | `api/v2/returns/cancel_dispute` | `cancel_dispute.py` | [apis/cancel-dispute.md](./apis/cancel-dispute.md) |\r\n| 3 | confirm | POST | `api/v2/returns/confirm` | `confirm.py` | [apis/confirm.md](./apis/confirm.md) |\r\n| 4 | convert_image | POST | `api/v2/returns/convert_image` | `convert_image.py` | [apis/convert-image.md](./apis/convert-image.md) |\r\n| 5 | dispute | POST | `api/v2/returns/dispute` | `dispute.py` | [apis/dispute.md](./apis/dispute.md) |\r\n| 6 | get_available_solutions | GET | `api/v2/returns/get_available_solutions` | `get_available_solutions.py` | [apis/get-available-solutions.md](./apis/get-available-solutions.md) |\r\n| 7 | get_return_detail | GET | `api/v2/returns/get_return_detail` | `get_return_detail.py` | [apis/get-return-detail.md](./apis/get-return-detail.md) |\r\n| 8 | get_return_dispute_reason | GET | `api/v2/returns/get_return_dispute_reason` | `get_return_dispute_reason.py` | [apis/get-return-dispute-reason.md](./apis/get-return-dispute-reason.md) |\r\n| 9 | get_return_list | GET | `api/v2/returns/get_return_list` | `get_return_list.py` | [apis/get-return-list.md](./apis/get-return-list.md) |\r\n| 10 | get_reverse_tracking_info | GET | `api/v2/returns/get_reverse_tracking_info` | `get_reverse_tracking_info.py` | [apis/get-reverse-tracking-info.md](./apis/get-reverse-tracking-info.md) |\r\n| 11 | get_shipping_carrier | GET | `api/v2/returns/get_shipping_carrier` | `get_shipping_carrier.py` | [apis/get-shipping-carrier.md](./apis/get-shipping-carrier.md) |\r\n| 12 | offer | POST | `api/v2/returns/offer` | `offer.py` | [apis/offer.md](./apis/offer.md) |\r\n| 13 | query_proof | GET | `api/v2/returns/query_proof` | `query_proof.py` | [apis/query-proof.md](./apis/query-proof.md) |\r\n| 14 | upload_proof | POST | `api/v2/returns/upload_proof` | `upload_proof.py` | [apis/upload-proof.md](./apis/upload-proof.md) |\r\n| 15 | upload_shipping_proof | POST | `api/v2/returns/upload_shipping_proof` | `upload_shipping_proof.py` | [apis/upload-shipping-proof.md](./apis/upload-shipping-proof.md) |\r\n通用入口：`returns_api.py`（JSON 含 `\"api\": \"<上表 API 名>\"`）。\r\n\r\n---\r\n\r\n## 常用接口说明\r\n\r\n### 查询\r\n\r\n| API | 要点 |\r\n|-----|------|\r\n| `get_return_list` | 退货/退款列表；可选 `page_no`、`page_size`、时间筛选 — [apis/get-return-list.md](./apis/get-return-list.md) |\r\n| `get_return_detail` | 必填 `return_sn` — [apis/get-return-detail.md](./apis/get-return-detail.md) |\r\n| `get_reverse_tracking_info` | 逆向物流轨迹 — [apis/get-reverse-tracking-info.md](./apis/get-reverse-tracking-info.md) |\r\n\r\n### 卖家处理\r\n\r\n| API | 要点 |\r\n|-----|------|\r\n| `confirm` | 卖家确认退货；POST `body` 含 `return_sn` — [apis/confirm.md](./apis/confirm.md) |\r\n| `get_available_solutions` | 必填 `return_sn`；可用解决方案 — [apis/get-available-solutions.md](./apis/get-available-solutions.md) |\r\n| `offer` / `accept_offer` | 提出/接受解决方案 |\r\n| `dispute` / `cancel_dispute` | 发起/取消争议 |\r\n\r\n### 凭证与物流\r\n\r\n| API | 要点 |\r\n|-----|------|\r\n| `upload_proof` / `query_proof` | 上传/查询退货凭证 |\r\n| `convert_image` | 图片转换 — [apis/convert-image.md](./apis/convert-image.md) |\r\n| `get_shipping_carrier` | 退货物流承运商 — [apis/get-shipping-carrier.md](./apis/get-shipping-carrier.md) |\r\n| `upload_shipping_proof` | 上传退货运单凭证 — [apis/upload-shipping-proof.md](./apis/upload-shipping-proof.md) |\r\n| `get_return_dispute_reason` | 争议原因列表 — [apis/get-return-dispute-reason.md](./apis/get-return-dispute-reason.md) |\r\n\r\n---\r\n\r\n## 网关错误码\r\n\r\n| errcode | 含义 | 建议 |\r\n|---------|------|------|\r\n| 1002 | 参数/未登录 | 检查 shopId 与 API Key |\r\n| 1003 | 代理/网络异常 | 重试 |\r\n| 1004 | 无授权记录 | auth skill |\r\n| 1005 | path 未白名单 | 确认 `api/v2/returns/...` |\r\n\r\n---\r\n\r\n## curl 示例\r\n\r\n```bash\r\nexport KEY=$LINKFOXAGENT_API_KEY\r\nBASE=https://tool-gateway.linkfox.com\r\n\r\ncurl -X POST $BASE/shopee/developerProxy -H \"Authorization: $KEY\" \\\r\n  -H \"Content-Type: application/json\" \\\r\n  -d '{\r\n    \"path\": \"api/v2/returns/get_return_list\",\r\n    \"method\": \"GET\",\r\n    \"accessToken\": \"xxx\",\r\n    \"shopId\": \"67890\",\r\n    \"queryString\": \"page_no=1&page_size=20\"\r\n  }'\r\n```\r\n\r\n---\r\n\r\n## Feedback API\r\n\r\n```bash\r\ncurl -X POST https://skill-api.linkfox.com/api/v1/public/feedback \\\r\n  -H \"Content-Type: application/json\" \\\r\n  -d '{\"skillName\":\"linkfox-shopee-store-returns\",\"sentiment\":\"POSITIVE\",\r\n       \"category\":\"OTHER\",\"content\":\"退货列表查询正常\"}'\r\n```\n\nFile v1.0.4:references/apis/accept-offer.md\n\n# accept_offer\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/accept_offer.py` |\n| Method / path | POST `api/v2/returns/accept_offer` |\n| 官方文档 | [accept_offer](https://open.shopee.com/documents/v2/v2.returns.accept_offer?module=102&type=1) |\n| 用途 | Accept buyer/seller offer; pass full body |\n\n经 **`POST /shopee/developerProxy`** 转发；依赖 **`linkfox-shopee-store-auth`** 选店（通常传 `shopId` 或 `merchantId`）。\n\n---\n\n## 脚本 JSON 入参\n\n| 字段 | 类型 | 必填 | 说明 |\n|------|------|------|------|\n| `shopId` | string | 与 `merchantId` 二选一 | 店铺 ID（推荐；Public 等无店铺接口可省略） |\n| `merchantId` | string | 与 `shopId` 二选一 | 商户 ID |\n\n- Method：**POST**\n- POST：传 `body` / `requestBody`，或把 `body_fields` 列在 JSON 顶层\n- `shopId` / `merchantId` / `skipDepCheck` 等为网关选店保留字段，不会进 Shopee query/body\n- Registry notes：Accept buyer/seller offer; pass full body\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/accept_offer.py '{\"shopId\": \"67890\"}'\n\n# 通用入口\npython scripts/returns_api.py '{\"api\": \"accept_offer\", \"shopId\": \"67890\"}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`acceptOffer`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nFile v1.0.4:references/apis/cancel-dispute.md\n\n# cancel_dispute\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/cancel_dispute.py` |\n| Method / path | POST `api/v2/returns/cancel_dispute` |\n| 官方文档 | [cancel_dispute](https://open.shopee.com/documents/v2/v2.returns.cancel_dispute?module=102&type=1) |\n| 用途 | Cancel dispute; pass body with return_sn |\n\n经 **`POST /shopee/developerProxy`** 转发；依赖 **`linkfox-shopee-store-auth`** 选店（通常传 `shopId` 或 `merchantId`）。\n\n---\n\n## 脚本 JSON 入参\n\n| 字段 | 类型 | 必填 | 说明 |\n|------|------|------|------|\n| `shopId` | string | 与 `merchantId` 二选一 | 店铺 ID（推荐；Public 等无店铺接口可省略） |\n| `merchantId` | string | 与 `shopId` 二选一 | 商户 ID |\n\n- Method：**POST**\n- POST：传 `body` / `requestBody`，或把 `body_fields` 列在 JSON 顶层\n- `shopId` / `merchantId` / `skipDepCheck` 等为网关选店保留字段，不会进 Shopee query/body\n- Registry notes：Cancel dispute; pass body with return_sn\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/cancel_dispute.py '{\"shopId\": \"67890\"}'\n\n# 通用入口\npython scripts/returns_api.py '{\"api\": \"cancel_dispute\", \"shopId\": \"67890\"}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`cancelDispute`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nFile v1.0.4:references/apis/confirm.md\n\n# confirm\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/confirm.py` |\n| Method / path | POST `api/v2/returns/confirm` |\n| 官方文档 | [confirm](https://open.shopee.com/documents/v2/v2.returns.confirm?module=102&type=1) |\n| 用途 | Seller confirm return; pass body with return_sn |\n\n经 **`POST /shopee/developerProxy`** 转发；依赖 **`linkfox-shopee-store-auth`** 选店（通常传 `shopId` 或 `merchantId`）。\n\n---\n\n## 脚本 JSON 入参\n\n| 字段 | 类型 | 必填 | 说明 |\n|------|------|------|------|\n| `shopId` | string | 与 `merchantId` 二选一 | 店铺 ID（推荐；Public 等无店铺接口可省略） |\n| `merchantId` | string | 与 `shopId` 二选一 | 商户 ID |\n\n- Method：**POST**\n- POST：传 `body` / `requestBody`，或把 `body_fields` 列在 JSON 顶层\n- `shopId` / `merchantId` / `skipDepCheck` 等为网关选店保留字段，不会进 Shopee query/body\n- Registry notes：Seller confirm return; pass body with return_sn\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/confirm.py '{\"shopId\": \"67890\"}'\n\n# 通用入口\npython scripts/returns_api.py '{\"api\": \"confirm\", \"shopId\": \"67890\"}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`confirm`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nFile v1.0.4:references/apis/convert-image.md\n\n# convert_image\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/convert_image.py` |\n| Method / path | POST `api/v2/returns/convert_image` |\n| 官方文档 | [convert_image](https://open.shopee.com/documents/v2/v2.returns.convert_image?module=102&type=1) |\n| 用途 | Convert image for return proof |\n\n经 **`POST /shopee/developerProxy`** 转发；依赖 **`linkfox-shopee-store-auth`** 选店（通常传 `shopId` 或 `merchantId`）。\n\n---\n\n## 脚本 JSON 入参\n\n| 字段 | 类型 | 必填 | 说明 |\n|------|------|------|------|\n| `shopId` | string | 与 `merchantId` 二选一 | 店铺 ID（推荐；Public 等无店铺接口可省略） |\n| `merchantId` | string | 与 `shopId` 二选一 | 商户 ID |\n\n- Method：**POST**\n- POST：传 `body` / `requestBody`，或把 `body_fields` 列在 JSON 顶层\n- `shopId` / `merchantId` / `skipDepCheck` 等为网关选店保留字段，不会进 Shopee query/body\n- Registry notes：Convert image for return proof\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/convert_image.py '{\"shopId\": \"67890\"}'\n\n# 通用入口\npython scripts/returns_api.py '{\"api\": \"convert_image\", \"shopId\": \"67890\"}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`convertImage`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nFile v1.0.4:references/apis/dispute.md\n\n# dispute\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/dispute.py` |\n| Method / path | POST `api/v2/returns/dispute` |\n| 官方文档 | [dispute](https://open.shopee.com/documents/v2/v2.returns.dispute?module=102&type=1) |\n| 用途 | Open return dispute; pass full body |\n\n经 **`POST /shopee/developerProxy`** 转发；依赖 **`linkfox-shopee-store-auth`** 选店（通常传 `shopId` 或 `merchantId`）。\n\n---\n\n## 脚本 JSON 入参\n\n| 字段 | 类型 | 必填 | 说明 |\n|------|------|------|------|\n| `shopId` | string | 与 `merchantId` 二选一 | 店铺 ID（推荐；Public 等无店铺接口可省略） |\n| `merchantId` | string | 与 `shopId` 二选一 | 商户 ID |\n\n- Method：**POST**\n- POST：传 `body` / `requestBody`，或把 `body_fields` 列在 JSON 顶层\n- `shopId` / `merchantId` / `skipDepCheck` 等为网关选店保留字段，不会进 Shopee query/body\n- Registry notes：Open return dispute; pass full body\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/dispute.py '{\"shopId\": \"67890\"}'\n\n# 通用入口\npython scripts/returns_api.py '{\"api\": \"dispute\", \"shopId\": \"67890\"}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`dispute`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nFile v1.0.4:references/apis/get-available-solutions.md\n\n# get_available_solutions\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/get_available_solutions.py` |\n| Method / path | GET `api/v2/returns/get_available_solutions` |\n| 官方文档 | [get_available_solutions](https://open.shopee.com/documents/v2/v2.returns.get_available_solutions?module=102&type=1) |\n| 用途 | Available solutions for return |\n\n经 **`POST /shopee/developerProxy`** 转发；依赖 **`linkfox-shopee-store-auth`** 选店（通常传 `shopId` 或 `merchantId`）。\n\n---\n\n## 脚本 JSON 入参\n\n| 字段 | 类型 | 必填 | 说明 |\n|------|------|------|------|\n| `shopId` | string | 与 `merchantId` 二选一 | 店铺 ID（推荐；Public 等无店铺接口可省略） |\n| `merchantId` | string | 与 `shopId` 二选一 | 商户 ID |\n| `return_sn` | — | **是** | Query 必填（见 notes / 官方文档） |\n\n- Method：**GET**\n- GET：业务字段放 JSON **顶层**，runner 拼进 `queryString`（不含 `?`）\n- `shopId` / `merchantId` / `skipDepCheck` 等为网关选店保留字段，不会进 Shopee query/body\n- Registry notes：Available solutions for return\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/get_available_solutions.py '{\"shopId\": \"67890\", \"return_sn\": \"<return_sn>\"}'\n\n# 通用入口\npython scripts/returns_api.py '{\"api\": \"get_available_solutions\", \"shopId\": \"67890\", \"return_sn\": \"<return_sn>\"}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`getAvailableSolutions`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nFile v1.0.4:references/apis/get-return-detail.md\n\n# get_return_detail\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/get_return_detail.py` |\n| Method / path | GET `api/v2/returns/get_return_detail` |\n| 官方文档 | [get_return_detail](https://open.shopee.com/documents/v2/v2.returns.get_return_detail?module=102&type=1) |\n| 用途 | Return detail by return_sn |\n\n经 **`POST /shopee/developerProxy`** 转发；依赖 **`linkfox-shopee-store-auth`** 选店（通常传 `shopId` 或 `merchantId`）。\n\n---\n\n## 脚本 JSON 入参\n\n| 字段 | 类型 | 必填 | 说明 |\n|------|------|------|------|\n| `shopId` | string | 与 `merchantId` 二选一 | 店铺 ID（推荐；Public 等无店铺接口可省略） |\n| `merchantId` | string | 与 `shopId` 二选一 | 商户 ID |\n| `return_sn` | — | **是** | Query 必填（见 notes / 官方文档） |\n\n- Method：**GET**\n- GET：业务字段放 JSON **顶层**，runner 拼进 `queryString`（不含 `?`）\n- `shopId` / `merchantId` / `skipDepCheck` 等为网关选店保留字段，不会进 Shopee query/body\n- Registry notes：Return detail by return_sn\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/get_return_detail.py '{\"shopId\": \"67890\", \"return_sn\": \"<return_sn>\"}'\n\n# 通用入口\npython scripts/returns_api.py '{\"api\": \"get_return_detail\", \"shopId\": \"67890\", \"return_sn\": \"<return_sn>\"}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`getReturnDetail`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nFile v1.0.4:references/apis/get-return-dispute-reason.md\n\n# get_return_dispute_reason\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/get_return_dispute_reason.py` |\n| Method / path | GET `api/v2/returns/get_return_dispute_reason` |\n| 官方文档 | [get_return_dispute_reason](https://open.shopee.com/documents/v2/v2.returns.get_return_dispute_reason?module=102&type=1) |\n| 用途 | Dispute reason list |\n\n经 **`POST /shopee/developerProxy`** 转发；依赖 **`linkfox-shopee-store-auth`** 选店（通常传 `shopId` 或 `merchantId`）。\n\n---\n\n## 脚本 JSON 入参\n\n| 字段 | 类型 | 必填 | 说明 |\n|------|------|------|------|\n| `shopId` | string | 与 `merchantId` 二选一 | 店铺 ID（推荐；Public 等无店铺接口可省略） |\n| `merchantId` | string | 与 `shopId` 二选一 | 商户 ID |\n\n- Method：**GET**\n- GET：业务字段放 JSON **顶层**，runner 拼进 `queryString`（不含 `?`）\n- `shopId` / `merchantId` / `skipDepCheck` 等为网关选店保留字段，不会进 Shopee query/body\n- Registry notes：Dispute reason list\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/get_return_dispute_reason.py '{\"shopId\": \"67890\"}'\n\n# 通用入口\npython scripts/returns_api.py '{\"api\": \"get_return_dispute_reason\", \"shopId\": \"67890\"}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`getReturnDisputeReason`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nFile v1.0.4:references/apis/get-return-list.md\n\n# get_return_list\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/get_return_list.py` |\n| Method / path | GET `api/v2/returns/get_return_list` |\n| 官方文档 | [get_return_list](https://open.shopee.com/documents/v2/v2.returns.get_return_list?module=102&type=1) |\n| 用途 | Return/refund list; optional page_no, page_size, create_time_from/to |\n\n经 **`POST /shopee/developerProxy`** 转发；依赖 **`linkfox-shopee-store-auth`** 选店（通常传 `shopId` 或 `merchantId`）。\n\n---\n\n## 脚本 JSON 入参\n\n| 字段 | 类型 | 必填 | 说明 |\n|------|------|------|------|\n| `shopId` | string | 与 `merchantId` 二选一 | 店铺 ID（推荐；Public 等无店铺接口可省略） |\n| `merchantId` | string | 与 `shopId` 二选一 | 商户 ID |\n\n- Method：**GET**\n- GET：业务字段放 JSON **顶层**，runner 拼进 `queryString`（不含 `?`）\n- `shopId` / `merchantId` / `skipDepCheck` 等为网关选店保留字段，不会进 Shopee query/body\n- Registry notes：Return/refund list; optional page_no, page_size, create_time_from/to\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/get_return_list.py '{\"shopId\": \"67890\"}'\n\n# 通用入口\npython scripts/returns_api.py '{\"api\": \"get_return_list\", \"shopId\": \"67890\"}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`getReturnList`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nArchive v1.0.3: 24 files, 24945 bytes\n\nFiles: references/api.md (5937b), scripts/_returns_api_runner.py (4279b), scripts/_returns_endpoints.py (3967b), scripts/_shopee_returns_common.py (11757b), scripts/accept_offer.py (697b), scripts/cancel_dispute.py (709b), scripts/check_auth_dependency.py (3983b), scripts/confirm.py (667b), scripts/convert_image.py (703b), scripts/dispute.py (667b), scripts/get_available_solutions.py (763b), scripts/get_return_detail.py (727b), scripts/get_return_dispute_reason.py (775b), scripts/get_return_list.py (715b), scripts/get_reverse_tracking_info.py (775b), scripts/get_shipping_carrier.py (745b), scripts/offer.py (655b), scripts/query_proof.py (691b), scripts/returns_api.py (1066b), scripts/upload_proof.py (697b), scripts/upload_shipping_proof.py (751b), skill-card.md (2956b), SKILL.md (6500b), _meta.json (147b)\n\nFile v1.0.3:SKILL.md\n\n---\nname: linkfox-shopee-store-returns\ndescription: Shopee（虾皮）店铺退货退款（与 linkfox-shopee-store-auth 同系列），经 /shopee/developerProxy 转发 Shopee Open API Returns 模块全部 15 个接口：get_return_list、get_return_detail、confirm、dispute、offer、accept_offer、upload_proof、get_reverse_tracking_info 等。当用户提到 Shopee 退货、退款、return_sn、退货列表、确认退货、退货争议、dispute、逆向物流 时触发。即使未明确提及\"退货\"，只要涉及已授权 Shopee 店铺的退货/退款查询或处理，也应触发。\n---\n\n# Shopee 店铺 Returns\n\nShopee Open Platform **Returns 模块**（15 个 API）。**依赖 `linkfox-shopee-store-auth`**：先取 `accessToken`，再经 **`POST /shopee/developerProxy`** 转发（`path` 须 `api/v2/returns/...`）。\n\n## 调用方式\n\n- **API 端点**：`POST /shopee/developerProxy`（不同操作通过请求体区分；完整参数/响应/错误码见 `references/api.md`）\n- **Python 脚本**：`python scripts/<脚本名>.py '<JSON 参数>' [--inline]`（可用脚本见上文脚本一览）\n- **成本约束**：本工具会消耗积分；失败/空结果不得自动换关键词、翻页或连续试探；需要继续检索时先向用户说明会产生额外消耗。\n\n**输出策略（脚本默认行为）**：\n- **始终**将完整响应写入 `<cwd>/linkfox/<YYYY-MM-DD>/<session>/data/<skill-name>-<timestamp>.json`（`<cwd>` 为脚本执行时的工作目录，在 Claude Code 里即当前项目目录；`<session>` 取自环境变量 `SESSION_ID`，按用户任务自动聚合；**禁止写入 /tmp**，当前目录不可写则报错）\n- 响应体 ≤ 8 KB：落盘后把完整 JSON 打印到 stdout\n- 响应体 > 8 KB：落盘后 stdout 只输出摘要（顶层字段、常见计数如 `total`/`costToken`、最大列表字段的长度 + 前 3 条样本）\n- 加 `--inline` 强制全量打印到 stdout（同样落盘）\n\n**读数据建议**：先看摘要判断是否足够；需要具体字段时优先用 `jq`或`ConvertFrom-Json` 从保存的 json 文件按需抽取，避免整份 JSON 进入上下文。\n\n## 解决认证和积分问题\n发生以下异常情况时，采用以下措施来处理：\n\n### 异常情况\n- **未配置API Key**：环境变量未配置 `LINKFOX_AGENT_API_KEY`，也未配置 `LINKFOXAGENT_API_KEY`。\n- **响应401或402状态码**\n- **响应提示积分或余额不足**：消息含\"积分余额不足/计费不足/余额不足/quota exceeded/insufficient balance/套餐到期/需充值/请充值\"，或类似含义的内容。\n\n### 措施\n- 优先采用skill内的 onboarding.md 引导解决问题。\n- 如找不到 onboarding.md 文件，则加载 /linkfox-onboarding 这个skill并根据它的引导来处理。如未安装请先安装：\n    - 下载 https://agent-files.linkfox.com/skills/linkfox-onboarding/release.zip，解压后安装这个skill。如需用户授权才可下载，要询问用户获得授权，你不能自己放弃下载。\n- 兜底措施：仅当前面两个措施经过所有努力都走不通时，才提示用户依据 https://skill.linkfox.com/linkfoxskills/guide.htm 指引获取API Key，或去 https://os.linkfox.com/ 补充积分。\n\n## 官方参考\n\nReturns 模块索引：[v2.returns.get_return_list](https://open.shopee.com/documents/v2/v2.returns.get_return_list?module=102&type=1)\n\n---\n\n## Prerequisites（必须先读）\n\n1. 运行 `python scripts/check_auth_dependency.py`；exit code **42** → 先安装 **`linkfox-shopee-store-auth`** 并授权店铺。\n2. **不要**在本 skill 内实现授权/令牌逻辑。\n\n---\n\n## Core Concepts\n\n- **转发链路**：`storeTokens` → `developerProxy` → 紫鸟 `shopee-proxy` → Shopee API\n- **退货 vs 订单**：订单查询见 `linkfox-shopee-store-orders`；本 skill 处理**退货/退款/争议**\n- **典型流程**：`get_return_list` → `get_return_detail` → `confirm` / `offer` / `dispute`\n- **店铺级 API**：通常传 **`shopId`**\n\n## 可用脚本（Returns 模块 15 个 API）\n\n| 脚本 | API | Method |\n|------|-----|--------|\n| `get_return_list.py` | get_return_list | GET |\n| `get_return_detail.py` | get_return_detail | GET |\n| `confirm.py` | confirm | POST |\n| `dispute.py` | dispute | POST |\n| `get_available_solutions.py` | get_available_solutions | GET |\n| `offer.py` | offer | POST |\n| `accept_offer.py` | accept_offer | POST |\n| `convert_image.py` | convert_image | POST |\n| `upload_proof.py` | upload_proof | POST |\n| `query_proof.py` | query_proof | GET |\n| `get_return_dispute_reason.py` | get_return_dispute_reason | GET |\n| `cancel_dispute.py` | cancel_dispute | POST |\n| `get_shipping_carrier.py` | get_shipping_carrier | GET |\n| `upload_shipping_proof.py` | upload_shipping_proof | POST |\n| `get_reverse_tracking_info.py` | get_reverse_tracking_info | GET |\n| `returns_api.py` | 通用入口（JSON 含 `api` 字段） | — |\n\n共享：`_shopee_returns_common.py`、`_returns_endpoints.py`、`_returns_api_runner.py`。\n\n## Usage Scenarios\n\n### 1. 查退货列表与详情\n1. `get_return_list.py`：`page_no`、`page_size`\n2. `get_return_detail.py`：`return_sn`\n\n### 2. 处理退货\n1. `get_available_solutions.py`：`return_sn`\n2. `confirm.py` 或 `offer.py`：POST `body`\n3. 如有争议：`dispute.py` / `cancel_dispute.py`\n\n### 3. 凭证与逆向物流\n- `upload_proof.py` / `query_proof.py`\n- `get_reverse_tracking_info.py`\n\n## 调用原则\n\n- 先看 **`developerProxy.httpStatus`**，再读 `*Response` 字段\n- GET：业务参数放 JSON 顶层\n- POST：复杂接口传 `body`\n- 每个脚本 docstring 含 **官方文档 URL**（`module=102`）\n\n## Not Applicable\n\n- 店铺授权 → `linkfox-shopee-store-auth`\n- 订单查询/取消 → `linkfox-shopee-store-orders`\n- 正向物流发货 → `linkfox-shopee-store-logistics`\n- 商品 listing → `linkfox-shopee-store-product`\n\n## 积分消耗规则\n\n不消耗积分。\n\n**Feedback:**\n\nAuto-detect and report feedback via the Feedback API when any of the following apply:\n1. The functionality or purpose described in this skill does not match actual behavior\n2. The skill's results do not match the user's intent\n3. The user expresses dissatisfaction or praise about this skill\n4. Anything you believe could be improved\n\nCall the feedback API as specified in `references/api.md`. Do not interrupt the user's flow.\n\n\n---\n*For more high-quality, professional cross-border e-commerce skills, visit [LinkFox Skills](https://skill.linkfox.com/).*\n\nFile v1.0.3:_meta.json\n\n{\n  \"ownerId\": \"kn7dmc1t4j28hem1twwyav85p182pb1j\",\n  \"slug\": \"linkfox-shopee-store-returns\",\n  \"version\": \"1.0.3\",\n  \"publishedAt\": 1783945512993\n}\n\nFile v1.0.3:references/api.md\n\n# linkfox-shopee-store-returns — 参数与字段参考\r\n\r\nShopee **Returns 模块**全部 15 个 API，经 **`POST /shopee/developerProxy`** 转发。\r\n\r\n授权见 **`linkfox-shopee-store-auth`**。官方索引：[v2.returns.get_return_list](https://open.shopee.com/documents/v2/v2.returns.get_return_list?module=102&type=1)\r\n\r\n## 通用约定\r\n\r\n- **Base URL**：`${LINKFOX_TOOL_GATEWAY}`\r\n- **Method**：POST（网关），上游 Method 见各接口\r\n- **Auth**：Header `Authorization: <api_key>`（从 `LINKFOX_AGENT_API_KEY` 或 `LINKFOXAGENT_API_KEY` 读取）（如未配置 按 SKILL.md 的 **## 解决认证和积分问题** 处理）\r\n- **流程**：`POST /shopee/storeTokens` → `POST /shopee/developerProxy`\r\n- **path**：须 `api/v2/returns/...`\r\n- **标识**：店铺级 API，通常传 **`shopId`**\r\n- **官方文档 URL 规则**：`https://open.shopee.com/documents/v2/v2.returns.{api}?module=102&type=1`\r\n- **复杂 POST**（如 `dispute`、`offer`）：推荐传完整 `body` 对象\r\n\r\n---\r\n\r\n## Returns 模块总览\r\n\r\n| # | API | Method | path | 脚本 | 官方文档 |\r\n|---|-----|--------|------|------|----------|\r\n| 1 | accept_offer | POST | `api/v2/returns/accept_offer` | `accept_offer.py` | [doc](https://open.shopee.com/documents/v2/v2.returns.accept_offer?module=102&type=1) |\r\n| 2 | cancel_dispute | POST | `api/v2/returns/cancel_dispute` | `cancel_dispute.py` | [doc](https://open.shopee.com/documents/v2/v2.returns.cancel_dispute?module=102&type=1) |\r\n| 3 | confirm | POST | `api/v2/returns/confirm` | `confirm.py` | [doc](https://open.shopee.com/documents/v2/v2.returns.confirm?module=102&type=1) |\r\n| 4 | convert_image | POST | `api/v2/returns/convert_image` | `convert_image.py` | [doc](https://open.shopee.com/documents/v2/v2.returns.convert_image?module=102&type=1) |\r\n| 5 | dispute | POST | `api/v2/returns/dispute` | `dispute.py` | [doc](https://open.shopee.com/documents/v2/v2.returns.dispute?module=102&type=1) |\r\n| 6 | get_available_solutions | GET | `api/v2/returns/get_available_solutions` | `get_available_solutions.py` | [doc](https://open.shopee.com/documents/v2/v2.returns.get_available_solutions?module=102&type=1) |\r\n| 7 | get_return_detail | GET | `api/v2/returns/get_return_detail` | `get_return_detail.py` | [doc](https://open.shopee.com/documents/v2/v2.returns.get_return_detail?module=102&type=1) |\r\n| 8 | get_return_dispute_reason | GET | `api/v2/returns/get_return_dispute_reason` | `get_return_dispute_reason.py` | [doc](https://open.shopee.com/documents/v2/v2.returns.get_return_dispute_reason?module=102&type=1) |\r\n| 9 | get_return_list | GET | `api/v2/returns/get_return_list` | `get_return_list.py` | [doc](https://open.shopee.com/documents/v2/v2.returns.get_return_list?module=102&type=1) |\r\n| 10 | get_reverse_tracking_info | GET | `api/v2/returns/get_reverse_tracking_info` | `get_reverse_tracking_info.py` | [doc](https://open.shopee.com/documents/v2/v2.returns.get_reverse_tracking_info?module=102&type=1) |\r\n| 11 | get_shipping_carrier | GET | `api/v2/returns/get_shipping_carrier` | `get_shipping_carrier.py` | [doc](https://open.shopee.com/documents/v2/v2.returns.get_shipping_carrier?module=102&type=1) |\r\n| 12 | offer | POST | `api/v2/returns/offer` | `offer.py` | [doc](https://open.shopee.com/documents/v2/v2.returns.offer?module=102&type=1) |\r\n| 13 | query_proof | GET | `api/v2/returns/query_proof` | `query_proof.py` | [doc](https://open.shopee.com/documents/v2/v2.returns.query_proof?module=102&type=1) |\r\n| 14 | upload_proof | POST | `api/v2/returns/upload_proof` | `upload_proof.py` | [doc](https://open.shopee.com/documents/v2/v2.returns.upload_proof?module=102&type=1) |\r\n| 15 | upload_shipping_proof | POST | `api/v2/returns/upload_shipping_proof` | `upload_shipping_proof.py` | [doc](https://open.shopee.com/documents/v2/v2.returns.upload_shipping_proof?module=102&type=1) |\r\n通用入口：`returns_api.py`（JSON 含 `\"api\": \"<上表 API 名>\"`）。\r\n\r\n---\r\n\r\n## 常用接口说明\r\n\r\n### 查询\r\n\r\n| API | 要点 |\r\n|-----|------|\r\n| `get_return_list` | 退货/退款列表；可选 `page_no`、`page_size`、时间筛选 |\r\n| `get_return_detail` | 必填 `return_sn` |\r\n| `get_reverse_tracking_info` | 逆向物流轨迹 |\r\n\r\n### 卖家处理\r\n\r\n| API | 要点 |\r\n|-----|------|\r\n| `confirm` | 卖家确认退货；POST `body` 含 `return_sn` |\r\n| `get_available_solutions` | 必填 `return_sn`；可用解决方案 |\r\n| `offer` / `accept_offer` | 提出/接受解决方案 |\r\n| `dispute` / `cancel_dispute` | 发起/取消争议 |\r\n\r\n### 凭证与物流\r\n\r\n| API | 要点 |\r\n|-----|------|\r\n| `upload_proof` / `query_proof` | 上传/查询退货凭证 |\r\n| `convert_image` | 图片转换 |\r\n| `get_shipping_carrier` | 退货物流承运商 |\r\n| `upload_shipping_proof` | 上传退货运单凭证 |\r\n| `get_return_dispute_reason` | 争议原因列表 |\r\n\r\n---\r\n\r\n## 网关错误码\r\n\r\n| errcode | 含义 | 建议 |\r\n|---------|------|------|\r\n| 1002 | 参数/未登录 | 检查 shopId 与 API Key |\r\n| 1003 | 代理/网络异常 | 重试 |\r\n| 1004 | 无授权记录 | auth skill |\r\n| 1005 | path 未白名单 | 确认 `api/v2/returns/...` |\r\n| HTTP 402 | 积分不足 | HTTP 402：按 SKILL.md 的 **## 解决认证和积分问题** 处理。 |\r\n\r\n---\r\n\r\n## curl 示例\r\n\r\n```bash\r\nexport KEY=$LINKFOXAGENT_API_KEY\r\nBASE=https://tool-gateway.linkfox.com\r\n\r\ncurl -X POST $BASE/shopee/developerProxy -H \"Authorization: $KEY\" \\\r\n  -H \"Content-Type: application/json\" \\\r\n  -d '{\r\n    \"path\": \"api/v2/returns/get_return_list\",\r\n    \"method\": \"GET\",\r\n    \"accessToken\": \"xxx\",\r\n    \"shopId\": \"67890\",\r\n    \"queryString\": \"page_no=1&page_size=20\"\r\n  }'\r\n```\r\n\r\n---\r\n\r\n## Feedback API\r\n\r\n```bash\r\ncurl -X POST https://skill-api.linkfox.com/api/v1/public/feedback \\\r\n  -H \"Content-Type: application/json\" \\\r\n  -d '{\"skillName\":\"linkfox-shopee-store-returns\",\"sentiment\":\"POSITIVE\",\r\n       \"category\":\"OTHER\",\"content\":\"退货列表查询正常\"}'\r\n```\n\nFile v1.0.3:skill-card.md\n\n## Description: <br>\nHelps agents query and manage Shopee store return and refund workflows through the Shopee Open API Returns module, including return lists, details, confirmations, disputes, offers, proof upload, and reverse tracking. <br>\n\nThis skill is ready for commercial/non-commercial use. <br>\n\n## Publisher: <br>\n[linkfox-ai](https://clawhub.ai/user/linkfox-ai) <br>\n\n### License/Terms of Use: <br>\nMIT-0 <br>\n\n\n## Use Case: <br>\nExternal sellers, operators, and support agents use this skill to inspect and process authorized Shopee store return and refund cases. It is intended for return/refund lookup, seller decisions, dispute handling, proof management, and reverse logistics tracking after the required Shopee store authorization skill is available. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: The skill can change merchant return or refund state through actions such as confirm, dispute, offer, accept_offer, cancel_dispute, and upload operations. <br>\nMitigation: Require explicit user confirmation before running state-changing actions and review the request body for the intended shop, return_sn, and seller decision. <br>\nRisk: Full API responses may contain sensitive business or customer data and can be saved in local linkfox output folders. <br>\nMitigation: Review saved response files after use, delete data that is no longer needed, and avoid sharing saved outputs unless they have been checked for sensitive information. <br>\nRisk: The skill depends on an authorized Shopee store token supplied through the companion auth skill. <br>\nMitigation: Install and authorize only the intended Shopee store, keep LinkFox API keys scoped to the operator's role, and stop if the dependency check reports a missing or unexpected auth setup. <br>\n\n\n## Reference(s): <br>\n- [ClawHub skill page](https://clawhub.ai/linkfox-ai/skills/linkfox-shopee-store-returns) <br>\n- [Shopee Returns API reference](references/api.md) <br>\n- [Shopee Open Platform Returns index](https://open.shopee.com/documents/v2/v2.returns.get_return_list?module=102&type=1) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [text, shell commands, configuration, JSON] <br>\n**Output Format:** [Markdown guidance, shell command examples, stdout JSON or summaries, and saved JSON API responses] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [Requires a LinkFox API key and the linkfox-shopee-store-auth dependency for authorized store tokens; large responses may be summarized on stdout while full responses are saved locally.] <br>\n\n## Skill Version(s): <br>\n1.0.3 (source: ClawHub release evidence) <br>\n\n## Ethical Considerations: <br>\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment. <br>\n\nArchive v1.0.2: 24 files, 24049 bytes\n\nFiles: references/api.md (5756b), scripts/_returns_api_runner.py (4279b), scripts/_returns_endpoints.py (3967b), scripts/_shopee_returns_common.py (11658b), scripts/accept_offer.py (697b), scripts/cancel_dispute.py (709b), scripts/check_auth_dependency.py (3983b), scripts/confirm.py (667b), scripts/convert_image.py (703b), scripts/dispute.py (667b), scripts/get_available_solutions.py (763b), scripts/get_return_detail.py (727b), scripts/get_return_dispute_reason.py (775b), scripts/get_return_list.py (715b), scripts/get_reverse_tracking_info.py (775b), scripts/get_shipping_carrier.py (745b), scripts/offer.py (655b), scripts/query_proof.py (691b), scripts/returns_api.py (1066b), scripts/upload_proof.py (697b), scripts/upload_shipping_proof.py (751b), skill-card.md (2568b), SKILL.md (5474b), _meta.json (147b)\n\nFile v1.0.2:SKILL.md\n\n---\r\nname: linkfox-shopee-store-returns\r\ndescription: Shopee（虾皮）店铺退货退款（与 linkfox-shopee-store-auth 同系列），经 /shopee/developerProxy 转发 Shopee Open API Returns 模块全部 15 个接口：get_return_list、get_return_detail、confirm、dispute、offer、accept_offer、upload_proof、get_reverse_tracking_info 等。当用户提到 Shopee 退货、退款、return_sn、退货列表、确认退货、退货争议、dispute、逆向物流 时触发。即使未明确提及\"退货\"，只要涉及已授权 Shopee 店铺的退货/退款查询或处理，也应触发。\r\n---\r\n\r\n# Shopee 店铺 Returns\r\n\r\nShopee Open Platform **Returns 模块**（15 个 API）。**依赖 `linkfox-shopee-store-auth`**：先取 `accessToken`，再经 **`POST /shopee/developerProxy`** 转发（`path` 须 `api/v2/returns/...`）。\r\n\r\n## 调用方式\r\n\r\n- **API 端点**：`POST /shopee/developerProxy`（不同操作通过请求体区分；完整参数/响应/错误码见 `references/api.md`）\r\n- **Python 脚本**：`python scripts/<脚本名>.py '<JSON 参数>' [--inline]`（可用脚本见上文脚本一览）\r\n- **成本约束**：本工具会消耗积分；失败/空结果不得自动换关键词、翻页或连续试探；需要继续检索时先向用户说明会产生额外消耗。\r\n\r\n**输出策略（脚本默认行为）**：\r\n- **始终**将完整响应写入 `<cwd>/linkfox/<YYYY-MM-DD>/<session>/data/<skill-name>-<timestamp>.json`（`<cwd>` 为脚本执行时的工作目录，在 Claude Code 里即当前项目目录；`<session>` 取自环境变量 `SESSION_ID`，按用户任务自动聚合；**禁止写入 /tmp**，当前目录不可写则报错）\r\n- 响应体 ≤ 8 KB：落盘后把完整 JSON 打印到 stdout\r\n- 响应体 > 8 KB：落盘后 stdout 只输出摘要（顶层字段、常见计数如 `total`/`costToken`、最大列表字段的长度 + 前 3 条样本）\r\n- 加 `--inline` 强制全量打印到 stdout（同样落盘）\r\n\r\n**读数据建议**：先看摘要判断是否足够；需要具体字段时优先用 `jq`或`ConvertFrom-Json` 从保存的 json 文件按需抽取，避免整份 JSON 进入上下文。\r\n\r\n## 官方参考\r\n\r\nReturns 模块索引：[v2.returns.get_return_list](https://open.shopee.com/documents/v2/v2.returns.get_return_list?module=102&type=1)\r\n\r\n---\r\n\r\n## Prerequisites（必须先读）\r\n\r\n1. 运行 `python scripts/check_auth_dependency.py`；exit code **42** → 先安装 **`linkfox-shopee-store-auth`** 并授权店铺。\r\n2. **不要**在本 skill 内实现授权/令牌逻辑。\r\n\r\n---\r\n\r\n## Core Concepts\r\n\r\n- **转发链路**：`storeTokens` → `developerProxy` → 紫鸟 `shopee-proxy` → Shopee API\r\n- **退货 vs 订单**：订单查询见 `linkfox-shopee-store-orders`；本 skill 处理**退货/退款/争议**\r\n- **典型流程**：`get_return_list` → `get_return_detail` → `confirm` / `offer` / `dispute`\r\n- **店铺级 API**：通常传 **`shopId`**\r\n\r\n## 可用脚本（Returns 模块 15 个 API）\r\n\r\n| 脚本 | API | Method |\r\n|------|-----|--------|\r\n| `get_return_list.py` | get_return_list | GET |\r\n| `get_return_detail.py` | get_return_detail | GET |\r\n| `confirm.py` | confirm | POST |\r\n| `dispute.py` | dispute | POST |\r\n| `get_available_solutions.py` | get_available_solutions | GET |\r\n| `offer.py` | offer | POST |\r\n| `accept_offer.py` | accept_offer | POST |\r\n| `convert_image.py` | convert_image | POST |\r\n| `upload_proof.py` | upload_proof | POST |\r\n| `query_proof.py` | query_proof | GET |\r\n| `get_return_dispute_reason.py` | get_return_dispute_reason | GET |\r\n| `cancel_dispute.py` | cancel_dispute | POST |\r\n| `get_shipping_carrier.py` | get_shipping_carrier | GET |\r\n| `upload_shipping_proof.py` | upload_shipping_proof | POST |\r\n| `get_reverse_tracking_info.py` | get_reverse_tracking_info | GET |\r\n| `returns_api.py` | 通用入口（JSON 含 `api` 字段） | — |\r\n\r\n共享：`_shopee_returns_common.py`、`_returns_endpoints.py`、`_returns_api_runner.py`。\r\n\r\n## Usage Scenarios\r\n\r\n### 1. 查退货列表与详情\r\n1. `get_return_list.py`：`page_no`、`page_size`\r\n2. `get_return_detail.py`：`return_sn`\r\n\r\n### 2. 处理退货\r\n1. `get_available_solutions.py`：`return_sn`\r\n2. `confirm.py` 或 `offer.py`：POST `body`\r\n3. 如有争议：`dispute.py` / `cancel_dispute.py`\r\n\r\n### 3. 凭证与逆向物流\r\n- `upload_proof.py` / `query_proof.py`\r\n- `get_reverse_tracking_info.py`\r\n\r\n## 调用原则\r\n\r\n- 先看 **`developerProxy.httpStatus`**，再读 `*Response` 字段\r\n- GET：业务参数放 JSON 顶层\r\n- POST：复杂接口传 `body`\r\n- 每个脚本 docstring 含 **官方文档 URL**（`module=102`）\r\n\r\n## Not Applicable\r\n\r\n- 店铺授权 → `linkfox-shopee-store-auth`\r\n- 订单查询/取消 → `linkfox-shopee-store-orders`\r\n- 正向物流发货 → `linkfox-shopee-store-logistics`\r\n- 商品 listing → `linkfox-shopee-store-product`\r\n\r\n**Feedback:**\r\n\r\nAuto-detect and report feedback via the Feedback API when any of the following apply:\r\n1. The functionality or purpose described in this skill does not match actual behavior\r\n2. The skill's results do not match the user's intent\r\n3. The user expresses dissatisfaction or praise about this skill\r\n4. Anything you believe could be improved\r\n\r\nCall the feedback API as specified in `references/api.md`. Do not interrupt the user's flow.\r\n\r\n\r\n---\r\n*For more high-quality, professional cross-border e-commerce skills, visit [LinkFox Skills](https://skill.linkfox.com/).*\n\nFile v1.0.2:_meta.json\n\n{\n  \"ownerId\": \"kn7dmc1t4j28hem1twwyav85p182pb1j\",\n  \"slug\": \"linkfox-shopee-store-returns\",\n  \"version\": \"1.0.2\",\n  \"publishedAt\": 1783337630502\n}\n\nFile v1.0.2:references/api.md\n\n# linkfox-shopee-store-returns — 参数与字段参考\r\n\r\nShopee **Returns 模块**全部 15 个 API，经 **`POST /shopee/developerProxy`** 转发。\r\n\r\n授权见 **`linkfox-shopee-store-auth`**。官方索引：[v2.returns.get_return_list](https://open.shopee.com/documents/v2/v2.returns.get_return_list?module=102&type=1)\r\n\r\n## 通用约定\r\n\r\n- **Base URL**：`${LINKFOX_TOOL_GATEWAY}`\r\n- **Method**：POST（网关），上游 Method 见各接口\r\n- **Auth**：Header `Authorization: <api_key>`（从 `LINKFOX_AGENT_API_KEY` 或 `LINKFOXAGENT_API_KEY` 读取）\r\n- **流程**：`POST /shopee/storeTokens` → `POST /shopee/developerProxy`\r\n- **path**：须 `api/v2/returns/...`\r\n- **标识**：店铺级 API，通常传 **`shopId`**\r\n- **官方文档 URL 规则**：`https://open.shopee.com/documents/v2/v2.returns.{api}?module=102&type=1`\r\n- **复杂 POST**（如 `dispute`、`offer`）：推荐传完整 `body` 对象\r\n\r\n---\r\n\r\n## Returns 模块总览\r\n\r\n| # | API | Method | path | 脚本 | 官方文档 |\r\n|---|-----|--------|------|------|----------|\r\n| 1 | accept_offer | POST | `api/v2/returns/accept_offer` | `accept_offer.py` | [doc](https://open.shopee.com/documents/v2/v2.returns.accept_offer?module=102&type=1) |\r\n| 2 | cancel_dispute | POST | `api/v2/returns/cancel_dispute` | `cancel_dispute.py` | [doc](https://open.shopee.com/documents/v2/v2.returns.cancel_dispute?module=102&type=1) |\r\n| 3 | confirm | POST | `api/v2/returns/confirm` | `confirm.py` | [doc](https://open.shopee.com/documents/v2/v2.returns.confirm?module=102&type=1) |\r\n| 4 | convert_image | POST | `api/v2/returns/convert_image` | `convert_image.py` | [doc](https://open.shopee.com/documents/v2/v2.returns.convert_image?module=102&type=1) |\r\n| 5 | dispute | POST | `api/v2/returns/dispute` | `dispute.py` | [doc](https://open.shopee.com/documents/v2/v2.returns.dispute?module=102&type=1) |\r\n| 6 | get_available_solutions | GET | `api/v2/returns/get_available_solutions` | `get_available_solutions.py` | [doc](https://open.shopee.com/documents/v2/v2.returns.get_available_solutions?module=102&type=1) |\r\n| 7 | get_return_detail | GET | `api/v2/returns/get_return_detail` | `get_return_detail.py` | [doc](https://open.shopee.com/documents/v2/v2.returns.get_return_detail?module=102&type=1) |\r\n| 8 | get_return_dispute_reason | GET | `api/v2/returns/get_return_dispute_reason` | `get_return_dispute_reason.py` | [doc](https://open.shopee.com/documents/v2/v2.returns.get_return_dispute_reason?module=102&type=1) |\r\n| 9 | get_return_list | GET | `api/v2/returns/get_return_list` | `get_return_list.py` | [doc](https://open.shopee.com/documents/v2/v2.returns.get_return_list?module=102&type=1) |\r\n| 10 | get_reverse_tracking_info | GET | `api/v2/returns/get_reverse_tracking_info` | `get_reverse_tracking_info.py` | [doc](https://open.shopee.com/documents/v2/v2.returns.get_reverse_tracking_info?module=102&type=1) |\r\n| 11 | get_shipping_carrier | GET | `api/v2/returns/get_shipping_carrier` | `get_shipping_carrier.py` | [doc](https://open.shopee.com/documents/v2/v2.returns.get_shipping_carrier?module=102&type=1) |\r\n| 12 | offer | POST | `api/v2/returns/offer` | `offer.py` | [doc](https://open.shopee.com/documents/v2/v2.returns.offer?module=102&type=1) |\r\n| 13 | query_proof | GET | `api/v2/returns/query_proof` | `query_proof.py` | [doc](https://open.shopee.com/documents/v2/v2.returns.query_proof?module=102&type=1) |\r\n| 14 | upload_proof | POST | `api/v2/returns/upload_proof` | `upload_proof.py` | [doc](https://open.shopee.com/documents/v2/v2.returns.upload_proof?module=102&type=1) |\r\n| 15 | upload_shipping_proof | POST | `api/v2/returns/upload_shipping_proof` | `upload_shipping_proof.py` | [doc](https://open.shopee.com/documents/v2/v2.returns.upload_shipping_proof?module=102&type=1) |\r\n通用入口：`returns_api.py`（JSON 含 `\"api\": \"<上表 API 名>\"`）。\r\n\r\n---\r\n\r\n## 常用接口说明\r\n\r\n### 查询\r\n\r\n| API | 要点 |\r\n|-----|------|\r\n| `get_return_list` | 退货/退款列表；可选 `page_no`、`page_size`、时间筛选 |\r\n| `get_return_detail` | 必填 `return_sn` |\r\n| `get_reverse_tracking_info` | 逆向物流轨迹 |\r\n\r\n### 卖家处理\r\n\r\n| API | 要点 |\r\n|-----|------|\r\n| `confirm` | 卖家确认退货；POST `body` 含 `return_sn` |\r\n| `get_available_solutions` | 必填 `return_sn`；可用解决方案 |\r\n| `offer` / `accept_offer` | 提出/接受解决方案 |\r\n| `dispute` / `cancel_dispute` | 发起/取消争议 |\r\n\r\n### 凭证与物流\r\n\r\n| API | 要点 |\r\n|-----|------|\r\n| `upload_proof` / `query_proof` | 上传/查询退货凭证 |\r\n| `convert_image` | 图片转换 |\r\n| `get_shipping_carrier` | 退货物流承运商 |\r\n| `upload_shipping_proof` | 上传退货运单凭证 |\r\n| `get_return_dispute_reason` | 争议原因列表 |\r\n\r\n---\r\n\r\n## 网关错误码\r\n\r\n| errcode | 含义 | 建议 |\r\n|---------|------|------|\r\n| 1002 | 参数/未登录 | 检查 shopId 与 API Key |\r\n| 1003 | 代理/网络异常 | 重试 |\r\n| 1004 | 无授权记录 | auth skill |\r\n| 1005 | path 未白名单 | 确认 `api/v2/returns/...` |\r\n\r\n---\r\n\r\n## curl 示例\r\n\r\n```bash\r\nexport KEY=$LINKFOXAGENT_API_KEY\r\nBASE=https://tool-gateway.linkfox.com\r\n\r\ncurl -X POST $BASE/shopee/developerProxy -H \"Authorization: $KEY\" \\\r\n  -H \"Content-Type: application/json\" \\\r\n  -d '{\r\n    \"path\": \"api/v2/returns/get_return_list\",\r\n    \"method\": \"GET\",\r\n    \"accessToken\": \"xxx\",\r\n    \"shopId\": \"67890\",\r\n    \"queryString\": \"page_no=1&page_size=20\"\r\n  }'\r\n```\r\n\r\n---\r\n\r\n## Feedback API\r\n\r\n```bash\r\ncurl -X POST https://skill-api.linkfox.com/api/v1/public/feedback \\\r\n  -H \"Content-Type: application/json\" \\\r\n  -d '{\"skillName\":\"linkfox-shopee-store-returns\",\"sentiment\":\"POSITIVE\",\r\n       \"category\":\"OTHER\",\"content\":\"退货列表查询正常\"}'\r\n```\n\nFile v1.0.2:skill-card.md\n\n## Description: <br>\nHelps agents query and manage Shopee store return and refund workflows through LinkFox gateway scripts for the Shopee Open API Returns module. <br>\n\nThis skill is ready for commercial/non-commercial use. <br>\n\n## Publisher: <br>\n[linkfox-ai](https://clawhub.ai/user/linkfox-ai) <br>\n\n### License/Terms of Use: <br>\nMIT-0 <br>\n\n\n## Use Case: <br>\nE-commerce operators and support agents use this skill to inspect Shopee return lists and return details, then run seller-side return, refund, dispute, proof, and reverse-logistics actions for authorized Shopee stores. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: The skill can perform live Shopee return and refund actions through LinkFox. <br>\nMitigation: Run mutating APIs only after the user explicitly requests the exact action and confirms the target store, return identifier, and intended outcome. <br>\nRisk: Full API responses may contain sensitive business or customer data and are saved locally by default. <br>\nMitigation: Use the skill in a controlled workspace, restrict access to saved linkfox data, and review or remove stored responses when they are no longer needed. <br>\nRisk: The security scan verdict is suspicious because of live workflow access and persistent response storage. <br>\nMitigation: Install only when this access pattern is acceptable for the workspace and scan/review the skill before deployment. <br>\n\n\n## Reference(s): <br>\n- [ClawHub Skill Page](https://clawhub.ai/linkfox-ai/skills/linkfox-shopee-store-returns) <br>\n- [Shopee Returns API Reference](https://open.shopee.com/documents/v2/v2.returns.get_return_list?module=102&type=1) <br>\n- [Bundled API Parameter Reference](references/api.md) <br>\n- [LinkFox Skills](https://skill.linkfox.com/) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [text, json, shell commands, guidance] <br>\n**Output Format:** [Markdown guidance with Python shell commands and saved JSON API responses] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [Scripts save full API responses under a local linkfox session directory and print either full JSON or a summary depending on response size.] <br>\n\n## Skill Version(s): <br>\n1.0.2 (source: server release evidence) <br>\n\n## Ethical Considerations: <br>\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment. <br>\n\nArchive v1.0.1: 23 files, 22706 bytes\n\nFiles: references/api.md (5756b), scripts/_returns_api_runner.py (4279b), scripts/_returns_endpoints.py (3967b), scripts/_shopee_returns_common.py (11658b), scripts/accept_offer.py (697b), scripts/cancel_dispute.py (709b), scripts/check_auth_dependency.py (3983b), scripts/confirm.py (667b), scripts/convert_image.py (703b), scripts/dispute.py (667b), scripts/get_available_solutions.py (763b), scripts/get_return_detail.py (727b), scripts/get_return_dispute_reason.py (775b), scripts/get_return_list.py (715b), scripts/get_reverse_tracking_info.py (775b), scripts/get_shipping_carrier.py (745b), scripts/offer.py (655b), scripts/query_proof.py (691b), scripts/returns_api.py (1066b), scripts/upload_proof.py (697b), scripts/upload_shipping_proof.py (751b), SKILL.md (5474b), _meta.json (147b)\n\nFile v1.0.1:SKILL.md\n\n---\r\nname: linkfox-shopee-store-returns\r\ndescription: Shopee（虾皮）店铺退货退款（与 linkfox-shopee-store-auth 同系列），经 /shopee/developerProxy 转发 Shopee Open API Returns 模块全部 15 个接口：get_return_list、get_return_detail、confirm、dispute、offer、accept_offer、upload_proof、get_reverse_tracking_info 等。当用户提到 Shopee 退货、退款、return_sn、退货列表、确认退货、退货争议、dispute、逆向物流 时触发。即使未明确提及\"退货\"，只要涉及已授权 Shopee 店铺的退货/退款查询或处理，也应触发。\r\n---\r\n\r\n# Shopee 店铺 Returns\r\n\r\nShopee Open Platform **Returns 模块**（15 个 API）。**依赖 `linkfox-shopee-store-auth`**：先取 `accessToken`，再经 **`POST /shopee/developerProxy`** 转发（`path` 须 `api/v2/returns/...`）。\r\n\r\n## 调用方式\r\n\r\n- **API 端点**：`POST /shopee/developerProxy`（不同操作通过请求体区分；完整参数/响应/错误码见 `references/api.md`）\r\n- **Python 脚本**：`python scripts/<脚本名>.py '<JSON 参数>' [--inline]`（可用脚本见上文脚本一览）\r\n- **成本约束**：本工具会消耗积分；失败/空结果不得自动换关键词、翻页或连续试探；需要继续检索时先向用户说明会产生额外消耗。\r\n\r\n**输出策略（脚本默认行为）**：\r\n- **始终**将完整响应写入 `<cwd>/linkfox/<YYYY-MM-DD>/<session>/data/<skill-name>-<timestamp>.json`（`<cwd>` 为脚本执行时的工作目录，在 Claude Code 里即当前项目目录；`<session>` 取自环境变量 `SESSION_ID`，按用户任务自动聚合；**禁止写入 /tmp**，当前目录不可写则报错）\r\n- 响应体 ≤ 8 KB：落盘后把完整 JSON 打印到 stdout\r\n- 响应体 > 8 KB：落盘后 stdout 只输出摘要（顶层字段、常见计数如 `total`/`costToken`、最大列表字段的长度 + 前 3 条样本）\r\n- 加 `--inline` 强制全量打印到 stdout（同样落盘）\r\n\r\n**读数据建议**：先看摘要判断是否足够；需要具体字段时优先用 `jq`或`ConvertFrom-Json` 从保存的 json 文件按需抽取，避免整份 JSON 进入上下文。\r\n\r\n## 官方参考\r\n\r\nReturns 模块索引：[v2.returns.get_return_list](https://open.shopee.com/documents/v2/v2.returns.get_return_list?module=102&type=1)\r\n\r\n---\r\n\r\n## Prerequisites（必须先读）\r\n\r\n1. 运行 `python scripts/check_auth_dependency.py`；exit code **42** → 先安装 **`linkfox-shopee-store-auth`** 并授权店铺。\r\n2. **不要**在本 skill 内实现授权/令牌逻辑。\r\n\r\n---\r\n\r\n## Core Concepts\r\n\r\n- **转发链路**：`storeTokens` → `developerProxy` → 紫鸟 `shopee-proxy` → Shopee API\r\n- **退货 vs 订单**：订单查询见 `linkfox-shopee-store-orders`；本 skill 处理**退货/退款/争议**\r\n- **典型流程**：`get_return_list` → `get_return_detail` → `confirm` / `offer` / `dispute`\r\n- **店铺级 API**：通常传 **`shopId`**\r\n\r\n## 可用脚本（Returns 模块 15 个 API）\r\n\r\n| 脚本 | API | Method |\r\n|------|-----|--------|\r\n| `get_return_list.py` | get_return_list | GET |\r\n| `get_return_detail.py` | get_return_detail | GET |\r\n| `confirm.py` | confirm | POST |\r\n| `dispute.py` | dispute | POST |\r\n| `get_available_solutions.py` | get_available_solutions | GET |\r\n| `offer.py` | offer | POST |\r\n| `accept_offer.py` | accept_offer | POST |\r\n| `convert_image.py` | convert_image | POST |\r\n| `upload_proof.py` | upload_proof | POST |\r\n| `query_proof.py` | query_proof | GET |\r\n| `get_return_dispute_reason.py` | get_return_dispute_reason | GET |\r\n| `cancel_dispute.py` | cancel_dispute | POST |\r\n| `get_shipping_carrier.py` | get_shipping_carrier | GET |\r\n| `upload_shipping_proof.py` | upload_shipping_proof | POST |\r\n| `get_reverse_tracking_info.py` | get_reverse_tracking_info | GET |\r\n| `returns_api.py` | 通用入口（JSON 含 `api` 字段） | — |\r\n\r\n共享：`_shopee_returns_common.py`、`_returns_endpoints.py`、`_returns_api_runner.py`。\r\n\r\n## Usage Scenarios\r\n\r\n### 1. 查退货列表与详情\r\n1. `get_return_list.py`：`page_no`、`page_size`\r\n2. `get_return_detail.py`：`return_sn`\r\n\r\n### 2. 处理退货\r\n1. `get_available_solutions.py`：`return_sn`\r\n2. `confirm.py` 或 `offer.py`：POST `body`\r\n3. 如有争议：`dispute.py` / `cancel_dispute.py`\r\n\r\n### 3. 凭证与逆向物流\r\n- `upload_proof.py` / `query_proof.py`\r\n- `get_reverse_tracking_info.py`\r\n\r\n## 调用原则\r\n\r\n- 先看 **`developerProxy.httpStatus`**，再读 `*Response` 字段\r\n- GET：业务参数放 JSON 顶层\r\n- POST：复杂接口传 `body`\r\n- 每个脚本 docstring 含 **官方文档 URL**（`module=102`）\r\n\r\n## Not Applicable\r\n\r\n- 店铺授权 → `linkfox-shopee-store-auth`\r\n- 订单查询/取消 → `linkfox-shopee-store-orders`\r\n- 正向物流发货 → `linkfox-shopee-store-logistics`\r\n- 商品 listing → `linkfox-shopee-store-product`\r\n\r\n**Feedback:**\r\n\r\nAuto-detect and report feedback via the Feedback API when any of the following apply:\r\n1. The functionality or purpose described in this skill does not match actual behavior\r\n2. The skill's results do not match the user's intent\r\n3. The user expresses dissatisfaction or praise about this skill\r\n4. Anything you believe could be improved\r\n\r\nCall the feedback API as specified in `references/api.md`. Do not interrupt the user's flow.\r\n\r\n\r\n---\r\n*For more high-quality, professional cross-border e-commerce skills, visit [LinkFox Skills](https://skill.linkfox.com/).*\n\nFile v1.0.1:_meta.json\n\n{\n  \"ownerId\": \"kn7dmc1t4j28hem1twwyav85p182pb1j\",\n  \"slug\": \"linkfox-shopee-store-returns\",\n  \"version\": \"1.0.1\",\n  \"publishedAt\": 1783067585029\n}\n\nFile v1.0.1:references/api.md\n\n# linkfox-shopee-store-returns — 参数与字段参考\r\n\r\nShopee **Returns 模块**全部 15 个 API，经 **`POST /shopee/developerProxy`** 转发。\r\n\r\n授权见 **`linkfox-shopee-store-auth`**。官方索引：[v2.returns.get_return_list](https://open.shopee.com/documents/v2/v2.returns.get_return_list?module=102&type=1)\r\n\r\n## 通用约定\r\n\r\n- **Base URL**：`${LINKFOX_TOOL_GATEWAY}`\r\n- **Method**：POST（网关），上游 Method 见各接口\r\n- **Auth**：Header `Authorization: <api_key>`（从 `LINKFOX_AGENT_API_KEY` 或 `LINKFOXAGENT_API_KEY` 读取）\r\n- **流程**：`POST /shopee/storeTokens` → `POST /shopee/developerProxy`\r\n- **path**：须 `api/v2/returns/...`\r\n- **标识**：店铺级 API，通常传 **`shopId`**\r\n- **官方文档 URL 规则**：`https://open.shopee.com/documents/v2/v2.returns.{api}?module=102&type=1`\r\n- **复杂 POST**（如 `dispute`、`offer`）：推荐传完整 `body` 对象\r\n\r\n---\r\n\r\n## Returns 模块总览\r\n\r\n| # | API | Method | path | 脚本 | 官方文档 |\r\n|---|-----|--------|------|------|----------|\r\n| 1 | accept_offer | POST | `api/v2/returns/accept_offer` | `accept_offer.py` | [doc](https://open.shopee.com/documents/v2/v2.returns.accept_offer?module=102&type=1) |\r\n| 2 | cancel_dispute | POST | `api/v2/returns/cancel_dispute` | `cancel_dispute.py` | [doc](https://open.shopee.com/documents/v2/v2.returns.cancel_dispute?module=102&type=1) |\r\n| 3 | confirm | POST | `api/v2/returns/confirm` | `confirm.py` | [doc](https://open.shopee.com/documents/v2/v2.returns.confirm?module=102&type=1) |\r\n| 4 | convert_image | POST | `api/v2/returns/convert_image` | `convert_image.py` | [doc](https://open.shopee.com/documents/v2/v2.returns.convert_image?module=102&type=1) |\r\n| 5 | dispute | POST | `api/v2/returns/dispute` | `dispute.py` | [doc](https://open.shopee.com/documents/v2/v2.returns.dispute?module=102&type=1) |\r\n| 6 | get_available_solutions | GET | `api/v2/returns/get_available_solutions` | `get_available_solutions.py` | [doc](https://open.shopee.com/documents/v2/v2.returns.get_available_solutions?module=102&type=1) |\r\n| 7 | get_return_detail | GET | `api/v2/returns/get_return_detail` | `get_return_detail.py` | [doc](https://open.shopee.com/documents/v2/v2.returns.get_return_detail?module=102&type=1) |\r\n| 8 | get_return_dispute_reason | GET | `api/v2/returns/get_return_dispute_reason` | `get_return_dispute_reason.py` | [doc](https://open.shopee.com/documents/v2/v2.returns.get_return_dispute_reason?module=102&type=1) |\r\n| 9 | get_return_list | GET | `api/v2/returns/get_return_list` | `get_return_list.py` | [doc](https://open.shopee.com/documents/v2/v2.returns.get_return_list?module=102&type=1) |\r\n| 10 | get_reverse_tracking_info | GET | `api/v2/returns/get_reverse_tracking_info` | `get_reverse_tracking_info.py` | [doc](https://open.shopee.com/documents/v2/v2.returns.get_reverse_tracking_info?module=102&type=1) |\r\n| 11 | get_shipping_carrier | GET | `api/v2/returns/get_shipping_carrier` | `get_shipping_carrier.py` | [doc](https://open.shopee.com/documents/v2/v2.returns.get_shipping_carrier?module=102&type=1) |\r\n| 12 | offer | POST | `api/v2/returns/offer` | `offer.py` | [doc](https://open.shopee.com/documents/v2/v2.returns.offer?module=102&type=1) |\r\n| 13 | query_proof | GET | `api/v2/returns/query_proof` | `query_proof.py` | [doc](https://open.shopee.com/documents/v2/v2.returns.query_proof?module=102&type=1) |\r\n| 14 | upload_proof | POST | `api/v2/returns/upload_proof` | `upload_proof.py` | [doc](https://open.shopee.com/documents/v2/v2.returns.upload_proof?module=102&type=1) |\r\n| 15 | upload_shipping_proof | POST | `api/v2/returns/upload_shipping_proof` | `upload_shipping_proof.py` | [doc](https://open.shopee.com/documents/v2/v2.returns.upload_shipping_proof?module=102&type=1) |\r\n通用入口：`returns_api.py`（JSON 含 `\"api\": \"<上表 API 名>\"`）。\r\n\r\n---\r\n\r\n## 常用接口说明\r\n\r\n### 查询\r\n\r\n| API | 要点 |\r\n|-----|------|\r\n| `get_return_list` | 退货/退款列表；可选 `page_no`、`page_size`、时间筛选 |\r\n| `get_return_detail` | 必填 `return_sn` |\r\n| `get_reverse_tracking_info` | 逆向物流轨迹 |\r\n\r\n### 卖家处理\r\n\r\n| API | 要点 |\r\n|-----|------|\r\n| `confirm` | 卖家确认退货；POST `body` 含 `return_sn` |\r\n| `get_available_solutions` | 必填 `return_sn`；可用解决方案 |\r\n| `offer` / `accept_offer` | 提出/接受解决方案 |\r\n| `dispute` / `cancel_dispute` | 发起/取消争议 |\r\n\r\n### 凭证与物流\r\n\r\n| API | 要点 |\r\n|-----|------|\r\n| `upload_proof` / `query_proof` | 上传/查询退货凭证 |\r\n| `convert_image` | 图片转换 |\r\n| `get_shipping_carrier` | 退货物流承运商 |\r\n| `upload_shipping_proof` | 上传退货运单凭证 |\r\n| `get_return_dispute_reason` | 争议原因列表 |\r\n\r\n---\r\n\r\n## 网关错误码\r\n\r\n| errcode | 含义 | 建议 |\r\n|---------|------|------|\r\n| 1002 | 参数/未登录 | 检查 shopId 与 API Key |\r\n| 1003 | 代理/网络异常 | 重试 |\r\n| 1004 | 无授权记录 | auth skill |\r\n| 1005 | path 未白名单 | 确认 `api/v2/returns/...` |\r\n\r\n---\r\n\r\n## curl 示例\r\n\r\n```bash\r\nexport KEY=$LINKFOXAGENT_API_KEY\r\nBASE=https://tool-gateway.linkfox.com\r\n\r\ncurl -X POST $BASE/shopee/developerProxy -H \"Authorization: $KEY\" \\\r\n  -H \"Content-Type: application/json\" \\\r\n  -d '{\r\n    \"path\": \"api/v2/returns/get_return_list\",\r\n    \"method\": \"GET\",\r\n    \"accessToken\": \"xxx\",\r\n    \"shopId\": \"67890\",\r\n    \"queryString\": \"page_no=1&page_size=20\"\r\n  }'\r\n```\r\n\r\n---\r\n\r\n## Feedback API\r\n\r\n```bash\r\ncurl -X POST https://skill-api.linkfox.com/api/v1/public/feedback \\\r\n  -H \"Content-Type: application/json\" \\\r\n  -d '{\"skillName\":\"linkfox-shopee-store-returns\",\"sentiment\":\"POSITIVE\",\r\n       \"category\":\"OTHER\",\"content\":\"退货列表查询正常\"}'\r\n```\n\nArchive v1.0.0: 23 files, 22682 bytes\n\nFiles: references/api.md (5757b), scripts/_returns_api_runner.py (4279b), scripts/_returns_endpoints.py (3967b), scripts/_shopee_returns_common.py (11659b), scripts/accept_offer.py (697b), scripts/cancel_dispute.py (709b), scripts/check_auth_dependency.py (3983b), scripts/confirm.py (667b), scripts/convert_image.py (703b), scripts/dispute.py (667b), scripts/get_available_solutions.py (763b), scripts/get_return_detail.py (727b), scripts/get_return_dispute_reason.py (775b), scripts/get_return_list.py (715b), scripts/get_reverse_tracking_info.py (775b), scripts/get_shipping_carrier.py (745b), scripts/offer.py (655b), scripts/query_proof.py (691b), scripts/returns_api.py (1066b), scripts/upload_proof.py (697b), scripts/upload_shipping_proof.py (751b), SKILL.md (5474b), _meta.json (147b)\n\nFile v1.0.0:SKILL.md\n\n---\r\nname: linkfox-shopee-store-returns\r\ndescription: Shopee（虾皮）店铺退货退款（与 linkfox-shopee-store-auth 同系列），经 /shopee/developerProxy 转发 Shopee Open API Returns 模块全部 15 个接口：get_return_list、get_return_detail、confirm、dispute、offer、accept_offer、upload_proof、get_reverse_tracking_info 等。当用户提到 Shopee 退货、退款、return_sn、退货列表、确认退货、退货争议、dispute、逆向物流 时触发。即使未明确提及\"退货\"，只要涉及已授权 Shopee 店铺的退货/退款查询或处理，也应触发。\r\n---\r\n\r\n# Shopee 店铺 Returns\r\n\r\nShopee Open Platform **Returns 模块**（15 个 API）。**依赖 `linkfox-shopee-store-auth`**：先取 `accessToken`，再经 **`POST /shopee/developerProxy`** 转发（`path` 须 `api/v2/returns/...`）。\r\n\r\n## 调用方式\r\n\r\n- **API 端点**：`POST /shopee/developerProxy`（不同操作通过请求体区分；完整参数/响应/错误码见 `references/api.md`）\r\n- **Python 脚本**：`python scripts/<脚本名>.py '<JSON 参数>' [--inline]`（可用脚本见上文脚本一览）\r\n- **成本约束**：本工具会消耗积分；失败/空结果不得自动换关键词、翻页或连续试探；需要继续检索时先向用户说明会产生额外消耗。\r\n\r\n**输出策略（脚本默认行为）**：\r\n- **始终**将完整响应写入 `<cwd>/linkfox/<YYYY-MM-DD>/<session>/data/<skill-name>-<timestamp>.json`（`<cwd>` 为脚本执行时的工作目录，在 Claude Code 里即当前项目目录；`<session>` 取自环境变量 `SESSION_ID`，按用户任务自动聚合；**禁止写入 /tmp**，当前目录不可写则报错）\r\n- 响应体 ≤ 8 KB：落盘后把完整 JSON 打印到 stdout\r\n- 响应体 > 8 KB：落盘后 stdout 只输出摘要（顶层字段、常见计数如 `total`/`costToken`、最大列表字段的长度 + 前 3 条样本）\r\n- 加 `--inline` 强制全量打印到 stdout（同样落盘）\r\n\r\n**读数据建议**：先看摘要判断是否足够；需要具体字段时优先用 `jq`或`ConvertFrom-Json` 从保存的 json 文件按需抽取，避免整份 JSON 进入上下文。\r\n\r\n## 官方参考\r\n\r\nReturns 模块索引：[v2.returns.get_return_list](https://open.shopee.com/documents/v2/v2.returns.get_return_list?module=102&type=1)\r\n\r\n---\r\n\r\n## Prerequisites（必须先读）\r\n\r\n1. 运行 `python scripts/check_auth_dependency.py`；exit code **42** → 先安装 **`linkfox-shopee-store-auth`** 并授权店铺。\r\n2. **不要**在本 skill 内实现授权/令牌逻辑。\r\n\r\n---\r\n\r\n## Core Concepts\r\n\r\n- **转发链路**：`storeTokens` → `developerProxy` → 紫鸟 `shopee-proxy` → Shopee API\r\n- **退货 vs 订单**：订单查询见 `linkfox-shopee-store-orders`；本 skill 处理**退货/退款/争议**\r\n- **典型流程**：`get_return_list` → `get_return_detail` → `confirm` / `offer` / `dispute`\r\n- **店铺级 API**：通常传 **`shopId`**\r\n\r\n## 可用脚本（Returns 模块 15 个 API）\r\n\r\n| 脚本 | API | Method |\r\n|------|-----|--------|\r\n| `get_return_list.py` | get_return_list | GET |\r\n| `get_return_detail.py` | get_return_detail | GET |\r\n| `confirm.py` | confirm | POST |\r\n| `dispute.py` | dispute | POST |\r\n| `get_available_solutions.py` | get_available_solutions | GET |\r\n| `offer.py` | offer | POST |\r\n| `accept_offer.py` | accept_offer | POST |\r\n| `convert_image.py` | convert_image | POST |\r\n| `upload_proof.py` | upload_proof | POST |\r\n| `query_proof.py` | query_proof | GET |\r\n| `get_return_dispute_reason.py` | get_return_dispute_reason | GET |\r\n| `cancel_dispute.py` | cancel_dispute | POST |\r\n| `get_shipping_carrier.py` | get_shipping_carrier | GET |\r\n| `upload_shipping_proof.py` | upload_shipping_proof | POST |\r\n| `get_reverse_tracking_info.py` | get_reverse_tracking_info | GET |\r\n| `returns_api.py` | 通用入口（JSON 含 `api` 字段） | — |\r\n\r\n共享：`_shopee_returns_common.py`、`_returns_endpoints.py`、`_returns_api_runner.py`。\r\n\r\n## Usage Scenarios\r\n\r\n### 1. 查退货列表与详情\r\n1. `get_return_list.py`：`page_no`、`page_size`\r\n2. `get_return_detail.py`：`return_sn`\r\n\r\n### 2. 处理退货\r\n1. `get_available_solutions.py`：`return_sn`\r\n2. `confirm.py` 或 `offer.py`：POST `body`\r\n3. 如有争议：`dispute.py` / `cancel_dispute.py`\r\n\r\n### 3. 凭证与逆向物流\r\n- `upload_proof.py` / `query_proof.py`\r\n- `get_reverse_tracking_info.py`\r\n\r\n## 调用原则\r\n\r\n- 先看 **`developerProxy.httpStatus`**，再读 `*Response` 字段\r\n- GET：业务参数放 JSON 顶层\r\n- POST：复杂接口传 `body`\r\n- 每个脚本 docstring 含 **官方文档 URL**（`module=102`）\r\n\r\n## Not Applicable\r\n\r\n- 店铺授权 → `linkfox-shopee-store-auth`\r\n- 订单查询/取消 → `linkfox-shopee-store-orders`\r\n- 正向物流发货 → `linkfox-shopee-store-logistics`\r\n- 商品 listing → `linkfox-shopee-store-product`\r\n\r\n**Feedback:**\r\n\r\nAuto-detect and report feedback via the Feedback API when any of the following apply:\r\n1. The functionality or purpose described in this skill does not match actual behavior\r\n2. The skill's results do not match the user's intent\r\n3. The user expresses dissatisfaction or praise about this skill\r\n4. Anything you believe could be improved\r\n\r\nCall the feedback API as specified in `references/api.md`. Do not interrupt the user's flow.\r\n\r\n\r\n---\r\n*For more high-quality, professional cross-border e-commerce skills, visit [LinkFox Skills](https://skill.linkfox.com/).*\n\nFile v1.0.0:_meta.json\n\n{\n  \"ownerId\": \"kn7dmc1t4j28hem1twwyav85p182pb1j\",\n  \"slug\": \"linkfox-shopee-store-returns\",\n  \"version\": \"1.0.0\",\n  \"publishedAt\": 1783007802124\n}\n\nFile v1.0.0:references/api.md\n\n# linkfox-shopee-store-returns — 参数与字段参考\r\n\r\nShopee **Returns 模块**全部 15 个 API，经 **`POST /shopee/developerProxy`** 转发。\r\n\r\n授权见 **`linkfox-shopee-store-auth`**。官方索引：[v2.returns.get_return_list](https://open.shopee.com/documents/v2/v2.returns.get_return_list?module=102&type=1)\r\n\r\n## 通用约定\r\n\r\n- **Base URL**：`${LINKFOX_AGENT_API_URL}`\r\n- **Method**：POST（网关），上游 Method 见各接口\r\n- **Auth**：Header `Authorization: <api_key>`（从 `LINKFOX_AGENT_API_KEY` 或 `LINKFOXAGENT_API_KEY` 读取）\r\n- **流程**：`POST /shopee/storeTokens` → `POST /shopee/developerProxy`\r\n- **path**：须 `api/v2/returns/...`\r\n- **标识**：店铺级 API，通常传 **`shopId`**\r\n- **官方文档 URL 规则**：`https://open.shopee.com/documents/v2/v2.returns.{api}?module=102&type=1`\r\n- **复杂 POST**（如 `dispute`、`offer`）：推荐传完整 `body` 对象\r\n\r\n---\r\n\r\n## Returns 模块总览\r\n\r\n| # | API | Method | path | 脚本 | 官方文档 |\r\n|---|-----|--------|------|------|----------|\r\n| 1 | accept_offer | POST | `api/v2/returns/accept_offer` | `accept_offer.py` | [doc](https://open.shopee.com/documents/v2/v2.returns.accept_offer?module=102&type=1) |\r\n| 2 | cancel_dispute | POST | `api/v2/returns/cancel_dispute` | `cancel_dispute.py` | [doc](https://open.shopee.com/documents/v2/v2.returns.cancel_dispute?module=102&type=1) |\r\n| 3 | confirm | POST | `api/v2/returns/confirm` | `confirm.py` | [doc](https://open.shopee.com/documents/v2/v2.returns.confirm?module=102&type=1) |\r\n| 4 | convert_image | POST | `api/v2/returns/convert_image` | `convert_image.py` | [doc](https://open.shopee.com/documents/v2/v2.returns.convert_image?module=102&type=1) |\r\n| 5 | dispute | POST | `api/v2/returns/dispute` | `dispute.py` | [doc](https://open.shopee.com/documents/v2/v2.returns.dispute?module=102&type=1) |\r\n| 6 | get_available_solutions | GET | `api/v2/returns/get_available_solutions` | `get_available_solutions.py` | [doc](https://open.shopee.com/documents/v2/v2.returns.get_available_solutions?module=102&type=1) |\r\n| 7 | get_return_detail | GET | `api/v2/returns/get_return_detail` | `get_return_detail.py` | [doc](https://open.shopee.com/documents/v2/v2.returns.get_return_detail?module=102&type=1) |\r\n| 8 | get_return_dispute_reason | GET | `api/v2/returns/get_return_dispute_reason` | `get_return_dispute_reason.py` | [doc](https://open.shopee.com/documents/v2/v2.returns.get_return_dispute_reason?module=102&type=1) |\r\n| 9 | get_return_list | GET | `api/v2/returns/get_return_list` | `get_return_list.py` | [doc](https://open.shopee.com/documents/v2/v2.returns.get_return_list?module=102&type=1) |\r\n| 10 | get_reverse_tracking_info | GET | `api/v2/returns/get_reverse_tracking_info` | `get_reverse_tracking_info.py` | [doc](https://open.shopee.com/documents/v2/v2.returns.get_reverse_tracking_info?module=102&type=1) |\r\n| 11 | get_shipping_carrier | GET | `api/v2/returns/get_shipping_carrier` | `get_shipping_carrier.py` | [doc](https://open.shopee.com/documents/v2/v2.returns.get_shipping_carrier?module=102&type=1) |\r\n| 12 | offer | POST | `api/v2/returns/offer` | `offer.py` | [doc](https://open.shopee.com/documents/v2/v2.returns.offer?module=102&type=1) |\r\n| 13 | query_proof | GET | `api/v2/returns/query_proof` | `query_proof.py` | [doc](https://open.shopee.com/documents/v2/v2.returns.query_proof?module=102&type=1) |\r\n| 14 | upload_proof | POST | `api/v2/returns/upload_proof` | `upload_proof.py` | [doc](https://open.shopee.com/documents/v2/v2.returns.upload_proof?module=102&type=1) |\r\n| 15 | upload_shipping_proof | POST | `api/v2/returns/upload_shipping_proof` | `upload_shipping_proof.py` | [doc](https://open.shopee.com/documents/v2/v2.returns.upload_shipping_proof?module=102&type=1) |\r\n通用入口：`returns_api.py`（JSON 含 `\"api\": \"<上表 API 名>\"`）。\r\n\r\n---\r\n\r\n## 常用接口说明\r\n\r\n### 查询\r\n\r\n| API | 要点 |\r\n|-----|------|\r\n| `get_return_list` | 退货/退款列表；可选 `page_no`、`page_size`、时间筛选 |\r\n| `get_return_detail` | 必填 `return_sn` |\r\n| `get_reverse_tracking_info` | 逆向物流轨迹 |\r\n\r\n### 卖家处理\r\n\r\n| API | 要点 |\r\n|-----|------|\r\n| `confirm` | 卖家确认退货；POST `body` 含 `return_sn` |\r\n| `get_available_solutions` | 必填 `return_sn`；可用解决方案 |\r\n| `offer` / `accept_offer` | 提出/接受解决方案 |\r\n| `dispute` / `cancel_dispute` | 发起/取消争议 |\r\n\r\n### 凭证与物流\r\n\r\n| API | 要点 |\r\n|-----|------|\r\n| `upload_proof` / `query_proof` | 上传/查询退货凭证 |\r\n| `convert_image` | 图片转换 |\r\n| `get_shipping_carrier` | 退货物流承运商 |\r\n| `upload_shipping_proof` | 上传退货运单凭证 |\r\n| `get_return_dispute_reason` | 争议原因列表 |\r\n\r\n---\r\n\r\n## 网关错误码\r\n\r\n| errcode | 含义 | 建议 |\r\n|---------|------|------|\r\n| 1002 | 参数/未登录 | 检查 shopId 与 API Key |\r\n| 1003 | 代理/网络异常 | 重试 |\r\n| 1004 | 无授权记录 | auth skill |\r\n| 1005 | path 未白名单 | 确认 `api/v2/returns/...` |\r\n\r\n---\r\n\r\n## curl 示例\r\n\r\n```bash\r\nexport KEY=$LINKFOXAGENT_API_KEY\r\nBASE=https://tool-gateway.linkfox.com\r\n\r\ncurl -X POST $BASE/shopee/developerProxy -H \"Authorization: $KEY\" \\\r\n  -H \"Content-Type: application/json\" \\\r\n  -d '{\r\n    \"path\": \"api/v2/returns/get_return_list\",\r\n    \"method\": \"GET\",\r\n    \"accessToken\": \"xxx\",\r\n    \"shopId\": \"67890\",\r\n    \"queryString\": \"page_no=1&page_size=20\"\r\n  }'\r\n```\r\n\r\n---\r\n\r\n## Feedback API\r\n\r\n```bash\r\ncurl -X POST https://skill-api.linkfox.com/api/v1/public/feedback \\\r\n  -H \"Content-Type: application/json\" \\\r\n  -d '{\"skillName\":\"linkfox-shopee-store-returns\",\"sentiment\":\"POSITIVE\",\r\n       \"category\":\"OTHER\",\"content\":\"退货列表查询正常\"}'\r\n```","readmeExcerpt":"Skill: Shopee-店铺退货 Owner: linkfox-ai Summary: Shopee（虾皮）店铺退货退款（与 linkfox-shopee-store-auth 同系列），经 /shopee/developerProxy 转发 Shopee Open API Returns 模块全部 15 个接口：get_return_list、get_return_detail、confirm、dispute、offer、accept_offer、upload_proof、get_reverse_tracking_info 等。当用户提到 Shopee 退货、退款、return_sn、退货列表、确认退货、退货争议、dispute、逆向物流 时触发。即使未明确提及\"退货\"，只要涉及已授权 Shopee 店铺的退货/退款查询或处理，也应触发。 Tags: latest:1.0.5 Version history: v1.0.5","codeSnippets":[],"executableExamples":[{"language":"text","snippet":"File v1.0.5:references/apis/accept-offer.md\n\n# accept_offer\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/accept_offer.py` |\n| Method / path | POST `api/v2/returns/accept_offer` |\n| 官方文档 | [accept_offer](https://open.shopee.com/documents/v2/v2.returns.accept_offer?module=102&type=1) |\n| 用途 | Accept buyer/seller offer; pass full body |\n\n经 **`POST /shopee/developerProxy`** 转发；依赖 **`linkfox-shopee-store-auth`** 选店（通常传 `shopId` 或 `merchantId`）。\n\n---\n\n## 脚本 JSON 入参\n\n| 字段 | 类型 | 必填 | 说明 |\n|------|------|------|------|\n| `shopId` | string | 与 `merchantId` 二选一 | 店铺 ID（推荐；Public 等无店铺接口可省略） |\n| `merchantId` | string | 与 `shopId` 二选一 | 商户 ID |\n\n- Method：**POST**\n- POST：传 `body` / `requestBody`，或把 `body_fields` 列在 JSON 顶层\n- `shopId` / `merchantId` / `skipDepCheck` 等为网关选店保留字段，不会进 Shopee query/body\n- Registry notes：Accept buyer/seller offer; pass full body\n\n---\n\n## 调用示例"},{"language":"text","snippet":"---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`acceptOffer`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nFile v1.0.5:references/apis/cancel-dispute.md\n\n# cancel_dispute\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/cancel_dispute.py` |\n| Method / path | POST `api/v2/returns/cancel_dispute` |\n| 官方文档 | [cancel_dispute](https://open.shopee.com/documents/v2/v2.returns.cancel_dispute?module=102&type=1) |\n| 用途 | Cancel dispute; pass body with return_sn |\n\n经 **`POST /shopee/developerProxy`** 转发；依赖 **`linkfox-shopee-store-auth`** 选店（通常传 `shopId` 或 `merchantId`）。\n\n---\n\n## 脚本 JSON 入参\n\n| 字段 | 类型 | 必填 | 说明 |\n|------|------|------|------|\n| `shopId` | string | 与 `merchantId` 二选一 | 店铺 ID（推荐；Public 等无店铺接口可省略） |\n| `merchantId` | string | 与 `shopId` 二选一 | 商户 ID |\n\n- Method：**POST**\n- POST：传 `body` / `requestBody`，或把 `body_fields` 列在 JSON 顶层\n- `shopId` / `merchantId` / `skipDepCheck` 等为网关选店保留字段，不会进 Shopee query/body\n- Registry notes：Cancel dispute; pass body with return_sn\n\n---\n\n## 调用示例"},{"language":"text","snippet":"---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`cancelDispute`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nFile v1.0.5:references/apis/confirm.md\n\n# confirm\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/confirm.py` |\n| Method / path | POST `api/v2/returns/confirm` |\n| 官方文档 | [confirm](https://open.shopee.com/documents/v2/v2.returns.confirm?module=102&type=1) |\n| 用途 | Seller confirm return; pass body with return_sn |\n\n经 **`POST /shopee/developerProxy`** 转发；依赖 **`linkfox-shopee-store-auth`** 选店（通常传 `shopId` 或 `merchantId`）。\n\n---\n\n## 脚本 JSON 入参\n\n| 字段 | 类型 | 必填 | 说明 |\n|------|------|------|------|\n| `shopId` | string | 与 `merchantId` 二选一 | 店铺 ID（推荐；Public 等无店铺接口可省略） |\n| `merchantId` | string | 与 `shopId` 二选一 | 商户 ID |\n\n- Method：**POST**\n- POST：传 `body` / `requestBody`，或把 `body_fields` 列在 JSON 顶层\n- `shopId` / `merchantId` / `skipDepCheck` 等为网关选店保留字段，不会进 Shopee query/body\n- Registry notes：Seller confirm return; pass body with return_sn\n\n---\n\n## 调用示例"},{"language":"text","snippet":"---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`confirm`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nFile v1.0.5:references/apis/convert-image.md\n\n# convert_image\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/convert_image.py` |\n| Method / path | POST `api/v2/returns/convert_image` |\n| 官方文档 | [convert_image](https://open.shopee.com/documents/v2/v2.returns.convert_image?module=102&type=1) |\n| 用途 | Convert image for return proof |\n\n经 **`POST /shopee/developerProxy`** 转发；依赖 **`linkfox-shopee-store-auth`** 选店（通常传 `shopId` 或 `merchantId`）。\n\n---\n\n## 脚本 JSON 入参\n\n| 字段 | 类型 | 必填 | 说明 |\n|------|------|------|------|\n| `shopId` | string | 与 `merchantId` 二选一 | 店铺 ID（推荐；Public 等无店铺接口可省略） |\n| `merchantId` | string | 与 `shopId` 二选一 | 商户 ID |\n\n- Method：**POST**\n- POST：传 `body` / `requestBody`，或把 `body_fields` 列在 JSON 顶层\n- `shopId` / `merchantId` / `skipDepCheck` 等为网关选店保留字段，不会进 Shopee query/body\n- Registry notes：Convert image for return proof\n\n---\n\n## 调用示例"},{"language":"text","snippet":"---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`convertImage`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nFile v1.0.5:references/apis/dispute.md\n\n# dispute\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/dispute.py` |\n| Method / path | POST `api/v2/returns/dispute` |\n| 官方文档 | [dispute](https://open.shopee.com/documents/v2/v2.returns.dispute?module=102&type=1) |\n| 用途 | Open return dispute; pass full body |\n\n经 **`POST /shopee/developerProxy`** 转发；依赖 **`linkfox-shopee-store-auth`** 选店（通常传 `shopId` 或 `merchantId`）。\n\n---\n\n## 脚本 JSON 入参\n\n| 字段 | 类型 | 必填 | 说明 |\n|------|------|------|------|\n| `shopId` | string | 与 `merchantId` 二选一 | 店铺 ID（推荐；Public 等无店铺接口可省略） |\n| `merchantId` | string | 与 `shopId` 二选一 | 商户 ID |\n\n- Method：**POST**\n- POST：传 `body` / `requestBody`，或把 `body_fields` 列在 JSON 顶层\n- `shopId` / `merchantId` / `skipDepCheck` 等为网关选店保留字段，不会进 Shopee query/body\n- Registry notes：Open return dispute; pass full body\n\n---\n\n## 调用示例"},{"language":"text","snippet":"---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`dispute`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nFile v1.0.5:references/apis/get-available-solutions.md\n\n# get_available_solutions\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/get_available_solutions.py` |\n| Method / path | GET `api/v2/returns/get_available_solutions` |\n| 官方文档 | [get_available_solutions](https://open.shopee.com/documents/v2/v2.returns.get_available_solutions?module=102&type=1) |\n| 用途 | Available solutions for return |\n\n经 **`POST /shopee/developerProxy`** 转发；依赖 **`linkfox-shopee-store-auth`** 选店（通常传 `shopId` 或 `merchantId`）。\n\n---\n\n## 脚本 JSON 入参\n\n| 字段 | 类型 | 必填 | 说明 |\n|------|------|------|------|\n| `shopId` | string | 与 `merchantId` 二选一 | 店铺 ID（推荐；Public 等无店铺接口可省略） |\n| `merchantId` | string | 与 `shopId` 二选一 | 商户 ID |\n| `return_sn` | — | **是** | Query 必填（见 notes / 官方文档） |\n\n- Method：**GET**\n- GET：业务字段放 JSON **顶层**，runner 拼进 `queryString`（不含 `?`）\n- `shopId` / `merchantId` / `skipDepCheck` 等为网关选店保留字段，不会进 Shopee query/body\n- Registry notes：Available solutions for return\n\n---\n\n## 调用示例"}],"parameters":null,"dependencies":[],"permissions":[],"extractedFiles":[{"path":"SKILL.md","content":"---\nname: linkfox-shopee-store-returns\ndescription: Shopee（虾皮）店铺退货退款（与 linkfox-shopee-store-auth 同系列），经 /shopee/developerProxy 转发 Shopee Open API Returns 模块全部 15 个接口：get_return_list、get_return_detail、confirm、dispute、offer、accept_offer、upload_proof、get_reverse_tracking_info 等。当用户提到 Shopee 退货、退款、return_sn、退货列表、确认退货、退货争议、dispute、逆向物流 时触发。即使未明确提及\"退货\"，只要涉及已授权 Shopee 店铺的退货/退款查询或处理，也应触发。\n---\n\n# Shopee 店铺 Returns\n\nShopee Open Platform **Returns 模块**（15 个 API）。**依赖 `linkfox-shopee-store-auth`** 选店；经 **`POST /shopee/developerProxy`** 传入 `shopId`（或 `merchantId`），由服务端解析 token 转发（`path` 须 `api/v2/returns/...`）。\n\n## 调用方式\n\n- **API 端点**：`POST /shopee/developerProxy`（不同操作通过请求体区分；完整参数/响应/错误码见 `references/api.md`）\n- **Python 脚本**：`python scripts/<脚本名>.py '<JSON 参数>' [--inline]`（可用脚本见上文脚本一览）\n- **成本约束**：本工具会消耗积分；失败/空结果不得自动换关键词、翻页或连续试探；需要继续检索时先向用户说明会产生额外消耗。\n\n**输出策略（脚本默认行为）**：\n- **始终**将完整响应写入 `<cwd>/linkfox/<YYYY-MM-DD>/<session>/data/<skill-name>-<timestamp>.json`（`<cwd>` 为脚本执行时的工作目录，在 Claude Code 里即当前项目目录；`<session>` 取自环境变量 `SESSION_ID`，按用户任务自动聚合；**禁止写入 /tmp**，当前目录不可写则报错）\n- 响应体 ≤ 8 KB：落盘后把完整 JSON 打印到 stdout\n- 响应体 > 8 KB：落盘后 stdout 只输出摘要（顶层字段、常见计数如 `total`/`costToken`、最大列表字段的长度 + 前 3 条样本）\n- 加 `--inline` 强制全量打印到 stdout（同样落盘）\n\n**读数据建议**：先看摘要判断是否足够；需要具体字段时优先用 `jq`或`ConvertFrom-Json` 从保存的 json 文件按需抽取，避免整份 JSON 进入上下文。\n\n## 解决认证和积分问题\n发生以下异常情况时，采用 references/onboarding.md 引导解决问题：\n\n### 异常情况\n- **未配置API Key**：环境变量未配置 `LINKFOX_AGENT_API_KEY`，也未配置 `LINKFOXAGENT_API_KEY`。\n- **响应401或402状态码**\n- **响应提示积分或余额不足**：消息含\"积分余额不足/计费不足/余额不足/quota exceeded/insufficient balance/套餐到期/需充值/请充值\"，或类似含义的内容。\n\n## 官方参考\n\nReturns 模块索引：[v2.returns.get_return_list](https://open.shopee.com/documents/v2/v2.returns.get_return_list?module=102&type=1)\n\n---\n\n## Prerequisites（必须先读）\n\n1. 运行 `python scripts/check_auth_dependency.py`；exit code **42** → 先安装 **`linkfox-shopee-store-auth`** 并授权店铺。\n2. **不要**在本 skill 内实现授权/令牌逻辑。\n\n---\n\n## Core Concepts\n\n- **转发链路**：`developerProxy`（`shopId`/`merchantId` 选店，服务端注入 token）→ 紫鸟 `shopee-proxy` → Shopee API\n- **退货 vs 订单**：订单查询见 `linkfox-shopee-store-orders`；本 skill 处理**退货/退款/争议**\n- **典型流程**：`get_return_list` → `get_return_detail` → `confirm` / `offer` / `dispute`\n- **店铺级 API**：通常传 **`shopId`**\n\n## 可用脚本（Returns 模块 15 个 API）\n\n| 脚本 | API | Method |\n|------|-----|--------|\n| `get_return_list.py` | get_return_list | GET |\n| `get_return_detail.py` | get_return_detail | GET |\n| `confirm.py` | confirm | POST |\n| `dispute.py` | dispute | POST |\n| `get_available_solutions.py` | get_available_solutions | GET |\n| `offer.py` | offer | POST |\n| `accept_offer.py` | accept_offer | POST |\n| `convert_image.py` | convert_image | POST |\n| `upload_proof.py` | upload_proof | POST |\n| `query_proof.py` | query_proof | GET |\n| `get_return_dispute_reason.py` | get_return_dispute_reason | GET |\n| `cancel_dispute.py` | cancel_dispute | POST |\n| `get_shipping_carrier.py` | get_shipping_carrier | GET |\n| `upload_shipping_proof.py` | upload_shipping_proof | POST |\n| `get_reverse_tracking_info.py` | get_reverse_tr"},{"path":"_meta.json","content":"{\n  \"ownerId\": \"kn7dmc1t4j28hem1twwyav85p182pb1j\",\n  \"slug\": \"linkfox-shopee-store-returns\",\n  \"version\": \"1.0.5\",\n  \"publishedAt\": 1786720077120\n}"},{"path":"references/api.md","content":"# linkfox-shopee-store-returns — 参数与字段参考\r\n\r\n> 单接口入参/响应说明已拆到 **`apis/`**（按 API 一份）；本文件保留模块总览与 Feedback。\r\nShopee **Returns 模块**全部 15 个 API，经 **`POST /shopee/developerProxy`** 转发。\r\n\r\n授权见 **`linkfox-shopee-store-auth`**。官方索引：[v2.returns.get_return_list](https://open.shopee.com/documents/v2/v2.returns.get_return_list?module=102&type=1)\r\n\r\n## 通用约定\r\n\r\n- **Base URL**：`https://tool-gateway.linkfox.com`\r\n- **Method**：POST（网关），上游 Method 见各接口\r\n- **Auth**：Header `Authorization: <api_key>`（`LINKFOXAGENT_API_KEY`）\r\n- **流程**：`POST /shopee/storeTokens` → `POST /shopee/developerProxy`\r\n- **path**：须 `api/v2/returns/...`\r\n- **标识**：店铺级 API，通常传 **`shopId`**\r\n- **官方文档 URL 规则**：`https://open.shopee.com/documents/v2/v2.returns.{api}?module=102&type=1`\r\n- **复杂 POST**（如 `dispute`、`offer`）：推荐传完整 `body` 对象\r\n\r\n---\r\n\r\n## Returns 模块总览\r\n\r\n| # | API | Method | path | 脚本 | 官方文档 |\r\n|---|-----|--------|------|------|----------|\r\n| 1 | accept_offer | POST | `api/v2/returns/accept_offer` | `accept_offer.py` | [apis/accept-offer.md](./apis/accept-offer.md) |\r\n| 2 | cancel_dispute | POST | `api/v2/returns/cancel_dispute` | `cancel_dispute.py` | [apis/cancel-dispute.md](./apis/cancel-dispute.md) |\r\n| 3 | confirm | POST | `api/v2/returns/confirm` | `confirm.py` | [apis/confirm.md](./apis/confirm.md) |\r\n| 4 | convert_image | POST | `api/v2/returns/convert_image` | `convert_image.py` | [apis/convert-image.md](./apis/convert-image.md) |\r\n| 5 | dispute | POST | `api/v2/returns/dispute` | `dispute.py` | [apis/dispute.md](./apis/dispute.md) |\r\n| 6 | get_available_solutions | GET | `api/v2/returns/get_available_solutions` | `get_available_solutions.py` | [apis/get-available-solutions.md](./apis/get-available-solutions.md) |\r\n| 7 | get_return_detail | GET | `api/v2/returns/get_return_detail` | `get_return_detail.py` | [apis/get-return-detail.md](./apis/get-return-detail.md) |\r\n| 8 | get_return_dispute_reason | GET | `api/v2/returns/get_return_dispute_reason` | `get_return_dispute_reason.py` | [apis/get-return-dispute-reason.md](./apis/get-return-dispute-reason.md) |\r\n| 9 | get_return_list | GET | `api/v2/returns/get_return_list` | `get_return_list.py` | [apis/get-return-list.md](./apis/get-return-list.md) |\r\n| 10 | get_reverse_tracking_info | GET | `api/v2/returns/get_reverse_tracking_info` | `get_reverse_tracking_info.py` | [apis/get-reverse-tracking-info.md](./apis/get-reverse-tracking-info.md) |\r\n| 11 | get_shipping_carrier | GET | `api/v2/returns/get_shipping_carrier` | `get_shipping_carrier.py` | [apis/get-shipping-carrier.md](./apis/get-shipping-carrier.md) |\r\n| 12 | offer | POST | `api/v2/returns/offer` | `offer.py` | [apis/offer.md](./apis/offer.md) |\r\n| 13 | query_proof | GET | `api/v2/returns/query_proof` | `query_proof.py` | [apis/query-proof.md](./apis/query-proof.md) |\r\n| 14 | upload_proof | POST | `api/v2/returns/upload_proof` | `upload_proof.py` | [apis/upload-proof.md](./apis/upload-proof.md) |\r\n| 15 | upload_shipping_proof | POST | `api/v2/returns/upload_shipping_proof` | `upload"},{"path":"references/apis/accept-offer.md","content":"# accept_offer\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/accept_offer.py` |\n| Method / path | POST `api/v2/returns/accept_offer` |\n| 官方文档 | [accept_offer](https://open.shopee.com/documents/v2/v2.returns.accept_offer?module=102&type=1) |\n| 用途 | Accept buyer/seller offer; pass full body |\n\n经 **`POST /shopee/developerProxy`** 转发；依赖 **`linkfox-shopee-store-auth`** 选店（通常传 `shopId` 或 `merchantId`）。\n\n---\n\n## 脚本 JSON 入参\n\n| 字段 | 类型 | 必填 | 说明 |\n|------|------|------|------|\n| `shopId` | string | 与 `merchantId` 二选一 | 店铺 ID（推荐；Public 等无店铺接口可省略） |\n| `merchantId` | string | 与 `shopId` 二选一 | 商户 ID |\n\n- Method：**POST**\n- POST：传 `body` / `requestBody`，或把 `body_fields` 列在 JSON 顶层\n- `shopId` / `merchantId` / `skipDepCheck` 等为网关选店保留字段，不会进 Shopee query/body\n- Registry notes：Accept buyer/seller offer; pass full body\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/accept_offer.py '{\"shopId\": \"67890\"}'\n\n# 通用入口\npython scripts/returns_api.py '{\"api\": \"accept_offer\", \"shopId\": \"67890\"}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`acceptOffer`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准"},{"path":"references/apis/cancel-dispute.md","content":"# cancel_dispute\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/cancel_dispute.py` |\n| Method / path | POST `api/v2/returns/cancel_dispute` |\n| 官方文档 | [cancel_dispute](https://open.shopee.com/documents/v2/v2.returns.cancel_dispute?module=102&type=1) |\n| 用途 | Cancel dispute; pass body with return_sn |\n\n经 **`POST /shopee/developerProxy`** 转发；依赖 **`linkfox-shopee-store-auth`** 选店（通常传 `shopId` 或 `merchantId`）。\n\n---\n\n## 脚本 JSON 入参\n\n| 字段 | 类型 | 必填 | 说明 |\n|------|------|------|------|\n| `shopId` | string | 与 `merchantId` 二选一 | 店铺 ID（推荐；Public 等无店铺接口可省略） |\n| `merchantId` | string | 与 `shopId` 二选一 | 商户 ID |\n\n- Method：**POST**\n- POST：传 `body` / `requestBody`，或把 `body_fields` 列在 JSON 顶层\n- `shopId` / `merchantId` / `skipDepCheck` 等为网关选店保留字段，不会进 Shopee query/body\n- Registry notes：Cancel dispute; pass body with return_sn\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/cancel_dispute.py '{\"shopId\": \"67890\"}'\n\n# 通用入口\npython scripts/returns_api.py '{\"api\": \"cancel_dispute\", \"shopId\": \"67890\"}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`cancelDispute`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准"}],"languages":[],"docsSourceLabel":"CLAWHUB","editorialOverview":null,"editorialQuality":{"score":100,"threshold":65,"status":"thin","wordCount":1148,"uniquenessScore":33,"reasons":["uniqueness-below-45"]}},"media":{"evidence":{"source":"no-media","verified":false,"confidence":"low","updatedAt":"2026-10-11T16:26:15.293Z","emptyReason":"No screenshots, media assets, or demo links are available."},"primaryImageUrl":null,"mediaAssetCount":0,"assets":[],"demoUrl":null},"ownerResources":{"evidence":{"source":"unclaimed","verified":false,"confidence":"low","updatedAt":"2026-10-11T16:26:15.293Z","emptyReason":"This page has not been claimed by the agent owner."},"hasCustomPage":false,"customPageUpdatedAt":null,"customLinks":[],"structuredLinks":{"docsUrl":null,"demoUrl":null,"supportUrl":null,"pricingUrl":null,"statusUrl":null},"customPage":null},"relatedAgents":{"evidence":{"source":"protocol-neighbors","verified":false,"confidence":"medium","updatedAt":"2026-10-11T20:58:42.858Z","emptyReason":null},"items":[{"id":"8ebccd8e-3863-4187-8355-c3f14e1f9edf","entityType":"agent","canonicalPath":"/agent/iofficeai-aionui","slug":"iofficeai-aionui","name":"AionUi","description":"Free, local, open-source 24/7 Cowork app and OpenClaw for Gemini CLI, Claude Code, Codex, OpenCode, Qwen Code, Goose CLI, Auggie, and more | 🌟 Star if you like it!","url":"https://github.com/iOfficeAI/AionUi","homepage":"https://www.aionui.com","source":"GITHUB_REPOS","protocols":["MCP","OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-10-09T19:11:12.944Z","createdAt":"2026-02-25T03:38:16.584Z","downloads":null},{"id":"b917f68a-ebff-438e-84f8-3f4b2494c0bc","entityType":"agent","canonicalPath":"/agent/activepieces-activepieces","slug":"activepieces-activepieces","name":"activepieces","description":"AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents","url":"https://github.com/activepieces/activepieces","homepage":"https://www.activepieces.com","source":"GITHUB_REPOS","protocols":["OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-04-15T02:22:12.426Z","createdAt":"2026-02-25T03:38:12.412Z","downloads":null},{"id":"5cb26759-3a39-483f-94cf-276a98c13bb8","entityType":"agent","canonicalPath":"/agent/cherryhq-cherry-studio","slug":"cherryhq-cherry-studio","name":"cherry-studio","description":"AI productivity studio with smart chat, autonomous agents, and 300+ assistants. Unified access to frontier LLMs","url":"https://github.com/CherryHQ/cherry-studio","homepage":"https://cherry-ai.com","source":"GITHUB_REPOS","protocols":["MCP","OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-04-11T14:38:40.986Z","createdAt":"2026-02-25T03:38:19.379Z","downloads":null},{"id":"6f6582d0-5d76-4f0f-b81d-86520247950b","entityType":"agent","canonicalPath":"/agent/copilotkit-copilotkit","slug":"copilotkit-copilotkit","name":"CopilotKit","description":"The Frontend for Agents & Generative UI. React + Angular","url":"https://github.com/CopilotKit/CopilotKit","homepage":"https://docs.copilotkit.ai","source":"GITHUB_REPOS","protocols":["OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-03-25T09:50:57.846Z","createdAt":"2026-02-25T03:39:14.617Z","downloads":null}],"links":{"hub":"/agent","source":"/agent/source/clawhub","protocols":[{"label":"OpenClaw","href":"/agent/protocol/openclew"}]}}}