{"id":"f13803a8-d005-4445-9620-19abaca35db5","entityType":"agent","slug":"clawhub-linkfox-ai-linkfox-shopee-store-payment","name":"Shopee-店铺收款","canonicalUrl":"https://www.xpersona.co/agent/clawhub-linkfox-ai-linkfox-shopee-store-payment","canonicalPath":"/agent/clawhub-linkfox-ai-linkfox-shopee-store-payment","generatedAt":"2026-10-11T10:51:53.769Z","source":"CLAWHUB","claimStatus":"UNCLAIMED","verificationTier":"NONE","summary":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-11T08:37:24.106Z","emptyReason":null},"description":"Shopee（虾皮）店铺支付结算（与 linkfox-shopee-store-auth 同系列），经 /shopee/developerProxy 转发 Shopee Open API Payment 模块全部 18 个接口：get_escrow_detail、get_escrow_list、get_payout_detail、get_wallet_transaction_list、get_income_overview、generate_income_report 等。当用户提到 Shopee 支付、结算、托管escrow、打款payout、钱包流水、收入报表、分期付款、get_escrow_detail 时触发。即使未明确提及\"支付\"，只要涉及已授权 Shopee 店铺的结算/打款/收入查询，也应触发。","descriptionLabel":"Source description","evidenceSummary":"Capability contract not published. No trust telemetry is available yet. 1.1K downloads reported by the source. Last updated 10/11/2026.","installCommand":"clawhub skill install s171g8b6m2khwdy9ye8bxj0wx183vd4z:linkfox-shopee-store-payment","sourceUrl":"https://clawhub.ai/linkfox-ai/linkfox-shopee-store-payment","homepage":"https://clawhub.ai/linkfox-ai/skills/linkfox-shopee-store-payment","primaryLinks":[{"label":"View on ClawHub","url":"https://clawhub.ai/linkfox-ai/linkfox-shopee-store-payment","kind":"source"},{"label":"Homepage","url":"https://clawhub.ai/linkfox-ai/skills/linkfox-shopee-store-payment","kind":"homepage"}],"safetyScore":84,"overallRank":62,"popularityScore":61,"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-11T08:37:24.106Z","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-11T08:37:24.106Z","emptyReason":null},"stars":null,"forks":null,"downloads":1110,"packageName":null,"latestVersion":"1.0.6","tractionLabel":"1.1K downloads"},"release":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-11T08:37:24.093Z","emptyReason":null},"lastUpdatedAt":"2026-10-11T08:37:24.106Z","lastCrawledAt":"2026-10-11T08:37:24.093Z","lastIndexedAt":null,"nextCrawlAt":"2026-10-12T08:37:24.093Z","lastVerifiedAt":null,"highlights":[{"version":"1.0.6","createdAt":"2026-09-14T05:29:47.199Z","changelog":"Update from 1.0.5 to 1.0.6","fileCount":47,"zipByteSize":56013},{"version":"1.0.5","createdAt":"2026-08-14T15:06:31.753Z","changelog":"Update from 1.0.4 to 1.0.5","fileCount":47,"zipByteSize":55646},{"version":"1.0.4","createdAt":"2026-08-07T11:05:42.027Z","changelog":"Update from 1.0.3 to 1.0.4","fileCount":47,"zipByteSize":56065},{"version":"1.0.3","createdAt":"2026-07-13T12:23:49.701Z","changelog":"Update from 1.0.2 to 1.0.3","fileCount":27,"zipByteSize":26877},{"version":"1.0.2","createdAt":"2026-07-06T11:32:27.795Z","changelog":"Update from 1.0.1 to 1.0.2","fileCount":27,"zipByteSize":26224},{"version":"1.0.1","createdAt":"2026-07-03T08:31:45.353Z","changelog":"Update from 1.0.0 to 1.0.1","fileCount":26,"zipByteSize":24786},{"version":"1.0.0","createdAt":"2026-07-02T14:54:08.216Z","changelog":"Initial release","fileCount":26,"zipByteSize":24768}]},"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-payment","setupComplexity":"low","setupSteps":["Install using `clawhub skill install s171g8b6m2khwdy9ye8bxj0wx183vd4z:linkfox-shopee-store-payment` 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-payment 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-payment/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-linkfox-ai-linkfox-shopee-store-payment/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-linkfox-ai-linkfox-shopee-store-payment/trust"},"curlExamples":["curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-linkfox-ai-linkfox-shopee-store-payment/snapshot\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-linkfox-ai-linkfox-shopee-store-payment/contract\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-linkfox-ai-linkfox-shopee-store-payment/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-11T10:51:53.767Z"}},"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-payment/dossier","snapshotUrl":"https://www.xpersona.co/api/v1/agents/clawhub-linkfox-ai-linkfox-shopee-store-payment/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-linkfox-ai-linkfox-shopee-store-payment/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-linkfox-ai-linkfox-shopee-store-payment/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-11T08:37:24.106Z","emptyReason":null},"readme":"Skill: Shopee-店铺收款\n\nOwner: linkfox-ai\n\nSummary: Shopee（虾皮）店铺支付结算（与 linkfox-shopee-store-auth 同系列），经 /shopee/developerProxy 转发 Shopee Open API Payment 模块全部 18 个接口：get_escrow_detail、get_escrow_list、get_payout_detail、get_wallet_transaction_list、get_income_overview、generate_income_report 等。当用户提到 Shopee 支付、结算、托管escrow、打款payout、钱包流水、收入报表、分期付款、get_escrow_detail 时触发。即使未明确提及\"支付\"，只要涉及已授权 Shopee 店铺的结算/打款/收入查询，也应触发。\n\nTags: latest:1.0.6\n\nVersion history:\n\nv1.0.6 | 2026-09-14T05:29:47.199Z | user\n\nUpdate from 1.0.5 to 1.0.6\n\nv1.0.5 | 2026-08-14T15:06:31.753Z | user\n\nUpdate from 1.0.4 to 1.0.5\n\nv1.0.4 | 2026-08-07T11:05:42.027Z | user\n\nUpdate from 1.0.3 to 1.0.4\n\nv1.0.3 | 2026-07-13T12:23:49.701Z | user\n\nUpdate from 1.0.2 to 1.0.3\n\nv1.0.2 | 2026-07-06T11:32:27.795Z | user\n\nUpdate from 1.0.1 to 1.0.2\n\nv1.0.1 | 2026-07-03T08:31:45.353Z | user\n\nUpdate from 1.0.0 to 1.0.1\n\nv1.0.0 | 2026-07-02T14:54:08.216Z | user\n\nInitial release\n\nArchive index:\n\nArchive v1.0.6: 47 files, 56013 bytes\n\nFiles: references/api.md (7058b), references/apis/generate-income-report.md (1425b), references/apis/generate-income-statement.md (1455b), references/apis/get-billing-transaction-info.md (1470b), references/apis/get-escrow-detail-batch.md (1474b), references/apis/get-escrow-detail.md (1531b), references/apis/get-escrow-list.md (1381b), references/apis/get-income-detail.md (1381b), references/apis/get-income-overview.md (1397b), references/apis/get-income-report.md (1389b), references/apis/get-income-statement.md (1419b), references/apis/get-item-installment-status.md (1460b), references/apis/get-payment-method-list.md (1432b), references/apis/get-payout-detail.md (1421b), references/apis/get-payout-info.md (1357b), references/apis/get-shop-installment-status.md (1460b), references/apis/get-wallet-transaction-list.md (1502b), references/apis/set-item-installment-status.md (1484b), references/apis/set-shop-installment-status.md (1492b), references/onboarding.md (1999b), scripts/_payment_api_runner.py (4292b), scripts/_payment_endpoints.py (4815b), scripts/_shopee_payment_common.py (12183b), scripts/check_auth_dependency.py (3983b), scripts/generate_income_report.py (719b), scripts/generate_income_statement.py (737b), scripts/get_billing_transaction_info.py (755b), scripts/get_escrow_detail_batch.py (725b), scripts/get_escrow_detail.py (689b), scripts/get_escrow_list.py (677b), scripts/get_income_detail.py (689b), scripts/get_income_overview.py (701b), scripts/get_income_report.py (689b), scripts/get_income_statement.py (707b), scripts/get_item_installment_status.py (749b), scripts/get_payment_method_list.py (725b), scripts/get_payout_detail.py (689b), scripts/get_payout_info.py (677b), scripts/get_shop_installment_status.py (749b), scripts/get_wallet_transaction_list.py (749b), scripts/onboarding.py (24027b), scripts/payment_api.py (1062b), scripts/set_item_installment_status.py (749b), scripts/set_shop_installment_status.py (749b), skill-card.md (4313b), SKILL.md (8249b), _meta.json (147b)\n\nFile v1.0.6:SKILL.md\n\n---\nname: linkfox-shopee-store-payment\ndescription: Shopee（虾皮）店铺支付结算（与 linkfox-shopee-store-auth 同系列），经 /shopee/developerProxy 转发 Shopee Open API Payment 模块全部 18 个接口：get_escrow_detail、get_escrow_list、get_payout_detail、get_wallet_transaction_list、get_income_overview、generate_income_report 等。当用户提到 Shopee 支付、结算、托管escrow、打款payout、钱包流水、收入报表、分期付款、get_escrow_detail 时触发。即使未明确提及\"支付\"，只要涉及已授权 Shopee 店铺的结算/打款/收入查询，也应触发。\n---\n\n# Shopee 店铺 Payment\n\nShopee Open Platform **Payment 模块**（18 个 API）。**依赖 `linkfox-shopee-store-auth`** 选店；经 **`POST /shopee/developerProxy`** 传入 `shopId`（或 `merchantId`），由服务端解析 token 转发（`path` 须 `api/v2/payment/...`）。\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\nPayment 模块索引：[v2.payment.get_escrow_detail](https://open.shopee.com/documents/v2/v2.payment.get_escrow_detail?module=97&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- **Escrow**：订单托管/结算明细 → `get_escrow_detail`（需 `order_sn`）\n- **Payout**：打款 → `get_payout_detail`、`get_payout_info`\n- **钱包**：`get_wallet_transaction_list`\n- **收入报表**：`generate_income_*` 异步生成 → `get_income_*` 获取结果\n- **订单查询** → `linkfox-shopee-store-orders`；本 skill 负责**资金/结算**\n\n## 可用脚本（Payment 模块 18 个 API）\n\n| 分组 | 脚本 |\n|------|------|\n| 托管/结算 | `get_escrow_detail.py`、`get_escrow_list.py`、`get_escrow_detail_batch.py` |\n| 打款/钱包 | `get_payout_detail.py`、`get_payout_info.py`、`get_wallet_transaction_list.py`、`get_billing_transaction_info.py` |\n| 分期 | `get_shop_installment_status.py`、`set_shop_installment_status.py`、`get_item_installment_status.py`、`set_item_installment_status.py` |\n| 收入报表 | `generate_income_statement.py`、`get_income_statement.py`、`generate_income_report.py`、`get_income_report.py`、`get_income_overview.py`、`get_income_detail.py` |\n| 其他 | `get_payment_method_list.py` |\n| 通用入口 | `payment_api.py`（JSON 含 `api` 字段） |\n\n共享：`_shopee_payment_common.py`、`_payment_endpoints.py`、`_payment_api_runner.py`。\n\n## 接口说明（按 API）\n\n入参与响应细节放在 `references/apis/`，SKILL 只保留索引。\n\n| API | 说明文档 |\n|-----|----------|\n| `generate_income_report` | [references/apis/generate-income-report.md](./references/apis/generate-income-report.md) |\n| `generate_income_statement` | [references/apis/generate-income-statement.md](./references/apis/generate-income-statement.md) |\n| `get_billing_transaction_info` | [references/apis/get-billing-transaction-info.md](./references/apis/get-billing-transaction-info.md) |\n| `get_escrow_detail` | [references/apis/get-escrow-detail.md](./references/apis/get-escrow-detail.md) |\n| `get_escrow_detail_batch` | [references/apis/get-escrow-detail-batch.md](./references/apis/get-escrow-detail-batch.md) |\n| `get_escrow_list` | [references/apis/get-escrow-list.md](./references/apis/get-escrow-list.md) |\n| `get_income_detail` | [references/apis/get-income-detail.md](./references/apis/get-income-detail.md) |\n| `get_income_overview` | [references/apis/get-income-overview.md](./references/apis/get-income-overview.md) |\n| `get_income_report` | [references/apis/get-income-report.md](./references/apis/get-income-report.md) |\n| `get_income_statement` | [references/apis/get-income-statement.md](./references/apis/get-income-statement.md) |\n| `get_item_installment_status` | [references/apis/get-item-installment-status.md](./references/apis/get-item-installment-status.md) |\n| `get_payment_method_list` | [references/apis/get-payment-method-list.md](./references/apis/get-payment-method-list.md) |\n| `get_payout_detail` | [references/apis/get-payout-detail.md](./references/apis/get-payout-detail.md) |\n| `get_payout_info` | [references/apis/get-payout-info.md](./references/apis/get-payout-info.md) |\n| `get_shop_installment_status` | [references/apis/get-shop-installment-status.md](./references/apis/get-shop-installment-status.md) |\n| `get_wallet_transaction_list` | [references/apis/get-wallet-transaction-list.md](./references/apis/get-wallet-transaction-list.md) |\n| `set_item_installment_status` | [references/apis/set-item-installment-status.md](./references/apis/set-item-installment-status.md) |\n| `set_shop_installment_status` | [references/apis/set-shop-installment-status.md](./references/apis/set-shop-installment-status.md) |\n\n模块总览 / Feedback 见 [references/api.md](./references/api.md)。\n\n## Usage Scenarios\n\n### 1. 查订单结算明细\n1. orders skill 获取 `order_sn`\n2. `get_escrow_detail.py`：`order_sn`\n\n### 2. 查打款与钱包\n- `get_payout_detail.py` / `get_payout_info.py`\n- `get_wallet_transaction_list.py`\n\n### 3. 收入报表\n1. `generate_income_report.py` 或 `generate_income_statement.py`\n2. `get_income_report.py` / `get_income_statement.py` 取结果\n\n## 调用原则\n\n- 先看 **`developerProxy.httpStatus`**，再读 `*Response` 字段\n- GET：业务参数放 JSON 顶层\n- POST：传 `body` 或顶层 body 字段\n- 每个脚本 docstring 含 **官方文档 URL**（`module=97`）\n\n## Not Applicable\n\n- 店铺授权 → `linkfox-shopee-store-auth`\n- 订单查询/处理 → `linkfox-shopee-store-orders`\n- 促销 Discount/Voucher 等 → 非 Payment 模块\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.6:_meta.json\n\n{\n  \"ownerId\": \"kn7dmc1t4j28hem1twwyav85p182pb1j\",\n  \"slug\": \"linkfox-shopee-store-payment\",\n  \"version\": \"1.0.6\",\n  \"publishedAt\": 1789363787199\n}\n\nFile v1.0.6:references/api.md\n\n# linkfox-shopee-store-payment — 参数与字段参考\r\n\r\n> 单接口入参/响应说明已拆到 **`apis/`**（按 API 一份）；本文件保留模块总览与 Feedback。\r\nShopee **Payment 模块**全部 18 个 API，经 **`POST /shopee/developerProxy`** 转发。\r\n\r\n授权见 **`linkfox-shopee-store-auth`**。官方索引：[v2.payment.get_escrow_detail](https://open.shopee.com/documents/v2/v2.payment.get_escrow_detail?module=97&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/payment/...`\r\n- **标识**：店铺级 API，通常传 **`shopId`**\r\n- **官方文档 URL 规则**：`https://open.shopee.com/documents/v2/v2.payment.{api}?module=97&type=1`\r\n\r\n---\r\n\r\n## Payment 模块总览\r\n\r\n| # | API | Method | path | 脚本 | 官方文档 |\r\n|---|-----|--------|------|------|----------|\r\n| 1 | generate_income_report | POST | `api/v2/payment/generate_income_report` | `generate_income_report.py` | [apis/generate-income-report.md](./apis/generate-income-report.md) |\r\n| 2 | generate_income_statement | POST | `api/v2/payment/generate_income_statement` | `generate_income_statement.py` | [apis/generate-income-statement.md](./apis/generate-income-statement.md) |\r\n| 3 | get_billing_transaction_info | GET | `api/v2/payment/get_billing_transaction_info` | `get_billing_transaction_info.py` | [apis/get-billing-transaction-info.md](./apis/get-billing-transaction-info.md) |\r\n| 4 | get_escrow_detail | GET | `api/v2/payment/get_escrow_detail` | `get_escrow_detail.py` | [apis/get-escrow-detail.md](./apis/get-escrow-detail.md) |\r\n| 5 | get_escrow_detail_batch | POST | `api/v2/payment/get_escrow_detail_batch` | `get_escrow_detail_batch.py` | [apis/get-escrow-detail-batch.md](./apis/get-escrow-detail-batch.md) |\r\n| 6 | get_escrow_list | GET | `api/v2/payment/get_escrow_list` | `get_escrow_list.py` | [apis/get-escrow-list.md](./apis/get-escrow-list.md) |\r\n| 7 | get_income_detail | GET | `api/v2/payment/get_income_detail` | `get_income_detail.py` | [apis/get-income-detail.md](./apis/get-income-detail.md) |\r\n| 8 | get_income_overview | GET | `api/v2/payment/get_income_overview` | `get_income_overview.py` | [apis/get-income-overview.md](./apis/get-income-overview.md) |\r\n| 9 | get_income_report | GET | `api/v2/payment/get_income_report` | `get_income_report.py` | [apis/get-income-report.md](./apis/get-income-report.md) |\r\n| 10 | get_income_statement | GET | `api/v2/payment/get_income_statement` | `get_income_statement.py` | [apis/get-income-statement.md](./apis/get-income-statement.md) |\r\n| 11 | get_item_installment_status | GET | `api/v2/payment/get_item_installment_status` | `get_item_installment_status.py` | [apis/get-item-installment-status.md](./apis/get-item-installment-status.md) |\r\n| 12 | get_payment_method_list | GET | `api/v2/payment/get_payment_method_list` | `get_payment_method_list.py` | [apis/get-payment-method-list.md](./apis/get-payment-method-list.md) |\r\n| 13 | get_payout_detail | GET | `api/v2/payment/get_payout_detail` | `get_payout_detail.py` | [apis/get-payout-detail.md](./apis/get-payout-detail.md) |\r\n| 14 | get_payout_info | GET | `api/v2/payment/get_payout_info` | `get_payout_info.py` | [apis/get-payout-info.md](./apis/get-payout-info.md) |\r\n| 15 | get_shop_installment_status | GET | `api/v2/payment/get_shop_installment_status` | `get_shop_installment_status.py` | [apis/get-shop-installment-status.md](./apis/get-shop-installment-status.md) |\r\n| 16 | get_wallet_transaction_list | GET | `api/v2/payment/get_wallet_transaction_list` | `get_wallet_transaction_list.py` | [apis/get-wallet-transaction-list.md](./apis/get-wallet-transaction-list.md) |\r\n| 17 | set_item_installment_status | POST | `api/v2/payment/set_item_installment_status` | `set_item_installment_status.py` | [apis/set-item-installment-status.md](./apis/set-item-installment-status.md) |\r\n| 18 | set_shop_installment_status | POST | `api/v2/payment/set_shop_installment_status` | `set_shop_installment_status.py` | [apis/set-shop-installment-status.md](./apis/set-shop-installment-status.md) |\r\n通用入口：`payment_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_escrow_detail` | 必填 `order_sn`；订单托管/结算明细 — [apis/get-escrow-detail.md](./apis/get-escrow-detail.md) |\r\n| `get_escrow_list` | 托管列表；时间范围筛选 — [apis/get-escrow-list.md](./apis/get-escrow-list.md) |\r\n| `get_escrow_detail_batch` | POST 批量查 escrow — [apis/get-escrow-detail-batch.md](./apis/get-escrow-detail-batch.md) |\r\n\r\n### 打款/钱包\r\n\r\n| API | 要点 |\r\n|-----|------|\r\n| `get_payout_detail` | 打款明细 — [apis/get-payout-detail.md](./apis/get-payout-detail.md) |\r\n| `get_payout_info` | 打款汇总 — [apis/get-payout-info.md](./apis/get-payout-info.md) |\r\n| `get_wallet_transaction_list` | 钱包流水 — [apis/get-wallet-transaction-list.md](./apis/get-wallet-transaction-list.md) |\r\n| `get_billing_transaction_info` | 账单交易信息 — [apis/get-billing-transaction-info.md](./apis/get-billing-transaction-info.md) |\r\n\r\n### 分期\r\n\r\n| API | 要点 |\r\n|-----|------|\r\n| `get_shop_installment_status` / `set_shop_installment_status` | 店铺分期开关 |\r\n| `get_item_installment_status` / `set_item_installment_status` | 商品分期 |\r\n\r\n### 收入报表\r\n\r\n| API | 要点 |\r\n|-----|------|\r\n| `generate_income_statement` / `get_income_statement` | 异步生成/获取 income statement |\r\n| `generate_income_report` / `get_income_report` | 异步生成/获取 income report |\r\n| `get_income_overview` / `get_income_detail` | 收入概览与明细 |\r\n\r\n### 其他\r\n\r\n| API | 要点 |\r\n|-----|------|\r\n| `get_payment_method_list` | 可用支付方式 — [apis/get-payment-method-list.md](./apis/get-payment-method-list.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/payment/...` |\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/payment/get_escrow_detail\",\r\n    \"method\": \"GET\",\r\n    \"accessToken\": \"xxx\",\r\n    \"shopId\": \"67890\",\r\n    \"queryString\": \"order_sn=240101ABC\"\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-payment\",\"sentiment\":\"POSITIVE\",\r\n       \"category\":\"OTHER\",\"content\":\"托管明细查询正常\"}'\r\n```\n\nFile v1.0.6:references/apis/generate-income-report.md\n\n# generate_income_report\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/generate_income_report.py` |\n| Method / path | POST `api/v2/payment/generate_income_report` |\n| 官方文档 | [generate_income_report](https://open.shopee.com/documents/v2/v2.payment.generate_income_report?module=97&type=1) |\n| 用途 | Generate income report async |\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：Generate income report async\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/generate_income_report.py '{\"shopId\": \"67890\"}'\n\n# 通用入口\npython scripts/payment_api.py '{\"api\": \"generate_income_report\", \"shopId\": \"67890\"}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`generateIncomeReport`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nFile v1.0.6:references/apis/generate-income-statement.md\n\n# generate_income_statement\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/generate_income_statement.py` |\n| Method / path | POST `api/v2/payment/generate_income_statement` |\n| 官方文档 | [generate_income_statement](https://open.shopee.com/documents/v2/v2.payment.generate_income_statement?module=97&type=1) |\n| 用途 | Generate income statement async |\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：Generate income statement async\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/generate_income_statement.py '{\"shopId\": \"67890\"}'\n\n# 通用入口\npython scripts/payment_api.py '{\"api\": \"generate_income_statement\", \"shopId\": \"67890\"}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`generateIncomeStatement`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nFile v1.0.6:references/apis/get-billing-transaction-info.md\n\n# get_billing_transaction_info\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/get_billing_transaction_info.py` |\n| Method / path | GET `api/v2/payment/get_billing_transaction_info` |\n| 官方文档 | [get_billing_transaction_info](https://open.shopee.com/documents/v2/v2.payment.get_billing_transaction_info?module=97&type=1) |\n| 用途 | Billing transaction info |\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：Billing transaction info\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/get_billing_transaction_info.py '{\"shopId\": \"67890\"}'\n\n# 通用入口\npython scripts/payment_api.py '{\"api\": \"get_billing_transaction_info\", \"shopId\": \"67890\"}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`getBillingTransactionInfo`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nFile v1.0.6:references/apis/get-escrow-detail-batch.md\n\n# get_escrow_detail_batch\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/get_escrow_detail_batch.py` |\n| Method / path | POST `api/v2/payment/get_escrow_detail_batch` |\n| 官方文档 | [get_escrow_detail_batch](https://open.shopee.com/documents/v2/v2.payment.get_escrow_detail_batch?module=97&type=1) |\n| 用途 | Batch escrow detail; pass body with order_sn_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：**POST**\n- POST：传 `body` / `requestBody`，或把 `body_fields` 列在 JSON 顶层\n- `shopId` / `merchantId` / `skipDepCheck` 等为网关选店保留字段，不会进 Shopee query/body\n- Registry notes：Batch escrow detail; pass body with order_sn_list\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/get_escrow_detail_batch.py '{\"shopId\": \"67890\"}'\n\n# 通用入口\npython scripts/payment_api.py '{\"api\": \"get_escrow_detail_batch\", \"shopId\": \"67890\"}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`getEscrowDetailBatch`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nFile v1.0.6:references/apis/get-escrow-detail.md\n\n# get_escrow_detail\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/get_escrow_detail.py` |\n| Method / path | GET `api/v2/payment/get_escrow_detail` |\n| 官方文档 | [get_escrow_detail](https://open.shopee.com/documents/v2/v2.payment.get_escrow_detail?module=97&type=1) |\n| 用途 | Escrow/settlement detail for order |\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| `order_sn` | — | **是** | Query 必填（见 notes / 官方文档） |\n\n- Method：**GET**\n- GET：业务字段放 JSON **顶层**，runner 拼进 `queryString`（不含 `?`）\n- `shopId` / `merchantId` / `skipDepCheck` 等为网关选店保留字段，不会进 Shopee query/body\n- Registry notes：Escrow/settlement detail for order\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/get_escrow_detail.py '{\"shopId\": \"67890\", \"order_sn\": \"<order_sn>\"}'\n\n# 通用入口\npython scripts/payment_api.py '{\"api\": \"get_escrow_detail\", \"shopId\": \"67890\", \"order_sn\": \"<order_sn>\"}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`getEscrowDetail`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nFile v1.0.6:references/apis/get-escrow-list.md\n\n# get_escrow_list\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/get_escrow_list.py` |\n| Method / path | GET `api/v2/payment/get_escrow_list` |\n| 官方文档 | [get_escrow_list](https://open.shopee.com/documents/v2/v2.payment.get_escrow_list?module=97&type=1) |\n| 用途 | Escrow list; time range filters |\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：Escrow list; time range filters\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/get_escrow_list.py '{\"shopId\": \"67890\"}'\n\n# 通用入口\npython scripts/payment_api.py '{\"api\": \"get_escrow_list\", \"shopId\": \"67890\"}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`getEscrowList`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nFile v1.0.6:references/apis/get-income-detail.md\n\n# get_income_detail\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/get_income_detail.py` |\n| Method / path | GET `api/v2/payment/get_income_detail` |\n| 官方文档 | [get_income_detail](https://open.shopee.com/documents/v2/v2.payment.get_income_detail?module=97&type=1) |\n| 用途 | Income detail breakdown |\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：Income detail breakdown\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/get_income_detail.py '{\"shopId\": \"67890\"}'\n\n# 通用入口\npython scripts/payment_api.py '{\"api\": \"get_income_detail\", \"shopId\": \"67890\"}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`getIncomeDetail`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nFile v1.0.6:references/apis/get-income-overview.md\n\n# get_income_overview\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/get_income_overview.py` |\n| Method / path | GET `api/v2/payment/get_income_overview` |\n| 官方文档 | [get_income_overview](https://open.shopee.com/documents/v2/v2.payment.get_income_overview?module=97&type=1) |\n| 用途 | Income overview/summary |\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：Income overview/summary\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/get_income_overview.py '{\"shopId\": \"67890\"}'\n\n# 通用入口\npython scripts/payment_api.py '{\"api\": \"get_income_overview\", \"shopId\": \"67890\"}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`getIncomeOverview`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nFile v1.0.6:references/apis/get-income-report.md\n\n# get_income_report\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/get_income_report.py` |\n| Method / path | GET `api/v2/payment/get_income_report` |\n| 官方文档 | [get_income_report](https://open.shopee.com/documents/v2/v2.payment.get_income_report?module=97&type=1) |\n| 用途 | Get generated income report |\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：Get generated income report\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/get_income_report.py '{\"shopId\": \"67890\"}'\n\n# 通用入口\npython scripts/payment_api.py '{\"api\": \"get_income_report\", \"shopId\": \"67890\"}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`getIncomeReport`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nArchive v1.0.5: 47 files, 55646 bytes\n\nFiles: references/api.md (7058b), references/apis/generate-income-report.md (1425b), references/apis/generate-income-statement.md (1455b), references/apis/get-billing-transaction-info.md (1470b), references/apis/get-escrow-detail-batch.md (1474b), references/apis/get-escrow-detail.md (1531b), references/apis/get-escrow-list.md (1381b), references/apis/get-income-detail.md (1381b), references/apis/get-income-overview.md (1397b), references/apis/get-income-report.md (1389b), references/apis/get-income-statement.md (1419b), references/apis/get-item-installment-status.md (1460b), references/apis/get-payment-method-list.md (1432b), references/apis/get-payout-detail.md (1421b), references/apis/get-payout-info.md (1357b), references/apis/get-shop-installment-status.md (1460b), references/apis/get-wallet-transaction-list.md (1502b), references/apis/set-item-installment-status.md (1484b), references/apis/set-shop-installment-status.md (1492b), references/onboarding.md (2046b), scripts/_payment_api_runner.py (4292b), scripts/_payment_endpoints.py (4815b), scripts/_shopee_payment_common.py (11949b), scripts/check_auth_dependency.py (3983b), scripts/generate_income_report.py (719b), scripts/generate_income_statement.py (737b), scripts/get_billing_transaction_info.py (755b), scripts/get_escrow_detail_batch.py (725b), scripts/get_escrow_detail.py (689b), scripts/get_escrow_list.py (677b), scripts/get_income_detail.py (689b), scripts/get_income_overview.py (701b), scripts/get_income_report.py (689b), scripts/get_income_statement.py (707b), scripts/get_item_installment_status.py (749b), scripts/get_payment_method_list.py (725b), scripts/get_payout_detail.py (689b), scripts/get_payout_info.py (677b), scripts/get_shop_installment_status.py (749b), scripts/get_wallet_transaction_list.py (749b), scripts/onboarding.py (24089b), scripts/payment_api.py (1062b), scripts/set_item_installment_status.py (749b), scripts/set_shop_installment_status.py (749b), skill-card.md (2413b), SKILL.md (8249b), _meta.json (147b)\n\nFile v1.0.5:SKILL.md\n\n---\nname: linkfox-shopee-store-payment\ndescription: Shopee（虾皮）店铺支付结算（与 linkfox-shopee-store-auth 同系列），经 /shopee/developerProxy 转发 Shopee Open API Payment 模块全部 18 个接口：get_escrow_detail、get_escrow_list、get_payout_detail、get_wallet_transaction_list、get_income_overview、generate_income_report 等。当用户提到 Shopee 支付、结算、托管escrow、打款payout、钱包流水、收入报表、分期付款、get_escrow_detail 时触发。即使未明确提及\"支付\"，只要涉及已授权 Shopee 店铺的结算/打款/收入查询，也应触发。\n---\n\n# Shopee 店铺 Payment\n\nShopee Open Platform **Payment 模块**（18 个 API）。**依赖 `linkfox-shopee-store-auth`** 选店；经 **`POST /shopee/developerProxy`** 传入 `shopId`（或 `merchantId`），由服务端解析 token 转发（`path` 须 `api/v2/payment/...`）。\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\nPayment 模块索引：[v2.payment.get_escrow_detail](https://open.shopee.com/documents/v2/v2.payment.get_escrow_detail?module=97&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- **Escrow**：订单托管/结算明细 → `get_escrow_detail`（需 `order_sn`）\n- **Payout**：打款 → `get_payout_detail`、`get_payout_info`\n- **钱包**：`get_wallet_transaction_list`\n- **收入报表**：`generate_income_*` 异步生成 → `get_income_*` 获取结果\n- **订单查询** → `linkfox-shopee-store-orders`；本 skill 负责**资金/结算**\n\n## 可用脚本（Payment 模块 18 个 API）\n\n| 分组 | 脚本 |\n|------|------|\n| 托管/结算 | `get_escrow_detail.py`、`get_escrow_list.py`、`get_escrow_detail_batch.py` |\n| 打款/钱包 | `get_payout_detail.py`、`get_payout_info.py`、`get_wallet_transaction_list.py`、`get_billing_transaction_info.py` |\n| 分期 | `get_shop_installment_status.py`、`set_shop_installment_status.py`、`get_item_installment_status.py`、`set_item_installment_status.py` |\n| 收入报表 | `generate_income_statement.py`、`get_income_statement.py`、`generate_income_report.py`、`get_income_report.py`、`get_income_overview.py`、`get_income_detail.py` |\n| 其他 | `get_payment_method_list.py` |\n| 通用入口 | `payment_api.py`（JSON 含 `api` 字段） |\n\n共享：`_shopee_payment_common.py`、`_payment_endpoints.py`、`_payment_api_runner.py`。\n\n## 接口说明（按 API）\n\n入参与响应细节放在 `references/apis/`，SKILL 只保留索引。\n\n| API | 说明文档 |\n|-----|----------|\n| `generate_income_report` | [references/apis/generate-income-report.md](./references/apis/generate-income-report.md) |\n| `generate_income_statement` | [references/apis/generate-income-statement.md](./references/apis/generate-income-statement.md) |\n| `get_billing_transaction_info` | [references/apis/get-billing-transaction-info.md](./references/apis/get-billing-transaction-info.md) |\n| `get_escrow_detail` | [references/apis/get-escrow-detail.md](./references/apis/get-escrow-detail.md) |\n| `get_escrow_detail_batch` | [references/apis/get-escrow-detail-batch.md](./references/apis/get-escrow-detail-batch.md) |\n| `get_escrow_list` | [references/apis/get-escrow-list.md](./references/apis/get-escrow-list.md) |\n| `get_income_detail` | [references/apis/get-income-detail.md](./references/apis/get-income-detail.md) |\n| `get_income_overview` | [references/apis/get-income-overview.md](./references/apis/get-income-overview.md) |\n| `get_income_report` | [references/apis/get-income-report.md](./references/apis/get-income-report.md) |\n| `get_income_statement` | [references/apis/get-income-statement.md](./references/apis/get-income-statement.md) |\n| `get_item_installment_status` | [references/apis/get-item-installment-status.md](./references/apis/get-item-installment-status.md) |\n| `get_payment_method_list` | [references/apis/get-payment-method-list.md](./references/apis/get-payment-method-list.md) |\n| `get_payout_detail` | [references/apis/get-payout-detail.md](./references/apis/get-payout-detail.md) |\n| `get_payout_info` | [references/apis/get-payout-info.md](./references/apis/get-payout-info.md) |\n| `get_shop_installment_status` | [references/apis/get-shop-installment-status.md](./references/apis/get-shop-installment-status.md) |\n| `get_wallet_transaction_list` | [references/apis/get-wallet-transaction-list.md](./references/apis/get-wallet-transaction-list.md) |\n| `set_item_installment_status` | [references/apis/set-item-installment-status.md](./references/apis/set-item-installment-status.md) |\n| `set_shop_installment_status` | [references/apis/set-shop-installment-status.md](./references/apis/set-shop-installment-status.md) |\n\n模块总览 / Feedback 见 [references/api.md](./references/api.md)。\n\n## Usage Scenarios\n\n### 1. 查订单结算明细\n1. orders skill 获取 `order_sn`\n2. `get_escrow_detail.py`：`order_sn`\n\n### 2. 查打款与钱包\n- `get_payout_detail.py` / `get_payout_info.py`\n- `get_wallet_transaction_list.py`\n\n### 3. 收入报表\n1. `generate_income_report.py` 或 `generate_income_statement.py`\n2. `get_income_report.py` / `get_income_statement.py` 取结果\n\n## 调用原则\n\n- 先看 **`developerProxy.httpStatus`**，再读 `*Response` 字段\n- GET：业务参数放 JSON 顶层\n- POST：传 `body` 或顶层 body 字段\n- 每个脚本 docstring 含 **官方文档 URL**（`module=97`）\n\n## Not Applicable\n\n- 店铺授权 → `linkfox-shopee-store-auth`\n- 订单查询/处理 → `linkfox-shopee-store-orders`\n- 促销 Discount/Voucher 等 → 非 Payment 模块\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-payment\",\n  \"version\": \"1.0.5\",\n  \"publishedAt\": 1786719991753\n}\n\nFile v1.0.5:references/api.md\n\n# linkfox-shopee-store-payment — 参数与字段参考\r\n\r\n> 单接口入参/响应说明已拆到 **`apis/`**（按 API 一份）；本文件保留模块总览与 Feedback。\r\nShopee **Payment 模块**全部 18 个 API，经 **`POST /shopee/developerProxy`** 转发。\r\n\r\n授权见 **`linkfox-shopee-store-auth`**。官方索引：[v2.payment.get_escrow_detail](https://open.shopee.com/documents/v2/v2.payment.get_escrow_detail?module=97&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/payment/...`\r\n- **标识**：店铺级 API，通常传 **`shopId`**\r\n- **官方文档 URL 规则**：`https://open.shopee.com/documents/v2/v2.payment.{api}?module=97&type=1`\r\n\r\n---\r\n\r\n## Payment 模块总览\r\n\r\n| # | API | Method | path | 脚本 | 官方文档 |\r\n|---|-----|--------|------|------|----------|\r\n| 1 | generate_income_report | POST | `api/v2/payment/generate_income_report` | `generate_income_report.py` | [apis/generate-income-report.md](./apis/generate-income-report.md) |\r\n| 2 | generate_income_statement | POST | `api/v2/payment/generate_income_statement` | `generate_income_statement.py` | [apis/generate-income-statement.md](./apis/generate-income-statement.md) |\r\n| 3 | get_billing_transaction_info | GET | `api/v2/payment/get_billing_transaction_info` | `get_billing_transaction_info.py` | [apis/get-billing-transaction-info.md](./apis/get-billing-transaction-info.md) |\r\n| 4 | get_escrow_detail | GET | `api/v2/payment/get_escrow_detail` | `get_escrow_detail.py` | [apis/get-escrow-detail.md](./apis/get-escrow-detail.md) |\r\n| 5 | get_escrow_detail_batch | POST | `api/v2/payment/get_escrow_detail_batch` | `get_escrow_detail_batch.py` | [apis/get-escrow-detail-batch.md](./apis/get-escrow-detail-batch.md) |\r\n| 6 | get_escrow_list | GET | `api/v2/payment/get_escrow_list` | `get_escrow_list.py` | [apis/get-escrow-list.md](./apis/get-escrow-list.md) |\r\n| 7 | get_income_detail | GET | `api/v2/payment/get_income_detail` | `get_income_detail.py` | [apis/get-income-detail.md](./apis/get-income-detail.md) |\r\n| 8 | get_income_overview | GET | `api/v2/payment/get_income_overview` | `get_income_overview.py` | [apis/get-income-overview.md](./apis/get-income-overview.md) |\r\n| 9 | get_income_report | GET | `api/v2/payment/get_income_report` | `get_income_report.py` | [apis/get-income-report.md](./apis/get-income-report.md) |\r\n| 10 | get_income_statement | GET | `api/v2/payment/get_income_statement` | `get_income_statement.py` | [apis/get-income-statement.md](./apis/get-income-statement.md) |\r\n| 11 | get_item_installment_status | GET | `api/v2/payment/get_item_installment_status` | `get_item_installment_status.py` | [apis/get-item-installment-status.md](./apis/get-item-installment-status.md) |\r\n| 12 | get_payment_method_list | GET | `api/v2/payment/get_payment_method_list` | `get_payment_method_list.py` | [apis/get-payment-method-list.md](./apis/get-payment-method-list.md) |\r\n| 13 | get_payout_detail | GET | `api/v2/payment/get_payout_detail` | `get_payout_detail.py` | [apis/get-payout-detail.md](./apis/get-payout-detail.md) |\r\n| 14 | get_payout_info | GET | `api/v2/payment/get_payout_info` | `get_payout_info.py` | [apis/get-payout-info.md](./apis/get-payout-info.md) |\r\n| 15 | get_shop_installment_status | GET | `api/v2/payment/get_shop_installment_status` | `get_shop_installment_status.py` | [apis/get-shop-installment-status.md](./apis/get-shop-installment-status.md) |\r\n| 16 | get_wallet_transaction_list | GET | `api/v2/payment/get_wallet_transaction_list` | `get_wallet_transaction_list.py` | [apis/get-wallet-transaction-list.md](./apis/get-wallet-transaction-list.md) |\r\n| 17 | set_item_installment_status | POST | `api/v2/payment/set_item_installment_status` | `set_item_installment_status.py` | [apis/set-item-installment-status.md](./apis/set-item-installment-status.md) |\r\n| 18 | set_shop_installment_status | POST | `api/v2/payment/set_shop_installment_status` | `set_shop_installment_status.py` | [apis/set-shop-installment-status.md](./apis/set-shop-installment-status.md) |\r\n通用入口：`payment_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_escrow_detail` | 必填 `order_sn`；订单托管/结算明细 — [apis/get-escrow-detail.md](./apis/get-escrow-detail.md) |\r\n| `get_escrow_list` | 托管列表；时间范围筛选 — [apis/get-escrow-list.md](./apis/get-escrow-list.md) |\r\n| `get_escrow_detail_batch` | POST 批量查 escrow — [apis/get-escrow-detail-batch.md](./apis/get-escrow-detail-batch.md) |\r\n\r\n### 打款/钱包\r\n\r\n| API | 要点 |\r\n|-----|------|\r\n| `get_payout_detail` | 打款明细 — [apis/get-payout-detail.md](./apis/get-payout-detail.md) |\r\n| `get_payout_info` | 打款汇总 — [apis/get-payout-info.md](./apis/get-payout-info.md) |\r\n| `get_wallet_transaction_list` | 钱包流水 — [apis/get-wallet-transaction-list.md](./apis/get-wallet-transaction-list.md) |\r\n| `get_billing_transaction_info` | 账单交易信息 — [apis/get-billing-transaction-info.md](./apis/get-billing-transaction-info.md) |\r\n\r\n### 分期\r\n\r\n| API | 要点 |\r\n|-----|------|\r\n| `get_shop_installment_status` / `set_shop_installment_status` | 店铺分期开关 |\r\n| `get_item_installment_status` / `set_item_installment_status` | 商品分期 |\r\n\r\n### 收入报表\r\n\r\n| API | 要点 |\r\n|-----|------|\r\n| `generate_income_statement` / `get_income_statement` | 异步生成/获取 income statement |\r\n| `generate_income_report` / `get_income_report` | 异步生成/获取 income report |\r\n| `get_income_overview` / `get_income_detail` | 收入概览与明细 |\r\n\r\n### 其他\r\n\r\n| API | 要点 |\r\n|-----|------|\r\n| `get_payment_method_list` | 可用支付方式 — [apis/get-payment-method-list.md](./apis/get-payment-method-list.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/payment/...` |\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/payment/get_escrow_detail\",\r\n    \"method\": \"GET\",\r\n    \"accessToken\": \"xxx\",\r\n    \"shopId\": \"67890\",\r\n    \"queryString\": \"order_sn=240101ABC\"\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-payment\",\"sentiment\":\"POSITIVE\",\r\n       \"category\":\"OTHER\",\"content\":\"托管明细查询正常\"}'\r\n```\n\nFile v1.0.5:references/apis/generate-income-report.md\n\n# generate_income_report\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/generate_income_report.py` |\n| Method / path | POST `api/v2/payment/generate_income_report` |\n| 官方文档 | [generate_income_report](https://open.shopee.com/documents/v2/v2.payment.generate_income_report?module=97&type=1) |\n| 用途 | Generate income report async |\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：Generate income report async\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/generate_income_report.py '{\"shopId\": \"67890\"}'\n\n# 通用入口\npython scripts/payment_api.py '{\"api\": \"generate_income_report\", \"shopId\": \"67890\"}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`generateIncomeReport`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nFile v1.0.5:references/apis/generate-income-statement.md\n\n# generate_income_statement\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/generate_income_statement.py` |\n| Method / path | POST `api/v2/payment/generate_income_statement` |\n| 官方文档 | [generate_income_statement](https://open.shopee.com/documents/v2/v2.payment.generate_income_statement?module=97&type=1) |\n| 用途 | Generate income statement async |\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：Generate income statement async\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/generate_income_statement.py '{\"shopId\": \"67890\"}'\n\n# 通用入口\npython scripts/payment_api.py '{\"api\": \"generate_income_statement\", \"shopId\": \"67890\"}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`generateIncomeStatement`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nFile v1.0.5:references/apis/get-billing-transaction-info.md\n\n# get_billing_transaction_info\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/get_billing_transaction_info.py` |\n| Method / path | GET `api/v2/payment/get_billing_transaction_info` |\n| 官方文档 | [get_billing_transaction_info](https://open.shopee.com/documents/v2/v2.payment.get_billing_transaction_info?module=97&type=1) |\n| 用途 | Billing transaction info |\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：Billing transaction info\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/get_billing_transaction_info.py '{\"shopId\": \"67890\"}'\n\n# 通用入口\npython scripts/payment_api.py '{\"api\": \"get_billing_transaction_info\", \"shopId\": \"67890\"}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`getBillingTransactionInfo`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nFile v1.0.5:references/apis/get-escrow-detail-batch.md\n\n# get_escrow_detail_batch\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/get_escrow_detail_batch.py` |\n| Method / path | POST `api/v2/payment/get_escrow_detail_batch` |\n| 官方文档 | [get_escrow_detail_batch](https://open.shopee.com/documents/v2/v2.payment.get_escrow_detail_batch?module=97&type=1) |\n| 用途 | Batch escrow detail; pass body with order_sn_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：**POST**\n- POST：传 `body` / `requestBody`，或把 `body_fields` 列在 JSON 顶层\n- `shopId` / `merchantId` / `skipDepCheck` 等为网关选店保留字段，不会进 Shopee query/body\n- Registry notes：Batch escrow detail; pass body with order_sn_list\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/get_escrow_detail_batch.py '{\"shopId\": \"67890\"}'\n\n# 通用入口\npython scripts/payment_api.py '{\"api\": \"get_escrow_detail_batch\", \"shopId\": \"67890\"}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`getEscrowDetailBatch`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nFile v1.0.5:references/apis/get-escrow-detail.md\n\n# get_escrow_detail\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/get_escrow_detail.py` |\n| Method / path | GET `api/v2/payment/get_escrow_detail` |\n| 官方文档 | [get_escrow_detail](https://open.shopee.com/documents/v2/v2.payment.get_escrow_detail?module=97&type=1) |\n| 用途 | Escrow/settlement detail for order |\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| `order_sn` | — | **是** | Query 必填（见 notes / 官方文档） |\n\n- Method：**GET**\n- GET：业务字段放 JSON **顶层**，runner 拼进 `queryString`（不含 `?`）\n- `shopId` / `merchantId` / `skipDepCheck` 等为网关选店保留字段，不会进 Shopee query/body\n- Registry notes：Escrow/settlement detail for order\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/get_escrow_detail.py '{\"shopId\": \"67890\", \"order_sn\": \"<order_sn>\"}'\n\n# 通用入口\npython scripts/payment_api.py '{\"api\": \"get_escrow_detail\", \"shopId\": \"67890\", \"order_sn\": \"<order_sn>\"}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`getEscrowDetail`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nFile v1.0.5:references/apis/get-escrow-list.md\n\n# get_escrow_list\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/get_escrow_list.py` |\n| Method / path | GET `api/v2/payment/get_escrow_list` |\n| 官方文档 | [get_escrow_list](https://open.shopee.com/documents/v2/v2.payment.get_escrow_list?module=97&type=1) |\n| 用途 | Escrow list; time range filters |\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：Escrow list; time range filters\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/get_escrow_list.py '{\"shopId\": \"67890\"}'\n\n# 通用入口\npython scripts/payment_api.py '{\"api\": \"get_escrow_list\", \"shopId\": \"67890\"}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`getEscrowList`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nFile v1.0.5:references/apis/get-income-detail.md\n\n# get_income_detail\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/get_income_detail.py` |\n| Method / path | GET `api/v2/payment/get_income_detail` |\n| 官方文档 | [get_income_detail](https://open.shopee.com/documents/v2/v2.payment.get_income_detail?module=97&type=1) |\n| 用途 | Income detail breakdown |\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：Income detail breakdown\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/get_income_detail.py '{\"shopId\": \"67890\"}'\n\n# 通用入口\npython scripts/payment_api.py '{\"api\": \"get_income_detail\", \"shopId\": \"67890\"}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`getIncomeDetail`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nFile v1.0.5:references/apis/get-income-overview.md\n\n# get_income_overview\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/get_income_overview.py` |\n| Method / path | GET `api/v2/payment/get_income_overview` |\n| 官方文档 | [get_income_overview](https://open.shopee.com/documents/v2/v2.payment.get_income_overview?module=97&type=1) |\n| 用途 | Income overview/summary |\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：Income overview/summary\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/get_income_overview.py '{\"shopId\": \"67890\"}'\n\n# 通用入口\npython scripts/payment_api.py '{\"api\": \"get_income_overview\", \"shopId\": \"67890\"}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`getIncomeOverview`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nFile v1.0.5:references/apis/get-income-report.md\n\n# get_income_report\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/get_income_report.py` |\n| Method / path | GET `api/v2/payment/get_income_report` |\n| 官方文档 | [get_income_report](https://open.shopee.com/documents/v2/v2.payment.get_income_report?module=97&type=1) |\n| 用途 | Get generated income report |\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：Get generated income report\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/get_income_report.py '{\"shopId\": \"67890\"}'\n\n# 通用入口\npython scripts/payment_api.py '{\"api\": \"get_income_report\", \"shopId\": \"67890\"}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`getIncomeReport`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nArchive v1.0.4: 47 files, 56065 bytes\n\nFiles: references/api.md (7058b), references/apis/generate-income-report.md (1425b), references/apis/generate-income-statement.md (1455b), references/apis/get-billing-transaction-info.md (1470b), references/apis/get-escrow-detail-batch.md (1474b), references/apis/get-escrow-detail.md (1531b), references/apis/get-escrow-list.md (1381b), references/apis/get-income-detail.md (1381b), references/apis/get-income-overview.md (1397b), references/apis/get-income-report.md (1389b), references/apis/get-income-statement.md (1419b), references/apis/get-item-installment-status.md (1460b), references/apis/get-payment-method-list.md (1432b), references/apis/get-payout-detail.md (1421b), references/apis/get-payout-info.md (1357b), references/apis/get-shop-installment-status.md (1460b), references/apis/get-wallet-transaction-list.md (1502b), references/apis/set-item-installment-status.md (1484b), references/apis/set-shop-installment-status.md (1492b), references/onboarding.md (2046b), scripts/_payment_api_runner.py (4292b), scripts/_payment_endpoints.py (4815b), scripts/_shopee_payment_common.py (11949b), scripts/check_auth_dependency.py (3983b), scripts/generate_income_report.py (719b), scripts/generate_income_statement.py (737b), scripts/get_billing_transaction_info.py (755b), scripts/get_escrow_detail_batch.py (725b), scripts/get_escrow_detail.py (689b), scripts/get_escrow_list.py (677b), scripts/get_income_detail.py (689b), scripts/get_income_overview.py (701b), scripts/get_income_report.py (689b), scripts/get_income_statement.py (707b), scripts/get_item_installment_status.py (749b), scripts/get_payment_method_list.py (725b), scripts/get_payout_detail.py (689b), scripts/get_payout_info.py (677b), scripts/get_shop_installment_status.py (749b), scripts/get_wallet_transaction_list.py (749b), scripts/onboarding.py (24089b), scripts/payment_api.py (1062b), scripts/set_item_installment_status.py (749b), scripts/set_shop_installment_status.py (749b), skill-card.md (3151b), SKILL.md (8249b), _meta.json (147b)\n\nFile v1.0.4:SKILL.md\n\n---\nname: linkfox-shopee-store-payment\ndescription: Shopee（虾皮）店铺支付结算（与 linkfox-shopee-store-auth 同系列），经 /shopee/developerProxy 转发 Shopee Open API Payment 模块全部 18 个接口：get_escrow_detail、get_escrow_list、get_payout_detail、get_wallet_transaction_list、get_income_overview、generate_income_report 等。当用户提到 Shopee 支付、结算、托管escrow、打款payout、钱包流水、收入报表、分期付款、get_escrow_detail 时触发。即使未明确提及\"支付\"，只要涉及已授权 Shopee 店铺的结算/打款/收入查询，也应触发。\n---\n\n# Shopee 店铺 Payment\n\nShopee Open Platform **Payment 模块**（18 个 API）。**依赖 `linkfox-shopee-store-auth`** 选店；经 **`POST /shopee/developerProxy`** 传入 `shopId`（或 `merchantId`），由服务端解析 token 转发（`path` 须 `api/v2/payment/...`）。\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\nPayment 模块索引：[v2.payment.get_escrow_detail](https://open.shopee.com/documents/v2/v2.payment.get_escrow_detail?module=97&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- **Escrow**：订单托管/结算明细 → `get_escrow_detail`（需 `order_sn`）\n- **Payout**：打款 → `get_payout_detail`、`get_payout_info`\n- **钱包**：`get_wallet_transaction_list`\n- **收入报表**：`generate_income_*` 异步生成 → `get_income_*` 获取结果\n- **订单查询** → `linkfox-shopee-store-orders`；本 skill 负责**资金/结算**\n\n## 可用脚本（Payment 模块 18 个 API）\n\n| 分组 | 脚本 |\n|------|------|\n| 托管/结算 | `get_escrow_detail.py`、`get_escrow_list.py`、`get_escrow_detail_batch.py` |\n| 打款/钱包 | `get_payout_detail.py`、`get_payout_info.py`、`get_wallet_transaction_list.py`、`get_billing_transaction_info.py` |\n| 分期 | `get_shop_installment_status.py`、`set_shop_installment_status.py`、`get_item_installment_status.py`、`set_item_installment_status.py` |\n| 收入报表 | `generate_income_statement.py`、`get_income_statement.py`、`generate_income_report.py`、`get_income_report.py`、`get_income_overview.py`、`get_income_detail.py` |\n| 其他 | `get_payment_method_list.py` |\n| 通用入口 | `payment_api.py`（JSON 含 `api` 字段） |\n\n共享：`_shopee_payment_common.py`、`_payment_endpoints.py`、`_payment_api_runner.py`。\n\n## 接口说明（按 API）\n\n入参与响应细节放在 `references/apis/`，SKILL 只保留索引。\n\n| API | 说明文档 |\n|-----|----------|\n| `generate_income_report` | [references/apis/generate-income-report.md](./references/apis/generate-income-report.md) |\n| `generate_income_statement` | [references/apis/generate-income-statement.md](./references/apis/generate-income-statement.md) |\n| `get_billing_transaction_info` | [references/apis/get-billing-transaction-info.md](./references/apis/get-billing-transaction-info.md) |\n| `get_escrow_detail` | [references/apis/get-escrow-detail.md](./references/apis/get-escrow-detail.md) |\n| `get_escrow_detail_batch` | [references/apis/get-escrow-detail-batch.md](./references/apis/get-escrow-detail-batch.md) |\n| `get_escrow_list` | [references/apis/get-escrow-list.md](./references/apis/get-escrow-list.md) |\n| `get_income_detail` | [references/apis/get-income-detail.md](./references/apis/get-income-detail.md) |\n| `get_income_overview` | [references/apis/get-income-overview.md](./references/apis/get-income-overview.md) |\n| `get_income_report` | [references/apis/get-income-report.md](./references/apis/get-income-report.md) |\n| `get_income_statement` | [references/apis/get-income-statement.md](./references/apis/get-income-statement.md) |\n| `get_item_installment_status` | [references/apis/get-item-installment-status.md](./references/apis/get-item-installment-status.md) |\n| `get_payment_method_list` | [references/apis/get-payment-method-list.md](./references/apis/get-payment-method-list.md) |\n| `get_payout_detail` | [references/apis/get-payout-detail.md](./references/apis/get-payout-detail.md) |\n| `get_payout_info` | [references/apis/get-payout-info.md](./references/apis/get-payout-info.md) |\n| `get_shop_installment_status` | [references/apis/get-shop-installment-status.md](./references/apis/get-shop-installment-status.md) |\n| `get_wallet_transaction_list` | [references/apis/get-wallet-transaction-list.md](./references/apis/get-wallet-transaction-list.md) |\n| `set_item_installment_status` | [references/apis/set-item-installment-status.md](./references/apis/set-item-installment-status.md) |\n| `set_shop_installment_status` | [references/apis/set-shop-installment-status.md](./references/apis/set-shop-installment-status.md) |\n\n模块总览 / Feedback 见 [references/api.md](./references/api.md)。\n\n## Usage Scenarios\n\n### 1. 查订单结算明细\n1. orders skill 获取 `order_sn`\n2. `get_escrow_detail.py`：`order_sn`\n\n### 2. 查打款与钱包\n- `get_payout_detail.py` / `get_payout_info.py`\n- `get_wallet_transaction_list.py`\n\n### 3. 收入报表\n1. `generate_income_report.py` 或 `generate_income_statement.py`\n2. `get_income_report.py` / `get_income_statement.py` 取结果\n\n## 调用原则\n\n- 先看 **`developerProxy.httpStatus`**，再读 `*Response` 字段\n- GET：业务参数放 JSON 顶层\n- POST：传 `body` 或顶层 body 字段\n- 每个脚本 docstring 含 **官方文档 URL**（`module=97`）\n\n## Not Applicable\n\n- 店铺授权 → `linkfox-shopee-store-auth`\n- 订单查询/处理 → `linkfox-shopee-store-orders`\n- 促销 Discount/Voucher 等 → 非 Payment 模块\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-payment\",\n  \"version\": \"1.0.4\",\n  \"publishedAt\": 1786100742027\n}\n\nFile v1.0.4:references/api.md\n\n# linkfox-shopee-store-payment — 参数与字段参考\r\n\r\n> 单接口入参/响应说明已拆到 **`apis/`**（按 API 一份）；本文件保留模块总览与 Feedback。\r\nShopee **Payment 模块**全部 18 个 API，经 **`POST /shopee/developerProxy`** 转发。\r\n\r\n授权见 **`linkfox-shopee-store-auth`**。官方索引：[v2.payment.get_escrow_detail](https://open.shopee.com/documents/v2/v2.payment.get_escrow_detail?module=97&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/payment/...`\r\n- **标识**：店铺级 API，通常传 **`shopId`**\r\n- **官方文档 URL 规则**：`https://open.shopee.com/documents/v2/v2.payment.{api}?module=97&type=1`\r\n\r\n---\r\n\r\n## Payment 模块总览\r\n\r\n| # | API | Method | path | 脚本 | 官方文档 |\r\n|---|-----|--------|------|------|----------|\r\n| 1 | generate_income_report | POST | `api/v2/payment/generate_income_report` | `generate_income_report.py` | [apis/generate-income-report.md](./apis/generate-income-report.md) |\r\n| 2 | generate_income_statement | POST | `api/v2/payment/generate_income_statement` | `generate_income_statement.py` | [apis/generate-income-statement.md](./apis/generate-income-statement.md) |\r\n| 3 | get_billing_transaction_info | GET | `api/v2/payment/get_billing_transaction_info` | `get_billing_transaction_info.py` | [apis/get-billing-transaction-info.md](./apis/get-billing-transaction-info.md) |\r\n| 4 | get_escrow_detail | GET | `api/v2/payment/get_escrow_detail` | `get_escrow_detail.py` | [apis/get-escrow-detail.md](./apis/get-escrow-detail.md) |\r\n| 5 | get_escrow_detail_batch | POST | `api/v2/payment/get_escrow_detail_batch` | `get_escrow_detail_batch.py` | [apis/get-escrow-detail-batch.md](./apis/get-escrow-detail-batch.md) |\r\n| 6 | get_escrow_list | GET | `api/v2/payment/get_escrow_list` | `get_escrow_list.py` | [apis/get-escrow-list.md](./apis/get-escrow-list.md) |\r\n| 7 | get_income_detail | GET | `api/v2/payment/get_income_detail` | `get_income_detail.py` | [apis/get-income-detail.md](./apis/get-income-detail.md) |\r\n| 8 | get_income_overview | GET | `api/v2/payment/get_income_overview` | `get_income_overview.py` | [apis/get-income-overview.md](./apis/get-income-overview.md) |\r\n| 9 | get_income_report | GET | `api/v2/payment/get_income_report` | `get_income_report.py` | [apis/get-income-report.md](./apis/get-income-report.md) |\r\n| 10 | get_income_statement | GET | `api/v2/payment/get_income_statement` | `get_income_statement.py` | [apis/get-income-statement.md](./apis/get-income-statement.md) |\r\n| 11 | get_item_installment_status | GET | `api/v2/payment/get_item_installment_status` | `get_item_installment_status.py` | [apis/get-item-installment-status.md](./apis/get-item-installment-status.md) |\r\n| 12 | get_payment_method_list | GET | `api/v2/payment/get_payment_method_list` | `get_payment_method_list.py` | [apis/get-payment-method-list.md](./apis/get-payment-method-list.md) |\r\n| 13 | get_payout_detail | GET | `api/v2/payment/get_payout_detail` | `get_payout_detail.py` | [apis/get-payout-detail.md](./apis/get-payout-detail.md) |\r\n| 14 | get_payout_info | GET | `api/v2/payment/get_payout_info` | `get_payout_info.py` | [apis/get-payout-info.md](./apis/get-payout-info.md) |\r\n| 15 | get_shop_installment_status | GET | `api/v2/payment/get_shop_installment_status` | `get_shop_installment_status.py` | [apis/get-shop-installment-status.md](./apis/get-shop-installment-status.md) |\r\n| 16 | get_wallet_transaction_list | GET | `api/v2/payment/get_wallet_transaction_list` | `get_wallet_transaction_list.py` | [apis/get-wallet-transaction-list.md](./apis/get-wallet-transaction-list.md) |\r\n| 17 | set_item_installment_status | POST | `api/v2/payment/set_item_installment_status` | `set_item_installment_status.py` | [apis/set-item-installment-status.md](./apis/set-item-installment-status.md) |\r\n| 18 | set_shop_installment_status | POST | `api/v2/payment/set_shop_installment_status` | `set_shop_installment_status.py` | [apis/set-shop-installment-status.md](./apis/set-shop-installment-status.md) |\r\n通用入口：`payment_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_escrow_detail` | 必填 `order_sn`；订单托管/结算明细 — [apis/get-escrow-detail.md](./apis/get-escrow-detail.md) |\r\n| `get_escrow_list` | 托管列表；时间范围筛选 — [apis/get-escrow-list.md](./apis/get-escrow-list.md) |\r\n| `get_escrow_detail_batch` | POST 批量查 escrow — [apis/get-escrow-detail-batch.md](./apis/get-escrow-detail-batch.md) |\r\n\r\n### 打款/钱包\r\n\r\n| API | 要点 |\r\n|-----|------|\r\n| `get_payout_detail` | 打款明细 — [apis/get-payout-detail.md](./apis/get-payout-detail.md) |\r\n| `get_payout_info` | 打款汇总 — [apis/get-payout-info.md](./apis/get-payout-info.md) |\r\n| `get_wallet_transaction_list` | 钱包流水 — [apis/get-wallet-transaction-list.md](./apis/get-wallet-transaction-list.md) |\r\n| `get_billing_transaction_info` | 账单交易信息 — [apis/get-billing-transaction-info.md](./apis/get-billing-transaction-info.md) |\r\n\r\n### 分期\r\n\r\n| API | 要点 |\r\n|-----|------|\r\n| `get_shop_installment_status` / `set_shop_installment_status` | 店铺分期开关 |\r\n| `get_item_installment_status` / `set_item_installment_status` | 商品分期 |\r\n\r\n### 收入报表\r\n\r\n| API | 要点 |\r\n|-----|------|\r\n| `generate_income_statement` / `get_income_statement` | 异步生成/获取 income statement |\r\n| `generate_income_report` / `get_income_report` | 异步生成/获取 income report |\r\n| `get_income_overview` / `get_income_detail` | 收入概览与明细 |\r\n\r\n### 其他\r\n\r\n| API | 要点 |\r\n|-----|------|\r\n| `get_payment_method_list` | 可用支付方式 — [apis/get-payment-method-list.md](./apis/get-payment-method-list.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/payment/...` |\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/payment/get_escrow_detail\",\r\n    \"method\": \"GET\",\r\n    \"accessToken\": \"xxx\",\r\n    \"shopId\": \"67890\",\r\n    \"queryString\": \"order_sn=240101ABC\"\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-payment\",\"sentiment\":\"POSITIVE\",\r\n       \"category\":\"OTHER\",\"content\":\"托管明细查询正常\"}'\r\n```\n\nFile v1.0.4:references/apis/generate-income-report.md\n\n# generate_income_report\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/generate_income_report.py` |\n| Method / path | POST `api/v2/payment/generate_income_report` |\n| 官方文档 | [generate_income_report](https://open.shopee.com/documents/v2/v2.payment.generate_income_report?module=97&type=1) |\n| 用途 | Generate income report async |\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：Generate income report async\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/generate_income_report.py '{\"shopId\": \"67890\"}'\n\n# 通用入口\npython scripts/payment_api.py '{\"api\": \"generate_income_report\", \"shopId\": \"67890\"}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`generateIncomeReport`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nFile v1.0.4:references/apis/generate-income-statement.md\n\n# generate_income_statement\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/generate_income_statement.py` |\n| Method / path | POST `api/v2/payment/generate_income_statement` |\n| 官方文档 | [generate_income_statement](https://open.shopee.com/documents/v2/v2.payment.generate_income_statement?module=97&type=1) |\n| 用途 | Generate income statement async |\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：Generate income statement async\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/generate_income_statement.py '{\"shopId\": \"67890\"}'\n\n# 通用入口\npython scripts/payment_api.py '{\"api\": \"generate_income_statement\", \"shopId\": \"67890\"}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`generateIncomeStatement`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nFile v1.0.4:references/apis/get-billing-transaction-info.md\n\n# get_billing_transaction_info\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/get_billing_transaction_info.py` |\n| Method / path | GET `api/v2/payment/get_billing_transaction_info` |\n| 官方文档 | [get_billing_transaction_info](https://open.shopee.com/documents/v2/v2.payment.get_billing_transaction_info?module=97&type=1) |\n| 用途 | Billing transaction info |\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：Billing transaction info\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/get_billing_transaction_info.py '{\"shopId\": \"67890\"}'\n\n# 通用入口\npython scripts/payment_api.py '{\"api\": \"get_billing_transaction_info\", \"shopId\": \"67890\"}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`getBillingTransactionInfo`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nFile v1.0.4:references/apis/get-escrow-detail-batch.md\n\n# get_escrow_detail_batch\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/get_escrow_detail_batch.py` |\n| Method / path | POST `api/v2/payment/get_escrow_detail_batch` |\n| 官方文档 | [get_escrow_detail_batch](https://open.shopee.com/documents/v2/v2.payment.get_escrow_detail_batch?module=97&type=1) |\n| 用途 | Batch escrow detail; pass body with order_sn_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：**POST**\n- POST：传 `body` / `requestBody`，或把 `body_fields` 列在 JSON 顶层\n- `shopId` / `merchantId` / `skipDepCheck` 等为网关选店保留字段，不会进 Shopee query/body\n- Registry notes：Batch escrow detail; pass body with order_sn_list\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/get_escrow_detail_batch.py '{\"shopId\": \"67890\"}'\n\n# 通用入口\npython scripts/payment_api.py '{\"api\": \"get_escrow_detail_batch\", \"shopId\": \"67890\"}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`getEscrowDetailBatch`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nFile v1.0.4:references/apis/get-escrow-detail.md\n\n# get_escrow_detail\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/get_escrow_detail.py` |\n| Method / path | GET `api/v2/payment/get_escrow_detail` |\n| 官方文档 | [get_escrow_detail](https://open.shopee.com/documents/v2/v2.payment.get_escrow_detail?module=97&type=1) |\n| 用途 | Escrow/settlement detail for order |\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| `order_sn` | — | **是** | Query 必填（见 notes / 官方文档） |\n\n- Method：**GET**\n- GET：业务字段放 JSON **顶层**，runner 拼进 `queryString`（不含 `?`）\n- `shopId` / `merchantId` / `skipDepCheck` 等为网关选店保留字段，不会进 Shopee query/body\n- Registry notes：Escrow/settlement detail for order\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/get_escrow_detail.py '{\"shopId\": \"67890\", \"order_sn\": \"<order_sn>\"}'\n\n# 通用入口\npython scripts/payment_api.py '{\"api\": \"get_escrow_detail\", \"shopId\": \"67890\", \"order_sn\": \"<order_sn>\"}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`getEscrowDetail`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nFile v1.0.4:references/apis/get-escrow-list.md\n\n# get_escrow_list\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/get_escrow_list.py` |\n| Method / path | GET `api/v2/payment/get_escrow_list` |\n| 官方文档 | [get_escrow_list](https://open.shopee.com/documents/v2/v2.payment.get_escrow_list?module=97&type=1) |\n| 用途 | Escrow list; time range filters |\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：Escrow list; time range filters\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/get_escrow_list.py '{\"shopId\": \"67890\"}'\n\n# 通用入口\npython scripts/payment_api.py '{\"api\": \"get_escrow_list\", \"shopId\": \"67890\"}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`getEscrowList`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nFile v1.0.4:references/apis/get-income-detail.md\n\n# get_income_detail\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/get_income_detail.py` |\n| Method / path | GET `api/v2/payment/get_income_detail` |\n| 官方文档 | [get_income_detail](https://open.shopee.com/documents/v2/v2.payment.get_income_detail?module=97&type=1) |\n| 用途 | Income detail breakdown |\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：Income detail breakdown\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/get_income_detail.py '{\"shopId\": \"67890\"}'\n\n# 通用入口\npython scripts/payment_api.py '{\"api\": \"get_income_detail\", \"shopId\": \"67890\"}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`getIncomeDetail`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nFile v1.0.4:references/apis/get-income-overview.md\n\n# get_income_overview\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/get_income_overview.py` |\n| Method / path | GET `api/v2/payment/get_income_overview` |\n| 官方文档 | [get_income_overview](https://open.shopee.com/documents/v2/v2.payment.get_income_overview?module=97&type=1) |\n| 用途 | Income overview/summary |\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：Income overview/summary\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/get_income_overview.py '{\"shopId\": \"67890\"}'\n\n# 通用入口\npython scripts/payment_api.py '{\"api\": \"get_income_overview\", \"shopId\": \"67890\"}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`getIncomeOverview`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nFile v1.0.4:references/apis/get-income-report.md\n\n# get_income_report\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/get_income_report.py` |\n| Method / path | GET `api/v2/payment/get_income_report` |\n| 官方文档 | [get_income_report](https://open.shopee.com/documents/v2/v2.payment.get_income_report?module=97&type=1) |\n| 用途 | Get generated income report |\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：Get generated income report\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/get_income_report.py '{\"shopId\": \"67890\"}'\n\n# 通用入口\npython scripts/payment_api.py '{\"api\": \"get_income_report\", \"shopId\": \"67890\"}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`getIncomeReport`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nArchive v1.0.3: 27 files, 26877 bytes\n\nFiles: references/api.md (7008b), scripts/_payment_api_runner.py (4279b), scripts/_payment_endpoints.py (4815b), scripts/_shopee_payment_common.py (11757b), scripts/check_auth_dependency.py (3983b), scripts/generate_income_report.py (756b), scripts/generate_income_statement.py (774b), scripts/get_billing_transaction_info.py (792b), scripts/get_escrow_detail_batch.py (762b), scripts/get_escrow_detail.py (726b), scripts/get_escrow_list.py (714b), scripts/get_income_detail.py (726b), scripts/get_income_overview.py (738b), scripts/get_income_report.py (726b), scripts/get_income_statement.py (744b), scripts/get_item_installment_status.py (786b), scripts/get_payment_method_list.py (762b), scripts/get_payout_detail.py (726b), scripts/get_payout_info.py (714b), scripts/get_shop_installment_status.py (786b), scripts/get_wallet_transaction_list.py (786b), scripts/payment_api.py (1062b), scripts/set_item_installment_status.py (786b), scripts/set_shop_installment_status.py (786b), skill-card.md (2648b), SKILL.md (6409b), _meta.json (147b)\n\nFile v1.0.3:SKILL.md\n\n---\nname: linkfox-shopee-store-payment\ndescription: Shopee（虾皮）店铺支付结算（与 linkfox-shopee-store-auth 同系列），经 /shopee/developerProxy 转发 Shopee Open API Payment 模块全部 18 个接口：get_escrow_detail、get_escrow_list、get_payout_detail、get_wallet_transaction_list、get_income_overview、generate_income_report 等。当用户提到 Shopee 支付、结算、托管escrow、打款payout、钱包流水、收入报表、分期付款、get_escrow_detail 时触发。即使未明确提及\"支付\"，只要涉及已授权 Shopee 店铺的结算/打款/收入查询，也应触发。\n---\n\n# Shopee 店铺 Payment\n\nShopee Open Platform **Payment 模块**（18 个 API）。**依赖 `linkfox-shopee-store-auth`**：先取 `accessToken`，再经 **`POST /shopee/developerProxy`** 转发（`path` 须 `api/v2/payment/...`）。\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\nPayment 模块索引：[v2.payment.get_escrow_detail](https://open.shopee.com/documents/v2/v2.payment.get_escrow_detail?module=97&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- **Escrow**：订单托管/结算明细 → `get_escrow_detail`（需 `order_sn`）\n- **Payout**：打款 → `get_payout_detail`、`get_payout_info`\n- **钱包**：`get_wallet_transaction_list`\n- **收入报表**：`generate_income_*` 异步生成 → `get_income_*` 获取结果\n- **订单查询** → `linkfox-shopee-store-orders`；本 skill 负责**资金/结算**\n\n## 可用脚本（Payment 模块 18 个 API）\n\n| 分组 | 脚本 |\n|------|------|\n| 托管/结算 | `get_escrow_detail.py`、`get_escrow_list.py`、`get_escrow_detail_batch.py` |\n| 打款/钱包 | `get_payout_detail.py`、`get_payout_info.py`、`get_wallet_transaction_list.py`、`get_billing_transaction_info.py` |\n| 分期 | `get_shop_installment_status.py`、`set_shop_installment_status.py`、`get_item_installment_status.py`、`set_item_installment_status.py` |\n| 收入报表 | `generate_income_statement.py`、`get_income_statement.py`、`generate_income_report.py`、`get_income_report.py`、`get_income_overview.py`、`get_income_detail.py` |\n| 其他 | `get_payment_method_list.py` |\n| 通用入口 | `payment_api.py`（JSON 含 `api` 字段） |\n\n共享：`_shopee_payment_common.py`、`_payment_endpoints.py`、`_payment_api_runner.py`。\n\n## Usage Scenarios\n\n### 1. 查订单结算明细\n1. orders skill 获取 `order_sn`\n2. `get_escrow_detail.py`：`order_sn`\n\n### 2. 查打款与钱包\n- `get_payout_detail.py` / `get_payout_info.py`\n- `get_wallet_transaction_list.py`\n\n### 3. 收入报表\n1. `generate_income_report.py` 或 `generate_income_statement.py`\n2. `get_income_report.py` / `get_income_statement.py` 取结果\n\n## 调用原则\n\n- 先看 **`developerProxy.httpStatus`**，再读 `*Response` 字段\n- GET：业务参数放 JSON 顶层\n- POST：传 `body` 或顶层 body 字段\n- 每个脚本 docstring 含 **官方文档 URL**（`module=97`）\n\n## Not Applicable\n\n- 店铺授权 → `linkfox-shopee-store-auth`\n- 订单查询/处理 → `linkfox-shopee-store-orders`\n- 促销 Discount/Voucher 等 → 非 Payment 模块\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-payment\",\n  \"version\": \"1.0.3\",\n  \"publishedAt\": 1783945429701\n}\n\nFile v1.0.3:references/api.md\n\n# linkfox-shopee-store-payment — 参数与字段参考\r\n\r\nShopee **Payment 模块**全部 18 个 API，经 **`POST /shopee/developerProxy`** 转发。\r\n\r\n授权见 **`linkfox-shopee-store-auth`**。官方索引：[v2.payment.get_escrow_detail](https://open.shopee.com/documents/v2/v2.payment.get_escrow_detail?module=97&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/payment/...`\r\n- **标识**：店铺级 API，通常传 **`shopId`**\r\n- **官方文档 URL 规则**：`https://open.shopee.com/documents/v2/v2.payment.{api}?module=97&type=1`\r\n\r\n---\r\n\r\n## Payment 模块总览\r\n\r\n| # | API | Method | path | 脚本 | 官方文档 |\r\n|---|-----|--------|------|------|----------|\r\n| 1 | generate_income_report | POST | `api/v2/payment/generate_income_report` | `generate_income_report.py` | [doc](https://open.shopee.com/documents/v2/v2.payment.generate_income_report?module=97&type=1) |\r\n| 2 | generate_income_statement | POST | `api/v2/payment/generate_income_statement` | `generate_income_statement.py` | [doc](https://open.shopee.com/documents/v2/v2.payment.generate_income_statement?module=97&type=1) |\r\n| 3 | get_billing_transaction_info | GET | `api/v2/payment/get_billing_transaction_info` | `get_billing_transaction_info.py` | [doc](https://open.shopee.com/documents/v2/v2.payment.get_billing_transaction_info?module=97&type=1) |\r\n| 4 | get_escrow_detail | GET | `api/v2/payment/get_escrow_detail` | `get_escrow_detail.py` | [doc](https://open.shopee.com/documents/v2/v2.payment.get_escrow_detail?module=97&type=1) |\r\n| 5 | get_escrow_detail_batch | POST | `api/v2/payment/get_escrow_detail_batch` | `get_escrow_detail_batch.py` | [doc](https://open.shopee.com/documents/v2/v2.payment.get_escrow_detail_batch?module=97&type=1) |\r\n| 6 | get_escrow_list | GET | `api/v2/payment/get_escrow_list` | `get_escrow_list.py` | [doc](https://open.shopee.com/documents/v2/v2.payment.get_escrow_list?module=97&type=1) |\r\n| 7 | get_income_detail | GET | `api/v2/payment/get_income_detail` | `get_income_detail.py` | [doc](https://open.shopee.com/documents/v2/v2.payment.get_income_detail?module=97&type=1) |\r\n| 8 | get_income_overview | GET | `api/v2/payment/get_income_overview` | `get_income_overview.py` | [doc](https://open.shopee.com/documents/v2/v2.payment.get_income_overview?module=97&type=1) |\r\n| 9 | get_income_report | GET | `api/v2/payment/get_income_report` | `get_income_report.py` | [doc](https://open.shopee.com/documents/v2/v2.payment.get_income_report?module=97&type=1) |\r\n| 10 | get_income_statement | GET | `api/v2/payment/get_income_statement` | `get_income_statement.py` | [doc](https://open.shopee.com/documents/v2/v2.payment.get_income_statement?module=97&type=1) |\r\n| 11 | get_item_installment_status | GET | `api/v2/payment/get_item_installment_status` | `get_item_installment_status.py` | [doc](https://open.shopee.com/documents/v2/v2.payment.get_item_installment_status?module=97&type=1) |\r\n| 12 | get_payment_method_list | GET | `api/v2/payment/get_payment_method_list` | `get_payment_method_list.py` | [doc](https://open.shopee.com/documents/v2/v2.payment.get_payment_method_list?module=97&type=1) |\r\n| 13 | get_payout_detail | GET | `api/v2/payment/get_payout_detail` | `get_payout_detail.py` | [doc](https://open.shopee.com/documents/v2/v2.payment.get_payout_detail?module=97&type=1) |\r\n| 14 | get_payout_info | GET | `api/v2/payment/get_payout_info` | `get_payout_info.py` | [doc](https://open.shopee.com/documents/v2/v2.payment.get_payout_info?module=97&type=1) |\r\n| 15 | get_shop_installment_status | GET | `api/v2/payment/get_shop_installment_status` | `get_shop_installment_status.py` | [doc](https://open.shopee.com/documents/v2/v2.payment.get_shop_installment_status?module=97&type=1) |\r\n| 16 | get_wallet_transaction_list | GET | `api/v2/payment/get_wallet_transaction_list` | `get_wallet_transaction_list.py` | [doc](https://open.shopee.com/documents/v2/v2.payment.get_wallet_transaction_list?module=97&type=1) |\r\n| 17 | set_item_installment_status | POST | `api/v2/payment/set_item_installment_status` | `set_item_installment_status.py` | [doc](https://open.shopee.com/documents/v2/v2.payment.set_item_installment_status?module=97&type=1) |\r\n| 18 | set_shop_installment_status | POST | `api/v2/payment/set_shop_installment_status` | `set_shop_installment_status.py` | [doc](https://open.shopee.com/documents/v2/v2.payment.set_shop_installment_status?module=97&type=1) |\r\n通用入口：`payment_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_escrow_detail` | 必填 `order_sn`；订单托管/结算明细 |\r\n| `get_escrow_list` | 托管列表；时间范围筛选 |\r\n| `get_escrow_detail_batch` | POST 批量查 escrow |\r\n\r\n### 打款/钱包\r\n\r\n| API | 要点 |\r\n|-----|------|\r\n| `get_payout_detail` | 打款明细 |\r\n| `get_payout_info` | 打款汇总 |\r\n| `get_wallet_transaction_list` | 钱包流水 |\r\n| `get_billing_transaction_info` | 账单交易信息 |\r\n\r\n### 分期\r\n\r\n| API | 要点 |\r\n|-----|------|\r\n| `get_shop_installment_status` / `set_shop_installment_status` | 店铺分期开关 |\r\n| `get_item_installment_status` / `set_item_installment_status` | 商品分期 |\r\n\r\n### 收入报表\r\n\r\n| API | 要点 |\r\n|-----|------|\r\n| `generate_income_statement` / `get_income_statement` | 异步生成/获取 income statement |\r\n| `generate_income_report` / `get_income_report` | 异步生成/获取 income report |\r\n| `get_income_overview` / `get_income_detail` | 收入概览与明细 |\r\n\r\n### 其他\r\n\r\n| API | 要点 |\r\n|-----|------|\r\n| `get_payment_method_list` | 可用支付方式 |\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/payment/...` |\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/payment/get_escrow_detail\",\r\n    \"method\": \"GET\",\r\n    \"accessToken\": \"xxx\",\r\n    \"shopId\": \"67890\",\r\n    \"queryString\": \"order_sn=240101ABC\"\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-payment\",\"sentiment\":\"POSITIVE\",\r\n       \"category\":\"OTHER\",\"content\":\"托管明细查询正常\"}'\r\n```\n\nFile v1.0.3:skill-card.md\n\n## Description: <br>\nProvides agent-facing commands and Python helpers for querying authorized Shopee store payment, escrow, payout, wallet, income report, and installment APIs through LinkFox. <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 Shopee merchants and operators use this skill to retrieve settlement, escrow, payout, wallet transaction, income report, and installment-payment data for an already-authorized Shopee store. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: The skill handles sensitive Shopee merchant payment and settlement data and saves full API responses locally. <br>\nMitigation: Run it only in protected workspaces, review where the linkfox output directory is created, and remove or restrict access to saved financial JSON files when they are no longer needed. <br>\nRisk: The skill uses LinkFox API credentials and authorized Shopee store access to query merchant payment data. <br>\nMitigation: Limit use to stores the user is authorized to access and protect LINKFOX_AGENT_API_KEY or LINKFOXAGENT_API_KEY values from logs, shared shells, and committed files. <br>\nRisk: The skill may send feedback to LinkFox automatically when behavior, results, or user sentiment indicate a reportable event. <br>\nMitigation: Review feedback behavior before installation and avoid including sensitive merchant financial details in any feedback content. <br>\n\n\n## Reference(s): <br>\n- [Shopee payment API reference](references/api.md) <br>\n- [Shopee Open Platform Payment module](https://open.shopee.com/documents/v2/v2.payment.get_escrow_detail?module=97&type=1) <br>\n- [ClawHub skill page](https://clawhub.ai/linkfox-ai/skills/linkfox-shopee-store-payment) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [shell commands, JSON, files, guidance] <br>\n**Output Format:** [JSON responses saved to local files, with stdout JSON or summaries depending on response size.] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [Full API responses are persisted under a linkfox session data directory; --inline prints full responses to stdout.] <br>\n\n## Skill Version(s): <br>\n1.0.3 (source: server release metadata) <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: 27 files, 26224 bytes\n\nFiles: references/api.md (6931b), scripts/_payment_api_runner.py (4279b), scripts/_payment_endpoints.py (4815b), scripts/_shopee_payment_common.py (11658b), scripts/check_auth_dependency.py (3983b), scripts/generate_income_report.py (756b), scripts/generate_income_statement.py (774b), scripts/get_billing_transaction_info.py (792b), scripts/get_escrow_detail_batch.py (762b), scripts/get_escrow_detail.py (726b), scripts/get_escrow_list.py (714b), scripts/get_income_detail.py (726b), scripts/get_income_overview.py (738b), scripts/get_income_report.py (726b), scripts/get_income_statement.py (744b), scripts/get_item_installment_status.py (786b), scripts/get_payment_method_list.py (762b), scripts/get_payout_detail.py (726b), scripts/get_payout_info.py (714b), scripts/get_shop_installment_status.py (786b), scripts/get_wallet_transaction_list.py (786b), scripts/payment_api.py (1062b), scripts/set_item_installment_status.py (786b), scripts/set_shop_installment_status.py (786b), skill-card.md (2896b), SKILL.md (5373b), _meta.json (147b)\n\nFile v1.0.2:SKILL.md\n\n---\r\nname: linkfox-shopee-store-payment\r\ndescription: Shopee（虾皮）店铺支付结算（与 linkfox-shopee-store-auth 同系列），经 /shopee/developerProxy 转发 Shopee Open API Payment 模块全部 18 个接口：get_escrow_detail、get_escrow_list、get_payout_detail、get_wallet_transaction_list、get_income_overview、generate_income_report 等。当用户提到 Shopee 支付、结算、托管escrow、打款payout、钱包流水、收入报表、分期付款、get_escrow_detail 时触发。即使未明确提及\"支付\"，只要涉及已授权 Shopee 店铺的结算/打款/收入查询，也应触发。\r\n---\r\n\r\n# Shopee 店铺 Payment\r\n\r\nShopee Open Platform **Payment 模块**（18 个 API）。**依赖 `linkfox-shopee-store-auth`**：先取 `accessToken`，再经 **`POST /shopee/developerProxy`** 转发（`path` 须 `api/v2/payment/...`）。\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\nPayment 模块索引：[v2.payment.get_escrow_detail](https://open.shopee.com/documents/v2/v2.payment.get_escrow_detail?module=97&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- **Escrow**：订单托管/结算明细 → `get_escrow_detail`（需 `order_sn`）\r\n- **Payout**：打款 → `get_payout_detail`、`get_payout_info`\r\n- **钱包**：`get_wallet_transaction_list`\r\n- **收入报表**：`generate_income_*` 异步生成 → `get_income_*` 获取结果\r\n- **订单查询** → `linkfox-shopee-store-orders`；本 skill 负责**资金/结算**\r\n\r\n## 可用脚本（Payment 模块 18 个 API）\r\n\r\n| 分组 | 脚本 |\r\n|------|------|\r\n| 托管/结算 | `get_escrow_detail.py`、`get_escrow_list.py`、`get_escrow_detail_batch.py` |\r\n| 打款/钱包 | `get_payout_detail.py`、`get_payout_info.py`、`get_wallet_transaction_list.py`、`get_billing_transaction_info.py` |\r\n| 分期 | `get_shop_installment_status.py`、`set_shop_installment_status.py`、`get_item_installment_status.py`、`set_item_installment_status.py` |\r\n| 收入报表 | `generate_income_statement.py`、`get_income_statement.py`、`generate_income_report.py`、`get_income_report.py`、`get_income_overview.py`、`get_income_detail.py` |\r\n| 其他 | `get_payment_method_list.py` |\r\n| 通用入口 | `payment_api.py`（JSON 含 `api` 字段） |\r\n\r\n共享：`_shopee_payment_common.py`、`_payment_endpoints.py`、`_payment_api_runner.py`。\r\n\r\n## Usage Scenarios\r\n\r\n### 1. 查订单结算明细\r\n1. orders skill 获取 `order_sn`\r\n2. `get_escrow_detail.py`：`order_sn`\r\n\r\n### 2. 查打款与钱包\r\n- `get_payout_detail.py` / `get_payout_info.py`\r\n- `get_wallet_transaction_list.py`\r\n\r\n### 3. 收入报表\r\n1. `generate_income_report.py` 或 `generate_income_statement.py`\r\n2. `get_income_report.py` / `get_income_statement.py` 取结果\r\n\r\n## 调用原则\r\n\r\n- 先看 **`developerProxy.httpStatus`**，再读 `*Response` 字段\r\n- GET：业务参数放 JSON 顶层\r\n- POST：传 `body` 或顶层 body 字段\r\n- 每个脚本 docstring 含 **官方文档 URL**（`module=97`）\r\n\r\n## Not Applicable\r\n\r\n- 店铺授权 → `linkfox-shopee-store-auth`\r\n- 订单查询/处理 → `linkfox-shopee-store-orders`\r\n- 促销 Discount/Voucher 等 → 非 Payment 模块\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-payment\",\n  \"version\": \"1.0.2\",\n  \"publishedAt\": 1783337547795\n}\n\nFile v1.0.2:references/api.md\n\n# linkfox-shopee-store-payment — 参数与字段参考\r\n\r\nShopee **Payment 模块**全部 18 个 API，经 **`POST /shopee/developerProxy`** 转发。\r\n\r\n授权见 **`linkfox-shopee-store-auth`**。官方索引：[v2.payment.get_escrow_detail](https://open.shopee.com/documents/v2/v2.payment.get_escrow_detail?module=97&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/payment/...`\r\n- **标识**：店铺级 API，通常传 **`shopId`**\r\n- **官方文档 URL 规则**：`https://open.shopee.com/documents/v2/v2.payment.{api}?module=97&type=1`\r\n\r\n---\r\n\r\n## Payment 模块总览\r\n\r\n| # | API | Method | path | 脚本 | 官方文档 |\r\n|---|-----|--------|------|------|----------|\r\n| 1 | generate_income_report | POST | `api/v2/payment/generate_income_report` | `generate_income_report.py` | [doc](https://open.shopee.com/documents/v2/v2.payment.generate_income_report?module=97&type=1) |\r\n| 2 | generate_income_statement | POST | `api/v2/payment/generate_income_statement` | `generate_income_statement.py` | [doc](https://open.shopee.com/documents/v2/v2.payment.generate_income_statement?module=97&type=1) |\r\n| 3 | get_billing_transaction_info | GET | `api/v2/payment/get_billing_transaction_info` | `get_billing_transaction_info.py` | [doc](https://open.shopee.com/documents/v2/v2.payment.get_billing_transaction_info?module=97&type=1) |\r\n| 4 | get_escrow_detail | GET | `api/v2/payment/get_escrow_detail` | `get_escrow_detail.py` | [doc](https://open.shopee.com/documents/v2/v2.payment.get_escrow_detail?module=97&type=1) |\r\n| 5 | get_escrow_detail_batch | POST | `api/v2/payment/get_escrow_detail_batch` | `get_escrow_detail_batch.py` | [doc](https://open.shopee.com/documents/v2/v2.payment.get_escrow_detail_batch?module=97&type=1) |\r\n| 6 | get_escrow_list | GET | `api/v2/payment/get_escrow_list` | `get_escrow_list.py` | [doc](https://open.shopee.com/documents/v2/v2.payment.get_escrow_list?module=97&type=1) |\r\n| 7 | get_income_detail | GET | `api/v2/payment/get_income_detail` | `get_income_detail.py` | [doc](https://open.shopee.com/documents/v2/v2.payment.get_income_detail?module=97&type=1) |\r\n| 8 | get_income_overview | GET | `api/v2/payment/get_income_overview` | `get_income_overview.py` | [doc](https://open.shopee.com/documents/v2/v2.payment.get_income_overview?module=97&type=1) |\r\n| 9 | get_income_report | GET | `api/v2/payment/get_income_report` | `get_income_report.py` | [doc](https://open.shopee.com/documents/v2/v2.payment.get_income_report?module=97&type=1) |\r\n| 10 | get_income_statement | GET | `api/v2/payment/get_income_statement` | `get_income_statement.py` | [doc](https://open.shopee.com/documents/v2/v2.payment.get_income_statement?module=97&type=1) |\r\n| 11 | get_item_installment_status | GET | `api/v2/payment/get_item_installment_status` | `get_item_installment_status.py` | [doc](https://open.shopee.com/documents/v2/v2.payment.get_item_installment_status?module=97&type=1) |\r\n| 12 | get_payment_method_list | GET | `api/v2/payment/get_payment_method_list` | `get_payment_method_list.py` | [doc](https://open.shopee.com/documents/v2/v2.payment.get_payment_method_list?module=97&type=1) |\r\n| 13 | get_payout_detail | GET | `api/v2/payment/get_payout_detail` | `get_payout_detail.py` | [doc](https://open.shopee.com/documents/v2/v2.payment.get_payout_detail?module=97&type=1) |\r\n| 14 | get_payout_info | GET | `api/v2/payment/get_payout_info` | `get_payout_info.py` | [doc](https://open.shopee.com/documents/v2/v2.payment.get_payout_info?module=97&type=1) |\r\n| 15 | get_shop_installment_status | GET | `api/v2/payment/get_shop_installment_status` | `get_shop_installment_status.py` | [doc](https://open.shopee.com/documents/v2/v2.payment.get_shop_installment_status?module=97&type=1) |\r\n| 16 | get_wallet_transaction_list | GET | `api/v2/payment/get_wallet_transaction_list` | `get_wallet_transaction_list.py` | [doc](https://open.shopee.com/documents/v2/v2.payment.get_wallet_transaction_list?module=97&type=1) |\r\n| 17 | set_item_installment_status | POST | `api/v2/payment/set_item_installment_status` | `set_item_installment_status.py` | [doc](https://open.shopee.com/documents/v2/v2.payment.set_item_installment_status?module=97&type=1) |\r\n| 18 | set_shop_installment_status | POST | `api/v2/payment/set_shop_installment_status` | `set_shop_installment_status.py` | [doc](https://open.shopee.com/documents/v2/v2.payment.set_shop_installment_status?module=97&type=1) |\r\n通用入口：`payment_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_escrow_detail` | 必填 `order_sn`；订单托管/结算明细 |\r\n| `get_escrow_list` | 托管列表；时间范围筛选 |\r\n| `get_escrow_detail_batch` | POST 批量查 escrow |\r\n\r\n### 打款/钱包\r\n\r\n| API | 要点 |\r\n|-----|------|\r\n| `get_payout_detail` | 打款明细 |\r\n| `get_payout_info` | 打款汇总 |\r\n| `get_wallet_transaction_list` | 钱包流水 |\r\n| `get_billing_transaction_info` | 账单交易信息 |\r\n\r\n### 分期\r\n\r\n| API | 要点 |\r\n|-----|------|\r\n| `get_shop_installment_status` / `set_shop_installment_status` | 店铺分期开关 |\r\n| `get_item_installment_status` / `set_item_installment_status` | 商品分期 |\r\n\r\n### 收入报表\r\n\r\n| API | 要点 |\r\n|-----|------|\r\n| `generate_income_statement` / `get_income_statement` | 异步生成/获取 income statement |\r\n| `generate_income_report` / `get_income_report` | 异步生成/获取 income report |\r\n| `get_income_overview` / `get_income_detail` | 收入概览与明细 |\r\n\r\n### 其他\r\n\r\n| API | 要点 |\r\n|-----|------|\r\n| `get_payment_method_list` | 可用支付方式 |\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/payment/...` |\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/payment/get_escrow_detail\",\r\n    \"method\": \"GET\",\r\n    \"accessToken\": \"xxx\",\r\n    \"shopId\": \"67890\",\r\n    \"queryString\": \"order_sn=240101ABC\"\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-payment\",\"sentiment\":\"POSITIVE\",\r\n       \"category\":\"OTHER\",\"content\":\"托管明细查询正常\"}'\r\n```\n\nFile v1.0.2:skill-card.md\n\n## Description: <br>\nHelps agents use authorized Shopee store payment APIs for escrow, payout, wallet transaction, income report, and installment-status workflows through LinkFox gateway scripts. <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 users, operators, and developers use this skill to inspect Shopee store settlement, payout, wallet, income, and payment-method data for already-authorized stores. It can also generate income report requests and change shop or item installment settings when the user intentionally runs those operations. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: Complete Shopee payment, payout, wallet, and income API responses are saved as local JSON files by default. <br>\nMitigation: Run the skill only in a private workspace, avoid committing the generated linkfox data directory, and delete saved response files when they are no longer needed. <br>\nRisk: Installment-setting operations can change store or item payment settings. <br>\nMitigation: Confirm the target store or item and intended setting before running any set_shop_installment_status or set_item_installment_status script. <br>\nRisk: The security verdict is suspicious because local retention controls are not opt-in for full financial API responses. <br>\nMitigation: Install only if local retention of complete financial responses is acceptable for the user's operating environment. <br>\n\n\n## Reference(s): <br>\n- [ClawHub skill page](https://clawhub.ai/linkfox-ai/skills/linkfox-shopee-store-payment) <br>\n- [Publisher profile](https://clawhub.ai/user/linkfox-ai) <br>\n- [Bundled Payment API reference](references/api.md) <br>\n- [Shopee Open Platform Payment API index](https://open.shopee.com/documents/v2/v2.payment.get_escrow_detail?module=97&type=1) <br>\n- [LinkFox Skills](https://skill.linkfox.com/) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [text, markdown, code, shell commands, configuration, guidance] <br>\n**Output Format:** [Markdown guidance with shell command examples, JSON API responses, and saved JSON response files] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [Scripts save complete API responses under a local linkfox data directory by default; small responses may also print full JSON to stdout, while larger responses print summaries unless --inline is used.] <br>\n\n## Skill Version(s): <br>\n1.0.2 (source: server release metadata) <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: 26 files, 24786 bytes\n\nFiles: references/api.md (6931b), scripts/_payment_api_runner.py (4279b), scripts/_payment_endpoints.py (4815b), scripts/_shopee_payment_common.py (11658b), scripts/check_auth_dependency.py (3983b), scripts/generate_income_report.py (756b), scripts/generate_income_statement.py (774b), scripts/get_billing_transaction_info.py (792b), scripts/get_escrow_detail_batch.py (762b), scripts/get_escrow_detail.py (726b), scripts/get_escrow_list.py (714b), scripts/get_income_detail.py (726b), scripts/get_income_overview.py (738b), scripts/get_income_report.py (726b), scripts/get_income_statement.py (744b), scripts/get_item_installment_status.py (786b), scripts/get_payment_method_list.py (762b), scripts/get_payout_detail.py (726b), scripts/get_payout_info.py (714b), scripts/get_shop_installment_status.py (786b), scripts/get_wallet_transaction_list.py (786b), scripts/payment_api.py (1062b), scripts/set_item_installment_status.py (786b), scripts/set_shop_installment_status.py (786b), SKILL.md (5373b), _meta.json (147b)\n\nFile v1.0.1:SKILL.md\n\n---\r\nname: linkfox-shopee-store-payment\r\ndescription: Shopee（虾皮）店铺支付结算（与 linkfox-shopee-store-auth 同系列），经 /shopee/developerProxy 转发 Shopee Open API Payment 模块全部 18 个接口：get_escrow_detail、get_escrow_list、get_payout_detail、get_wallet_transaction_list、get_income_overview、generate_income_report 等。当用户提到 Shopee 支付、结算、托管escrow、打款payout、钱包流水、收入报表、分期付款、get_escrow_detail 时触发。即使未明确提及\"支付\"，只要涉及已授权 Shopee 店铺的结算/打款/收入查询，也应触发。\r\n---\r\n\r\n# Shopee 店铺 Payment\r\n\r\nShopee Open Platform **Payment 模块**（18 个 API）。**依赖 `linkfox-shopee-store-auth`**：先取 `accessToken`，再经 **`POST /shopee/developerProxy`** 转发（`path` 须 `api/v2/payment/...`）。\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\nPayment 模块索引：[v2.payment.get_escrow_detail](https://open.shopee.com/documents/v2/v2.payment.get_escrow_detail?module=97&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- **Escrow**：订单托管/结算明细 → `get_escrow_detail`（需 `order_sn`）\r\n- **Payout**：打款 → `get_payout_detail`、`get_payout_info`\r\n- **钱包**：`get_wallet_transaction_list`\r\n- **收入报表**：`generate_income_*` 异步生成 → `get_income_*` 获取结果\r\n- **订单查询** → `linkfox-shopee-store-orders`；本 skill 负责**资金/结算**\r\n\r\n## 可用脚本（Payment 模块 18 个 API）\r\n\r\n| 分组 | 脚本 |\r\n|------|------|\r\n| 托管/结算 | `get_escrow_detail.py`、`get_escrow_list.py`、`get_escrow_detail_batch.py` |\r\n| 打款/钱包 | `get_payout_detail.py`、`get_payout_info.py`、`get_wallet_transaction_list.py`、`get_billing_transaction_info.py` |\r\n| 分期 | `get_shop_installment_status.py`、`set_shop_installment_status.py`、`get_item_installment_status.py`、`set_item_installment_status.py` |\r\n| 收入报表 | `generate_income_statement.py`、`get_income_statement.py`、`generate_income_report.py`、`get_income_report.py`、`get_income_overview.py`、`get_income_detail.py` |\r\n| 其他 | `get_payment_method_list.py` |\r\n| 通用入口 | `payment_api.py`（JSON 含 `api` 字段） |\r\n\r\n共享：`_shopee_payment_common.py`、`_payment_endpoints.py`、`_payment_api_runner.py`。\r\n\r\n## Usage Scenarios\r\n\r\n### 1. 查订单结算明细\r\n1. orders skill 获取 `order_sn`\r\n2. `get_escrow_detail.py`：`order_sn`\r\n\r\n### 2. 查打款与钱包\r\n- `get_payout_detail.py` / `get_payout_info.py`\r\n- `get_wallet_transaction_list.py`\r\n\r\n### 3. 收入报表\r\n1. `generate_income_report.py` 或 `generate_income_statement.py`\r\n2. `get_income_report.py` / `get_income_statement.py` 取结果\r\n\r\n## 调用原则\r\n\r\n- 先看 **`developerProxy.httpStatus`**，再读 `*Response` 字段\r\n- GET：业务参数放 JSON 顶层\r\n- POST：传 `body` 或顶层 body 字段\r\n- 每个脚本 docstring 含 **官方文档 URL**（`module=97`）\r\n\r\n## Not Applicable\r\n\r\n- 店铺授权 → `linkfox-shopee-store-auth`\r\n- 订单查询/处理 → `linkfox-shopee-store-orders`\r\n- 促销 Discount/Voucher 等 → 非 Payment 模块\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-payment\",\n  \"version\": \"1.0.1\",\n  \"publishedAt\": 1783067505353\n}\n\nFile v1.0.1:references/api.md\n\n# linkfox-shopee-store-payment — 参数与字段参考\r\n\r\nShopee **Payment 模块**全部 18 个 API，经 **`POST /shopee/developerProxy`** 转发。\r\n\r\n授权见 **`linkfox-shopee-store-auth`**。官方索引：[v2.payment.get_escrow_detail](https://open.shopee.com/documents/v2/v2.payment.get_escrow_detail?module=97&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/payment/...`\r\n- **标识**：店铺级 API，通常传 **`shopId`**\r\n- **官方文档 URL 规则**：`https://open.shopee.com/documents/v2/v2.payment.{api}?module=97&type=1`\r\n\r\n---\r\n\r\n## Payment 模块总览\r\n\r\n| # | API | Method | path | 脚本 | 官方文档 |\r\n|---|-----|--------|------|------|----------|\r\n| 1 | generate_income_report | POST | `api/v2/payment/generate_income_report` | `generate_income_report.py` | [doc](https://open.shopee.com/documents/v2/v2.payment.generate_income_report?module=97&type=1) |\r\n| 2 | generate_income_statement | POST | `api/v2/payment/generate_income_statement` | `generate_income_statement.py` | [doc](https://open.shopee.com/documents/v2/v2.payment.generate_income_statement?module=97&type=1) |\r\n| 3 | get_billing_transaction_info | GET | `api/v2/payment/get_billing_transaction_info` | `get_billing_transaction_info.py` | [doc](https://open.shopee.com/documents/v2/v2.payment.get_billing_transaction_info?module=97&type=1) |\r\n| 4 | get_escrow_detail | GET | `api/v2/payment/get_escrow_detail` | `get_escrow_detail.py` | [doc](https://open.shopee.com/documents/v2/v2.payment.get_escrow_detail?module=97&type=1) |\r\n| 5 | get_escrow_detail_batch | POST | `api/v2/payment/get_escrow_detail_batch` | `get_escrow_detail_batch.py` | [doc](https://open.shopee.com/documents/v2/v2.payment.get_escrow_detail_batch?module=97&type=1) |\r\n| 6 | get_escrow_list | GET | `api/v2/payment/get_escrow_list` | `get_escrow_list.py` | [doc](https://open.shopee.com/documents/v2/v2.payment.get_escrow_list?module=97&type=1) |\r\n| 7 | get_income_detail | GET | `api/v2/payment/get_income_detail` | `get_income_detail.py` | [doc](https://open.shopee.com/documents/v2/v2.payment.get_income_detail?module=97&type=1) |\r\n| 8 | get_income_overview | GET | `api/v2/payment/get_income_overview` | `get_income_overview.py` | [doc](https://open.shopee.com/documents/v2/v2.payment.get_income_overview?module=97&type=1) |\r\n| 9 | get_income_report | GET | `api/v2/payment/get_income_report` | `get_income_report.py` | [doc](https://open.shopee.com/documents/v2/v2.payment.get_income_report?module=97&type=1) |\r\n| 10 | get_income_statement | GET | `api/v2/payment/get_income_statement` | `get_income_statement.py` | [doc](https://open.shopee.com/documents/v2/v2.payment.get_income_statement?module=97&type=1) |\r\n| 11 | get_item_installment_status | GET | `api/v2/payment/get_item_installment_status` | `get_item_installment_status.py` | [doc](https://open.shopee.com/documents/v2/v2.payment.get_item_installment_status?module=97&type=1) |\r\n| 12 | get_payment_method_list | GET | `api/v2/payment/get_payment_method_list` | `get_payment_method_list.py` | [doc](https://open.shopee.com/documents/v2/v2.payment.get_payment_method_list?module=97&type=1) |\r\n| 13 | get_payout_detail | GET | `api/v2/payment/get_payout_detail` | `get_payout_detail.py` | [doc](https://open.shopee.com/documents/v2/v2.payment.get_payout_detail?module=97&type=1) |\r\n| 14 | get_payout_info | GET | `api/v2/payment/get_payout_info` | `get_payout_info.py` | [doc](https://open.shopee.com/documents/v2/v2.payment.get_payout_info?module=97&type=1) |\r\n| 15 | get_shop_installment_status | GET | `api/v2/payment/get_shop_installment_status` | `get_shop_installment_status.py` | [doc](https://open.shopee.com/documents/v2/v2.payment.get_shop_installment_status?module=97&type=1) |\r\n| 16 | get_wallet_transaction_list | GET | `api/v2/payment/get_wallet_transaction_list` | `get_wallet_transaction_list.py` | [doc](https://open.shopee.com/documents/v2/v2.payment.get_wallet_transaction_list?module=97&type=1) |\r\n| 17 | set_item_installment_status | POST | `api/v2/payment/set_item_installment_status` | `set_item_installment_status.py` | [doc](https://open.shopee.com/documents/v2/v2.payment.set_item_installment_status?module=97&type=1) |\r\n| 18 | set_shop_installment_status | POST | `api/v2/payment/set_shop_installment_status` | `set_shop_installment_status.py` | [doc](https://open.shopee.com/documents/v2/v2.payment.set_shop_installment_status?module=97&type=1) |\r\n通用入口：`payment_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_escrow_detail` | 必填 `order_sn`；订单托管/结算明细 |\r\n| `get_escrow_list` | 托管列表；时间范围筛选 |\r\n| `get_escrow_detail_batch` | POST 批量查 escrow |\r\n\r\n### 打款/钱包\r\n\r\n| API | 要点 |\r\n|-----|------|\r\n| `get_payout_detail` | 打款明细 |\r\n| `get_payout_info` | 打款汇总 |\r\n| `get_wallet_transaction_list` | 钱包流水 |\r\n| `get_billing_transaction_info` | 账单交易信息 |\r\n\r\n### 分期\r\n\r\n| API | 要点 |\r\n|-----|------|\r\n| `get_shop_installment_status` / `set_shop_installment_status` | 店铺分期开关 |\r\n| `get_item_installment_status` / `set_item_installment_status` | 商品分期 |\r\n\r\n### 收入报表\r\n\r\n| API | 要点 |\r\n|-----|------|\r\n| `generate_income_statement` / `get_income_statement` | 异步生成/获取 income statement |\r\n| `generate_income_report` / `get_income_report` | 异步生成/获取 income report |\r\n| `get_income_overview` / `get_income_detail` | 收入概览与明细 |\r\n\r\n### 其他\r\n\r\n| API | 要点 |\r\n|-----|------|\r\n| `get_payment_method_list` | 可用支付方式 |\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/payment/...` |\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/payment/get_escrow_detail\",\r\n    \"method\": \"GET\",\r\n    \"accessToken\": \"xxx\",\r\n    \"shopId\": \"67890\",\r\n    \"queryString\": \"order_sn=240101ABC\"\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-payment\",\"sentiment\":\"POSITIVE\",\r\n       \"category\":\"OTHER\",\"content\":\"托管明细查询正常\"}'\r\n```\n\nArchive v1.0.0: 26 files, 24768 bytes\n\nFiles: references/api.md (6932b), scripts/_payment_api_runner.py (4279b), scripts/_payment_endpoints.py (4815b), scripts/_shopee_payment_common.py (11659b), scripts/check_auth_dependency.py (3983b), scripts/generate_income_report.py (756b), scripts/generate_income_statement.py (774b), scripts/get_billing_transaction_info.py (792b), scripts/get_escrow_detail_batch.py (762b), scripts/get_escrow_detail.py (726b), scripts/get_escrow_list.py (714b), scripts/get_income_detail.py (726b), scripts/get_income_overview.py (738b), scripts/get_income_report.py (726b), scripts/get_income_statement.py (744b), scripts/get_item_installment_status.py (786b), scripts/get_payment_method_list.py (762b), scripts/get_payout_detail.py (726b), scripts/get_payout_info.py (714b), scripts/get_shop_installment_status.py (786b), scripts/get_wallet_transaction_list.py (786b), scripts/payment_api.py (1062b), scripts/set_item_installment_status.py (786b), scripts/set_shop_installment_status.py (786b), SKILL.md (5373b), _meta.json (147b)\n\nFile v1.0.0:SKILL.md\n\n---\r\nname: linkfox-shopee-store-payment\r\ndescription: Shopee（虾皮）店铺支付结算（与 linkfox-shopee-store-auth 同系列），经 /shopee/developerProxy 转发 Shopee Open API Payment 模块全部 18 个接口：get_escrow_detail、get_escrow_list、get_payout_detail、get_wallet_transaction_list、get_income_overview、generate_income_report 等。当用户提到 Shopee 支付、结算、托管escrow、打款payout、钱包流水、收入报表、分期付款、get_escrow_detail 时触发。即使未明确提及\"支付\"，只要涉及已授权 Shopee 店铺的结算/打款/收入查询，也应触发。\r\n---\r\n\r\n# Shopee 店铺 Payment\r\n\r\nShopee Open Platform **Payment 模块**（18 个 API）。**依赖 `linkfox-shopee-store-auth`**：先取 `accessToken`，再经 **`POST /shopee/developerProxy`** 转发（`path` 须 `api/v2/payment/...`）。\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\nPayment 模块索引：[v2.payment.get_escrow_detail](https://open.shopee.com/documents/v2/v2.payment.get_escrow_detail?module=97&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- **Escrow**：订单托管/结算明细 → `get_escrow_detail`（需 `order_sn`）\r\n- **Payout**：打款 → `get_payout_detail`、`get_payout_info`\r\n- **钱包**：`get_wallet_transaction_list`\r\n- **收入报表**：`generate_income_*` 异步生成 → `get_income_*` 获取结果\r\n- **订单查询** → `linkfox-shopee-store-orders`；本 skill 负责**资金/结算**\r\n\r\n## 可用脚本（Payment 模块 18 个 API）\r\n\r\n| 分组 | 脚本 |\r\n|------|------|\r\n| 托管/结算 | `get_escrow_detail.py`、`get_escrow_list.py`、`get_escrow_detail_batch.py` |\r\n| 打款/钱包 | `get_payout_detail.py`、`get_payout_info.py`、`get_wallet_transaction_list.py`、`get_billing_transaction_info.py` |\r\n| 分期 | `get_shop_installment_status.py`、`set_shop_installment_status.py`、`get_item_installment_status.py`、`set_item_installment_status.py` |\r\n| 收入报表 | `generate_income_statement.py`、`get_income_statement.py`、`generate_income_report.py`、`get_income_report.py`、`get_income_overview.py`、`get_income_detail.py` |\r\n| 其他 | `get_payment_method_list.py` |\r\n| 通用入口 | `payment_api.py`（JSON 含 `api` 字段） |\r\n\r\n共享：`_shopee_payment_common.py`、`_payment_endpoints.py`、`_payment_api_runner.py`。\r\n\r\n## Usage Scenarios\r\n\r\n### 1. 查订单结算明细\r\n1. orders skill 获取 `order_sn`\r\n2. `get_escrow_detail.py`：`order_sn`\r\n\r\n### 2. 查打款与钱包\r\n- `get_payout_detail.py` / `get_payout_info.py`\r\n- `get_wallet_transaction_list.py`\r\n\r\n### 3. 收入报表\r\n1. `generate_income_report.py` 或 `generate_income_statement.py`\r\n2. `get_income_report.py` / `get_income_statement.py` 取结果\r\n\r\n## 调用原则\r\n\r\n- 先看 **`developerProxy.httpStatus`**，再读 `*Response` 字段\r\n- GET：业务参数放 JSON 顶层\r\n- POST：传 `body` 或顶层 body 字段\r\n- 每个脚本 docstring 含 **官方文档 URL**（`module=97`）\r\n\r\n## Not Applicable\r\n\r\n- 店铺授权 → `linkfox-shopee-store-auth`\r\n- 订单查询/处理 → `linkfox-shopee-store-orders`\r\n- 促销 Discount/Voucher 等 → 非 Payment 模块\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-payment\",\n  \"version\": \"1.0.0\",\n  \"publishedAt\": 1783004048216\n}\n\nFile v1.0.0:references/api.md\n\n# linkfox-shopee-store-payment — 参数与字段参考\r\n\r\nShopee **Payment 模块**全部 18 个 API，经 **`POST /shopee/developerProxy`** 转发。\r\n\r\n授权见 **`linkfox-shopee-store-auth`**。官方索引：[v2.payment.get_escrow_detail](https://open.shopee.com/documents/v2/v2.payment.get_escrow_detail?module=97&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/payment/...`\r\n- **标识**：店铺级 API，通常传 **`shopId`**\r\n- **官方文档 URL 规则**：`https://open.shopee.com/documents/v2/v2.payment.{api}?module=97&type=1`\r\n\r\n---\r\n\r\n## Payment 模块总览\r\n\r\n| # | API | Method | path | 脚本 | 官方文档 |\r\n|---|-----|--------|------|------|----------|\r\n| 1 | generate_income_report | POST | `api/v2/payment/generate_income_report` | `generate_income_report.py` | [doc](https://open.shopee.com/documents/v2/v2.payment.generate_income_report?module=97&type=1) |\r\n| 2 | generate_income_statement | POST | `api/v2/payment/generate_income_statement` | `generate_income_statement.py` | [doc](https://open.shopee.com/documents/v2/v2.payment.generate_income_statement?module=97&type=1) |\r\n| 3 | get_billing_transaction_info | GET | `api/v2/payment/get_billing_transaction_info` | `get_billing_transaction_info.py` | [doc](https://open.shopee.com/documents/v2/v2.payment.get_billing_transaction_info?module=97&type=1) |\r\n| 4 | get_escrow_detail | GET | `api/v2/payment/get_escrow_detail` | `get_escrow_detail.py` | [doc](https://open.shopee.com/documents/v2/v2.payment.get_escrow_detail?module=97&type=1) |\r\n| 5 | get_escrow_detail_batch | POST | `api/v2/payment/get_escrow_detail_batch` | `get_escrow_detail_batch.py` | [doc](https://open.shopee.com/documents/v2/v2.payment.get_escrow_detail_batch?module=97&type=1) |\r\n| 6 | get_escrow_list | GET | `api/v2/payment/get_escrow_list` | `get_escrow_list.py` | [doc](https://open.shopee.com/documents/v2/v2.payment.get_escrow_list?module=97&type=1) |\r\n| 7 | get_income_detail | GET | `api/v2/payment/get_income_detail` | `get_income_detail.py` | [doc](https://open.shopee.com/documents/v2/v2.payment.get_income_detail?module=97&type=1) |\r\n| 8 | get_income_overview | GET | `api/v2/payment/get_income_overview` | `get_income_overview.py` | [doc](https://open.shopee.com/documents/v2/v2.payment.get_income_overview?module=97&type=1) |\r\n| 9 | get_income_report | GET | `api/v2/payment/get_income_report` | `get_income_report.py` | [doc](https://open.shopee.com/documents/v2/v2.payment.get_income_report?module=97&type=1) |\r\n| 10 | get_income_statement | GET | `api/v2/payment/get_income_statement` | `get_income_statement.py` | [doc](https://open.shopee.com/documents/v2/v2.payment.get_income_statement?module=97&type=1) |\r\n| 11 | get_item_installment_status | GET | `api/v2/payment/get_item_installment_status` | `get_item_installment_status.py` | [doc](https://open.shopee.com/documents/v2/v2.payment.get_item_installment_status?module=97&type=1) |\r\n| 12 | get_payment_method_list | GET | `api/v2/payment/get_payment_method_list` | `get_payment_method_list.py` | [doc](https://open.shopee.com/documents/v2/v2.payment.get_payment_method_list?module=97&type=1) |\r\n| 13 | get_payout_detail | GET | `api/v2/payment/get_payout_detail` | `get_payout_detail.py` | [doc](https://open.shopee.com/documents/v2/v2.payment.get_payout_detail?module=97&type=1) |\r\n| 14 | get_payout_info | GET | `api/v2/payment/get_payout_info` | `get_payout_info.py` | [doc](https://open.shopee.com/documents/v2/v2.payment.get_payout_info?module=97&type=1) |\r\n| 15 | get_shop_installment_status | GET | `api/v2/payment/get_shop_installment_status` | `get_shop_installment_status.py` | [doc](https://open.shopee.com/documents/v2/v2.payment.get_shop_installment_status?module=97&type=1) |\r\n| 16 | get_wallet_transaction_list | GET | `api/v2/payment/get_wallet_transaction_list` | `get_wallet_transaction_list.py` | [doc](https://open.shopee.com/documents/v2/v2.payment.get_wallet_transaction_list?module=97&type=1) |\r\n| 17 | set_item_installment_status | POST | `api/v2/payment/set_item_installment_status` | `set_item_installment_status.py` | [doc](https://open.shopee.com/documents/v2/v2.payment.set_item_installment_status?module=97&type=1) |\r\n| 18 | set_shop_installment_status | POST | `api/v2/payment/set_shop_installment_status` | `set_shop_installment_status.py` | [doc](https://open.shopee.com/documents/v2/v2.payment.set_shop_installment_status?module=97&type=1) |\r\n通用入口：`payment_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_escrow_detail` | 必填 `order_sn`；订单托管/结算明细 |\r\n| `get_escrow_list` | 托管列表；时间范围筛选 |\r\n| `get_escrow_detail_batch` | POST 批量查 escrow |\r\n\r\n### 打款/钱包\r\n\r\n| API | 要点 |\r\n|-----|------|\r\n| `get_payout_detail` | 打款明细 |\r\n| `get_payout_info` | 打款汇总 |\r\n| `get_wallet_transaction_list` | 钱包流水 |\r\n| `get_billing_transaction_info` | 账单交易信息 |\r\n\r\n### 分期\r\n\r\n| API | 要点 |\r\n|-----|------|\r\n| `get_shop_installment_status` / `set_shop_installment_status` | 店铺分期开关 |\r\n| `get_item_installment_status` / `set_item_installment_status` | 商品分期 |\r\n\r\n### 收入报表\r\n\r\n| API | 要点 |\r\n|-----|------|\r\n| `generate_income_statement` / `get_income_statement` | 异步生成/获取 income statement |\r\n| `generate_income_report` / `get_income_report` | 异步生成/获取 income report |\r\n| `get_income_overview` / `get_income_detail` | 收入概览与明细 |\r\n\r\n### 其他\r\n\r\n| API | 要点 |\r\n|-----|------|\r\n| `get_payment_method_list` | 可用支付方式 |\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/payment/...` |\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/payment/get_escrow_detail\",\r\n    \"method\": \"GET\",\r\n    \"accessToken\": \"xxx\",\r\n    \"shopId\": \"67890\",\r\n    \"queryString\": \"order_sn=240101ABC\"\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-payment\",\"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 Payment 模块全部 18 个接口：get_escrow_detail、get_escrow_list、get_payout_detail、get_wallet_transaction_list、get_income_overview、generate_income_report 等。当用户提到 Shopee 支付、结算、托管escrow、打款payout、钱包流水、收入报表、分期付款、get_escrow_detail 时触发。即使未明确提及\"支付\"，只要涉及已授权 Shopee 店铺的结算/打款/收入查询，也应触发。 Tags: latest:1","codeSnippets":[],"executableExamples":[{"language":"text","snippet":"File v1.0.6:references/apis/generate-income-report.md\n\n# generate_income_report\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/generate_income_report.py` |\n| Method / path | POST `api/v2/payment/generate_income_report` |\n| 官方文档 | [generate_income_report](https://open.shopee.com/documents/v2/v2.payment.generate_income_report?module=97&type=1) |\n| 用途 | Generate income report async |\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：Generate income report async\n\n---\n\n## 调用示例"},{"language":"text","snippet":"---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`generateIncomeReport`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nFile v1.0.6:references/apis/generate-income-statement.md\n\n# generate_income_statement\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/generate_income_statement.py` |\n| Method / path | POST `api/v2/payment/generate_income_statement` |\n| 官方文档 | [generate_income_statement](https://open.shopee.com/documents/v2/v2.payment.generate_income_statement?module=97&type=1) |\n| 用途 | Generate income statement async |\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：Generate income statement async\n\n---\n\n## 调用示例"},{"language":"text","snippet":"---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`generateIncomeStatement`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nFile v1.0.6:references/apis/get-billing-transaction-info.md\n\n# get_billing_transaction_info\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/get_billing_transaction_info.py` |\n| Method / path | GET `api/v2/payment/get_billing_transaction_info` |\n| 官方文档 | [get_billing_transaction_info](https://open.shopee.com/documents/v2/v2.payment.get_billing_transaction_info?module=97&type=1) |\n| 用途 | Billing transaction info |\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：Billing transaction info\n\n---\n\n## 调用示例"},{"language":"text","snippet":"---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`getBillingTransactionInfo`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nFile v1.0.6:references/apis/get-escrow-detail-batch.md\n\n# get_escrow_detail_batch\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/get_escrow_detail_batch.py` |\n| Method / path | POST `api/v2/payment/get_escrow_detail_batch` |\n| 官方文档 | [get_escrow_detail_batch](https://open.shopee.com/documents/v2/v2.payment.get_escrow_detail_batch?module=97&type=1) |\n| 用途 | Batch escrow detail; pass body with order_sn_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：**POST**\n- POST：传 `body` / `requestBody`，或把 `body_fields` 列在 JSON 顶层\n- `shopId` / `merchantId` / `skipDepCheck` 等为网关选店保留字段，不会进 Shopee query/body\n- Registry notes：Batch escrow detail; pass body with order_sn_list\n\n---\n\n## 调用示例"},{"language":"text","snippet":"---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`getEscrowDetailBatch`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nFile v1.0.6:references/apis/get-escrow-detail.md\n\n# get_escrow_detail\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/get_escrow_detail.py` |\n| Method / path | GET `api/v2/payment/get_escrow_detail` |\n| 官方文档 | [get_escrow_detail](https://open.shopee.com/documents/v2/v2.payment.get_escrow_detail?module=97&type=1) |\n| 用途 | Escrow/settlement detail for order |\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| `order_sn` | — | **是** | Query 必填（见 notes / 官方文档） |\n\n- Method：**GET**\n- GET：业务字段放 JSON **顶层**，runner 拼进 `queryString`（不含 `?`）\n- `shopId` / `merchantId` / `skipDepCheck` 等为网关选店保留字段，不会进 Shopee query/body\n- Registry notes：Escrow/settlement detail for order\n\n---\n\n## 调用示例"},{"language":"text","snippet":"---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`getEscrowDetail`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nFile v1.0.6:references/apis/get-escrow-list.md\n\n# get_escrow_list\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/get_escrow_list.py` |\n| Method / path | GET `api/v2/payment/get_escrow_list` |\n| 官方文档 | [get_escrow_list](https://open.shopee.com/documents/v2/v2.payment.get_escrow_list?module=97&type=1) |\n| 用途 | Escrow list; time range filters |\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：Escrow list; time range filters\n\n---\n\n## 调用示例"}],"parameters":null,"dependencies":[],"permissions":[],"extractedFiles":[{"path":"SKILL.md","content":"---\nname: linkfox-shopee-store-payment\ndescription: Shopee（虾皮）店铺支付结算（与 linkfox-shopee-store-auth 同系列），经 /shopee/developerProxy 转发 Shopee Open API Payment 模块全部 18 个接口：get_escrow_detail、get_escrow_list、get_payout_detail、get_wallet_transaction_list、get_income_overview、generate_income_report 等。当用户提到 Shopee 支付、结算、托管escrow、打款payout、钱包流水、收入报表、分期付款、get_escrow_detail 时触发。即使未明确提及\"支付\"，只要涉及已授权 Shopee 店铺的结算/打款/收入查询，也应触发。\n---\n\n# Shopee 店铺 Payment\n\nShopee Open Platform **Payment 模块**（18 个 API）。**依赖 `linkfox-shopee-store-auth`** 选店；经 **`POST /shopee/developerProxy`** 传入 `shopId`（或 `merchantId`），由服务端解析 token 转发（`path` 须 `api/v2/payment/...`）。\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\nPayment 模块索引：[v2.payment.get_escrow_detail](https://open.shopee.com/documents/v2/v2.payment.get_escrow_detail?module=97&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- **Escrow**：订单托管/结算明细 → `get_escrow_detail`（需 `order_sn`）\n- **Payout**：打款 → `get_payout_detail`、`get_payout_info`\n- **钱包**：`get_wallet_transaction_list`\n- **收入报表**：`generate_income_*` 异步生成 → `get_income_*` 获取结果\n- **订单查询** → `linkfox-shopee-store-orders`；本 skill 负责**资金/结算**\n\n## 可用脚本（Payment 模块 18 个 API）\n\n| 分组 | 脚本 |\n|------|------|\n| 托管/结算 | `get_escrow_detail.py`、`get_escrow_list.py`、`get_escrow_detail_batch.py` |\n| 打款/钱包 | `get_payout_detail.py`、`get_payout_info.py`、`get_wallet_transaction_list.py`、`get_billing_transaction_info.py` |\n| 分期 | `get_shop_installment_status.py`、`set_shop_installment_status.py`、`get_item_installment_status.py`、`set_item_installment_status.py` |\n| 收入报表 | `generate_income_statement.py`、`get_income_statement.py`、`generate_income_report.py`、`get_income_report.py`、`get_income_overview.py`、`get_income_detail.py` |\n| 其他 | `get_payment_method_list.py` |\n| 通用入口 | `payment_api.py`（JSON 含 `api` 字段） |\n\n共享：`_shopee_payment_common.py"},{"path":"_meta.json","content":"{\n  \"ownerId\": \"kn7dmc1t4j28hem1twwyav85p182pb1j\",\n  \"slug\": \"linkfox-shopee-store-payment\",\n  \"version\": \"1.0.6\",\n  \"publishedAt\": 1789363787199\n}"},{"path":"references/api.md","content":"# linkfox-shopee-store-payment — 参数与字段参考\r\n\r\n> 单接口入参/响应说明已拆到 **`apis/`**（按 API 一份）；本文件保留模块总览与 Feedback。\r\nShopee **Payment 模块**全部 18 个 API，经 **`POST /shopee/developerProxy`** 转发。\r\n\r\n授权见 **`linkfox-shopee-store-auth`**。官方索引：[v2.payment.get_escrow_detail](https://open.shopee.com/documents/v2/v2.payment.get_escrow_detail?module=97&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/payment/...`\r\n- **标识**：店铺级 API，通常传 **`shopId`**\r\n- **官方文档 URL 规则**：`https://open.shopee.com/documents/v2/v2.payment.{api}?module=97&type=1`\r\n\r\n---\r\n\r\n## Payment 模块总览\r\n\r\n| # | API | Method | path | 脚本 | 官方文档 |\r\n|---|-----|--------|------|------|----------|\r\n| 1 | generate_income_report | POST | `api/v2/payment/generate_income_report` | `generate_income_report.py` | [apis/generate-income-report.md](./apis/generate-income-report.md) |\r\n| 2 | generate_income_statement | POST | `api/v2/payment/generate_income_statement` | `generate_income_statement.py` | [apis/generate-income-statement.md](./apis/generate-income-statement.md) |\r\n| 3 | get_billing_transaction_info | GET | `api/v2/payment/get_billing_transaction_info` | `get_billing_transaction_info.py` | [apis/get-billing-transaction-info.md](./apis/get-billing-transaction-info.md) |\r\n| 4 | get_escrow_detail | GET | `api/v2/payment/get_escrow_detail` | `get_escrow_detail.py` | [apis/get-escrow-detail.md](./apis/get-escrow-detail.md) |\r\n| 5 | get_escrow_detail_batch | POST | `api/v2/payment/get_escrow_detail_batch` | `get_escrow_detail_batch.py` | [apis/get-escrow-detail-batch.md](./apis/get-escrow-detail-batch.md) |\r\n| 6 | get_escrow_list | GET | `api/v2/payment/get_escrow_list` | `get_escrow_list.py` | [apis/get-escrow-list.md](./apis/get-escrow-list.md) |\r\n| 7 | get_income_detail | GET | `api/v2/payment/get_income_detail` | `get_income_detail.py` | [apis/get-income-detail.md](./apis/get-income-detail.md) |\r\n| 8 | get_income_overview | GET | `api/v2/payment/get_income_overview` | `get_income_overview.py` | [apis/get-income-overview.md](./apis/get-income-overview.md) |\r\n| 9 | get_income_report | GET | `api/v2/payment/get_income_report` | `get_income_report.py` | [apis/get-income-report.md](./apis/get-income-report.md) |\r\n| 10 | get_income_statement | GET | `api/v2/payment/get_income_statement` | `get_income_statement.py` | [apis/get-income-statement.md](./apis/get-income-statement.md) |\r\n| 11 | get_item_installment_status | GET | `api/v2/payment/get_item_installment_status` | `get_item_installment_status.py` | [apis/get-item-installment-status.md](./apis/get-item-installment-status.md) |\r\n| 12 | get_payment_method_list | GET | `api/v2/payment/get_payment_method_list` | `get_payment_method_list.py` | [apis/get-payment-method-list.md](./apis/get-payment-method-list.md) |\r\n| 13 | get_payout_detail | GET | `api/v2/paym"},{"path":"references/apis/generate-income-report.md","content":"# generate_income_report\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/generate_income_report.py` |\n| Method / path | POST `api/v2/payment/generate_income_report` |\n| 官方文档 | [generate_income_report](https://open.shopee.com/documents/v2/v2.payment.generate_income_report?module=97&type=1) |\n| 用途 | Generate income report async |\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：Generate income report async\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/generate_income_report.py '{\"shopId\": \"67890\"}'\n\n# 通用入口\npython scripts/payment_api.py '{\"api\": \"generate_income_report\", \"shopId\": \"67890\"}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`generateIncomeReport`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准"},{"path":"references/apis/generate-income-statement.md","content":"# generate_income_statement\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/generate_income_statement.py` |\n| Method / path | POST `api/v2/payment/generate_income_statement` |\n| 官方文档 | [generate_income_statement](https://open.shopee.com/documents/v2/v2.payment.generate_income_statement?module=97&type=1) |\n| 用途 | Generate income statement async |\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：Generate income statement async\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/generate_income_statement.py '{\"shopId\": \"67890\"}'\n\n# 通用入口\npython scripts/payment_api.py '{\"api\": \"generate_income_statement\", \"shopId\": \"67890\"}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`generateIncomeStatement`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准"}],"languages":[],"docsSourceLabel":"CLAWHUB","editorialOverview":null,"editorialQuality":{"score":100,"threshold":65,"status":"thin","wordCount":1156,"uniquenessScore":32,"reasons":["uniqueness-below-45"]}},"media":{"evidence":{"source":"no-media","verified":false,"confidence":"low","updatedAt":"2026-10-11T08:37:24.106Z","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-11T08:37:24.106Z","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-11T10:51:53.769Z","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"}]}}}