{"id":"596c6ac7-2fa1-42bc-bb8d-e249434a14ec","entityType":"agent","slug":"clawhub-linkfox-ai-linkfox-shopee-store-merchant","name":"Shopee-店铺商户","canonicalUrl":"https://www.xpersona.co/agent/clawhub-linkfox-ai-linkfox-shopee-store-merchant","canonicalPath":"/agent/clawhub-linkfox-ai-linkfox-shopee-store-merchant","generatedAt":"2026-10-12T20:37:54.729Z","source":"CLAWHUB","claimStatus":"UNCLAIMED","verificationTier":"NONE","summary":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-11T23:14:51.733Z","emptyReason":null},"description":"Shopee（虾皮）跨境商户信息（与 linkfox-shopee-store-auth 同系列），经 /shopee/developerProxy 转发 Shopee Open API Merchant 模块全部 6 个接口：get_merchant_info、get_shop_list_by_merchant、get_merchant_warehouse_list、get_merchant_warehouse_location_list、get_warehouse_eligible_shop_list、get_merchant_prepaid_account_list。当用户提到 Shopee 商户、merchantId、跨境卖家、CNSC、商户下店铺列表、get_merchant_info、商户仓库、预付账户 时触发。即使未明确提及\"商户\"，只要涉及已授权 Shopee 跨境商户的信息查询或下属店铺列表，也应触发。","descriptionLabel":"Source description","evidenceSummary":"Capability contract not published. No trust telemetry is available yet. 978 downloads reported by the source. Last updated 10/11/2026.","installCommand":"clawhub skill install s171g8b6m2khwdy9ye8bxj0wx183vd4z:linkfox-shopee-store-merchant","sourceUrl":"https://clawhub.ai/linkfox-ai/linkfox-shopee-store-merchant","homepage":"https://clawhub.ai/linkfox-ai/skills/linkfox-shopee-store-merchant","primaryLinks":[{"label":"View on ClawHub","url":"https://clawhub.ai/linkfox-ai/linkfox-shopee-store-merchant","kind":"source"},{"label":"Homepage","url":"https://clawhub.ai/linkfox-ai/skills/linkfox-shopee-store-merchant","kind":"homepage"}],"safetyScore":84,"overallRank":62,"popularityScore":60,"trustScore":null,"claimedByName":null,"isOwner":false,"seoDescription":"Shopee-店铺商户 technical dossier on Xpersona with agent coverage, OPENCLEW support, and live trust metadata."},"coverage":{"evidence":{"source":"public-profile","verified":false,"confidence":"medium","updatedAt":"2026-10-11T23:14:51.733Z","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-11T23:14:51.733Z","emptyReason":null},"stars":null,"forks":null,"downloads":978,"likes":null,"task":null,"library":null,"packageName":null,"latestVersion":"1.0.6","tractionLabel":"978 downloads"},"release":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-11T23:14:51.719Z","emptyReason":null},"lastUpdatedAt":"2026-10-11T23:14:51.733Z","lastCrawledAt":"2026-10-11T23:14:51.719Z","lastIndexedAt":null,"nextCrawlAt":"2026-10-12T23:14:51.719Z","lastVerifiedAt":null,"highlights":[{"version":"1.0.6","createdAt":"2026-09-14T05:29:11.091Z","changelog":"Update from 1.0.5 to 1.0.6","fileCount":23,"zipByteSize":35720},{"version":"1.0.5","createdAt":"2026-08-14T15:05:49.671Z","changelog":"Update from 1.0.4 to 1.0.5","fileCount":23,"zipByteSize":35557},{"version":"1.0.4","createdAt":"2026-08-07T11:04:39.764Z","changelog":"Update from 1.0.3 to 1.0.4","fileCount":23,"zipByteSize":35646},{"version":"1.0.3","createdAt":"2026-07-13T12:23:10.760Z","changelog":"Update from 1.0.2 to 1.0.3","fileCount":15,"zipByteSize":19615},{"version":"1.0.2","createdAt":"2026-07-06T11:31:48.369Z","changelog":"Update from 1.0.1 to 1.0.2","fileCount":15,"zipByteSize":19158},{"version":"1.0.1","createdAt":"2026-07-03T08:31:03.447Z","changelog":"Update from 1.0.0 to 1.0.1","fileCount":14,"zipByteSize":17601},{"version":"1.0.0","createdAt":"2026-07-02T14:53:08.156Z","changelog":"Initial release","fileCount":15,"zipByteSize":19099}]},"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-merchant","setupComplexity":"low","setupSteps":["Install using `clawhub skill install s171g8b6m2khwdy9ye8bxj0wx183vd4z:linkfox-shopee-store-merchant` 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-merchant 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-merchant/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-linkfox-ai-linkfox-shopee-store-merchant/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-linkfox-ai-linkfox-shopee-store-merchant/trust"},"curlExamples":["curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-linkfox-ai-linkfox-shopee-store-merchant/snapshot\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-linkfox-ai-linkfox-shopee-store-merchant/contract\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-linkfox-ai-linkfox-shopee-store-merchant/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-12T20:37:54.728Z"}},"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-merchant/dossier","snapshotUrl":"https://www.xpersona.co/api/v1/agents/clawhub-linkfox-ai-linkfox-shopee-store-merchant/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-linkfox-ai-linkfox-shopee-store-merchant/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-linkfox-ai-linkfox-shopee-store-merchant/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-11T23:14:51.733Z","emptyReason":null},"readme":"Skill: Shopee-店铺商户\n\nOwner: linkfox-ai\n\nSummary: Shopee（虾皮）跨境商户信息（与 linkfox-shopee-store-auth 同系列），经 /shopee/developerProxy 转发 Shopee Open API Merchant 模块全部 6 个接口：get_merchant_info、get_shop_list_by_merchant、get_merchant_warehouse_list、get_merchant_warehouse_location_list、get_warehouse_eligible_shop_list、get_merchant_prepaid_account_list。当用户提到 Shopee 商户、merchantId、跨境卖家、CNSC、商户下店铺列表、get_merchant_info、商户仓库、预付账户 时触发。即使未明确提及\"商户\"，只要涉及已授权 Shopee 跨境商户的信息查询或下属店铺列表，也应触发。\n\nTags: latest:1.0.6\n\nVersion history:\n\nv1.0.6 | 2026-09-14T05:29:11.091Z | user\n\nUpdate from 1.0.5 to 1.0.6\n\nv1.0.5 | 2026-08-14T15:05:49.671Z | user\n\nUpdate from 1.0.4 to 1.0.5\n\nv1.0.4 | 2026-08-07T11:04:39.764Z | user\n\nUpdate from 1.0.3 to 1.0.4\n\nv1.0.3 | 2026-07-13T12:23:10.760Z | user\n\nUpdate from 1.0.2 to 1.0.3\n\nv1.0.2 | 2026-07-06T11:31:48.369Z | user\n\nUpdate from 1.0.1 to 1.0.2\n\nv1.0.1 | 2026-07-03T08:31:03.447Z | user\n\nUpdate from 1.0.0 to 1.0.1\n\nv1.0.0 | 2026-07-02T14:53:08.156Z | user\n\nInitial release\n\nArchive index:\n\nArchive v1.0.6: 23 files, 35720 bytes\n\nFiles: references/api.md (4805b), references/apis/get-merchant-info.md (1436b), references/apis/get-merchant-prepaid-account-list.md (1514b), references/apis/get-merchant-warehouse-list.md (1463b), references/apis/get-merchant-warehouse-location-list.md (1544b), references/apis/get-shop-list-by-merchant.md (1698b), references/apis/get-warehouse-eligible-shop-list.md (1512b), references/onboarding.md (1999b), scripts/_merchant_api_runner.py (4300b), scripts/_merchant_endpoints.py (2315b), scripts/_shopee_merchant_common.py (12186b), scripts/check_auth_dependency.py (3985b), scripts/get_merchant_info.py (693b), scripts/get_merchant_prepaid_account_list.py (789b), scripts/get_merchant_warehouse_list.py (753b), scripts/get_merchant_warehouse_location_list.py (807b), scripts/get_shop_list_by_merchant.py (741b), scripts/get_warehouse_eligible_shop_list.py (783b), scripts/merchant_api.py (1051b), scripts/onboarding.py (24027b), skill-card.md (3384b), SKILL.md (7078b), _meta.json (148b)\n\nFile v1.0.6:SKILL.md\n\n---\nname: linkfox-shopee-store-merchant\ndescription: Shopee（虾皮）跨境商户信息（与 linkfox-shopee-store-auth 同系列），经 /shopee/developerProxy 转发 Shopee Open API Merchant 模块全部 6 个接口：get_merchant_info、get_shop_list_by_merchant、get_merchant_warehouse_list、get_merchant_warehouse_location_list、get_warehouse_eligible_shop_list、get_merchant_prepaid_account_list。当用户提到 Shopee 商户、merchantId、跨境卖家、CNSC、商户下店铺列表、get_merchant_info、商户仓库、预付账户 时触发。即使未明确提及\"商户\"，只要涉及已授权 Shopee 跨境商户的信息查询或下属店铺列表，也应触发。\n---\n\n# Shopee 商户 Merchant\n\nShopee Open Platform **Merchant 模块**（6 个 API）。**依赖 `linkfox-shopee-store-auth`** 选店；经 **`POST /shopee/developerProxy`** 传入 `shopId`（或 `merchantId`），由服务端解析 token 转发（`path` 须 `api/v2/merchant/...`）。\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\nMerchant 模块索引：[v2.merchant.get_merchant_info](https://open.shopee.com/documents/v2/v2.merchant.get_merchant_info?module=93&type=1)\n\n---\n\n## Prerequisites（必须先读）\n\n1. 运行 `python scripts/check_auth_dependency.py`；exit code **42** → 先安装 **`linkfox-shopee-store-auth`** 并授权。\n2. **不要**在本 skill 内实现授权/令牌逻辑。\n3. Merchant 为**商户级** API，须传 **`merchantId`**；主要面向**跨境卖家**。\n\n---\n\n## Core Concepts\n\n- **转发链路**：`developerProxy`（`shopId`/`merchantId` 选店，服务端注入 token）→ 紫鸟 `shopee-proxy` → Shopee API\n- **商户 vs 店铺**：本 skill 查商户信息及下属店铺；单店资料见 `linkfox-shopee-store-shop`\n- **全球商品**：商户下全球 listing 见 `linkfox-shopee-store-global-product`\n- **典型用法**：`get_merchant_info` 确认 region/currency → `get_shop_list_by_merchant` 列出授权店铺\n\n## 可用脚本（Merchant 模块 6 个 API）\n\n| 脚本 | API | Method |\n|------|-----|--------|\n| `get_merchant_info.py` | get_merchant_info | GET |\n| `get_shop_list_by_merchant.py` | get_shop_list_by_merchant | GET |\n| `get_merchant_warehouse_location_list.py` | get_merchant_warehouse_location_list | GET |\n| `get_merchant_warehouse_list.py` | get_merchant_warehouse_list | GET |\n| `get_warehouse_eligible_shop_list.py` | get_warehouse_eligible_shop_list | GET |\n| `get_merchant_prepaid_account_list.py` | get_merchant_prepaid_account_list | GET |\n| `merchant_api.py` | 通用入口（JSON 含 `api` 字段） | — |\n\n共享：`_shopee_merchant_common.py`、`_merchant_endpoints.py`、`_merchant_api_runner.py`。\n\n## 接口说明（按 API）\n\n入参与响应细节放在 `references/apis/`，SKILL 只保留索引。\n\n| API | 说明文档 |\n|-----|----------|\n| `get_merchant_info` | [references/apis/get-merchant-info.md](./references/apis/get-merchant-info.md) |\n| `get_merchant_prepaid_account_list` | [references/apis/get-merchant-prepaid-account-list.md](./references/apis/get-merchant-prepaid-account-list.md) |\n| `get_merchant_warehouse_list` | [references/apis/get-merchant-warehouse-list.md](./references/apis/get-merchant-warehouse-list.md) |\n| `get_merchant_warehouse_location_list` | [references/apis/get-merchant-warehouse-location-list.md](./references/apis/get-merchant-warehouse-location-list.md) |\n| `get_shop_list_by_merchant` | [references/apis/get-shop-list-by-merchant.md](./references/apis/get-shop-list-by-merchant.md) |\n| `get_warehouse_eligible_shop_list` | [references/apis/get-warehouse-eligible-shop-list.md](./references/apis/get-warehouse-eligible-shop-list.md) |\n\n模块总览 / Feedback 见 [references/api.md](./references/api.md)。\n\n## Usage Scenarios\n\n### 1. 查商户信息与下属店铺\n1. auth skill 定位 `merchantId`\n2. `get_merchant_info.py`：name、region、currency、授权过期\n3. `get_shop_list_by_merchant.py`：`page_no=1`、`page_size=100`\n\n### 2. 仓库与预付账户\n- `get_merchant_warehouse_list.py` / `get_merchant_warehouse_location_list.py`\n- `get_warehouse_eligible_shop_list.py`\n- `get_merchant_prepaid_account_list.py`\n\n## 调用原则\n\n- 先看 **`developerProxy.httpStatus`**，再读 `*Response` 字段\n- GET：业务参数放 JSON 顶层（runner 拼 queryString）\n- 每个脚本 docstring 含 **官方文档 URL**（`module=93`）\n\n## Not Applicable\n\n- 店铺授权 → `linkfox-shopee-store-auth`\n- 单店信息 → `linkfox-shopee-store-shop`\n- 全球商品 → `linkfox-shopee-store-global-product`\n- 单店 listing → `linkfox-shopee-store-product`\n- 订单 → `linkfox-shopee-store-orders`\n- Public 模块（`get_merchants_by_partner` 等）→ 非本 skill\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-merchant\",\n  \"version\": \"1.0.6\",\n  \"publishedAt\": 1789363751091\n}\n\nFile v1.0.6:references/api.md\n\n# linkfox-shopee-store-merchant — 参数与字段参考\r\n\r\n> 单接口入参/响应说明已拆到 **`apis/`**（按 API 一份）；本文件保留模块总览与 Feedback。\r\nShopee **Merchant 模块**全部 6 个 API，经 **`POST /shopee/developerProxy`** 转发。\r\n\r\n授权见 **`linkfox-shopee-store-auth`**。官方索引：[v2.merchant.get_merchant_info](https://open.shopee.com/documents/v2/v2.merchant.get_merchant_info?module=93&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/merchant/...`\r\n- **标识**：Merchant 模块为**商户级** API，须传 **`merchantId`**\r\n- **适用对象**：主要为**跨境卖家**（CNSC/CBSC）；本地卖家通常不需要\r\n- **官方文档 URL 规则**：`https://open.shopee.com/documents/v2/v2.merchant.{api}?module=93&type=1`\r\n\r\n---\r\n\r\n## Merchant 模块总览\r\n\r\n| # | API | Method | path | 脚本 | 官方文档 |\r\n|---|-----|--------|------|------|----------|\r\n| 1 | get_merchant_info | GET | `api/v2/merchant/get_merchant_info` | `get_merchant_info.py` | [apis/get-merchant-info.md](./apis/get-merchant-info.md) |\r\n| 2 | get_merchant_prepaid_account_list | GET | `api/v2/merchant/get_merchant_prepaid_account_list` | `get_merchant_prepaid_account_list.py` | [apis/get-merchant-prepaid-account-list.md](./apis/get-merchant-prepaid-account-list.md) |\r\n| 3 | get_merchant_warehouse_list | GET | `api/v2/merchant/get_merchant_warehouse_list` | `get_merchant_warehouse_list.py` | [apis/get-merchant-warehouse-list.md](./apis/get-merchant-warehouse-list.md) |\r\n| 4 | get_merchant_warehouse_location_list | GET | `api/v2/merchant/get_merchant_warehouse_location_list` | `get_merchant_warehouse_location_list.py` | [apis/get-merchant-warehouse-location-list.md](./apis/get-merchant-warehouse-location-list.md) |\r\n| 5 | get_shop_list_by_merchant | GET | `api/v2/merchant/get_shop_list_by_merchant` | `get_shop_list_by_merchant.py` | [apis/get-shop-list-by-merchant.md](./apis/get-shop-list-by-merchant.md) |\r\n| 6 | get_warehouse_eligible_shop_list | GET | `api/v2/merchant/get_warehouse_eligible_shop_list` | `get_warehouse_eligible_shop_list.py` | [apis/get-warehouse-eligible-shop-list.md](./apis/get-warehouse-eligible-shop-list.md) |\r\n通用入口：`merchant_api.py`（JSON 含 `\"api\": \"<上表 API 名>\"`）。\r\n\r\n---\r\n\r\n## 接口说明\r\n\r\n### get_merchant_info\r\n\r\n[官方文档](https://open.shopee.com/documents/v2/v2.merchant.get_merchant_info?module=93&type=1)\r\n\r\n**Query**：无额外业务参数（公共参数含 merchant_id）\r\n\r\n**Response 要点**：`merchant_name`、`merchant_region`、`merchant_currency`、`auth_time`、`expire_time`、`is_cnsc`、`is_upgraded_cbsc`\r\n\r\n### get_shop_list_by_merchant\r\n\r\n[官方文档](https://open.shopee.com/documents/v2/v2.merchant.get_shop_list_by_merchant?module=93&type=1)\r\n\r\n**Query（必填）**：`page_no`（从 1 起）、`page_size`（最大 500）\r\n\r\n**Response 要点**：`shop_list[]`（`shop_id`、`sip_affi_shops` 等）、`more`、`is_cnsc`\r\n\r\n### get_merchant_warehouse_location_list / get_merchant_warehouse_list\r\n\r\n商户仓库位置与仓库列表。\r\n\r\n### get_warehouse_eligible_shop_list\r\n\r\n可使用仓库的店铺列表。\r\n\r\n### get_merchant_prepaid_account_list\r\n\r\n商户预付账户列表。\r\n\r\n---\r\n\r\n## 网关错误码\r\n\r\n| errcode | 含义 | 建议 |\r\n|---------|------|------|\r\n| 1002 | 参数/未登录 | 检查 merchantId 与 API Key |\r\n| 1003 | 代理/网络异常 | 重试 |\r\n| 1004 | 无授权记录 | auth skill |\r\n| 1005 | path 未白名单 | 确认 `api/v2/merchant/...` |\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\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/merchant/get_merchant_info\",\r\n    \"method\": \"GET\",\r\n    \"accessToken\": \"xxx\",\r\n    \"merchantId\": \"12345\"\r\n  }'\r\n\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/merchant/get_shop_list_by_merchant\",\r\n    \"method\": \"GET\",\r\n    \"accessToken\": \"xxx\",\r\n    \"merchantId\": \"12345\",\r\n    \"queryString\": \"page_no=1&page_size=100\"\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-merchant\",\"sentiment\":\"POSITIVE\",\r\n       \"category\":\"OTHER\",\"content\":\"商户信息查询正常\"}'\r\n```\n\nFile v1.0.6:references/apis/get-merchant-info.md\n\n# get_merchant_info\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/get_merchant_info.py` |\n| Method / path | GET `api/v2/merchant/get_merchant_info` |\n| 官方文档 | [get_merchant_info](https://open.shopee.com/documents/v2/v2.merchant.get_merchant_info?module=93&type=1) |\n| 用途 | Merchant name, region, currency, auth/expire time |\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：Merchant name, region, currency, auth/expire time\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/get_merchant_info.py '{\"shopId\": \"67890\"}'\n\n# 通用入口\npython scripts/merchant_api.py '{\"api\": \"get_merchant_info\", \"shopId\": \"67890\"}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`getMerchantInfo`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nFile v1.0.6:references/apis/get-merchant-prepaid-account-list.md\n\n# get_merchant_prepaid_account_list\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/get_merchant_prepaid_account_list.py` |\n| Method / path | GET `api/v2/merchant/get_merchant_prepaid_account_list` |\n| 官方文档 | [get_merchant_prepaid_account_list](https://open.shopee.com/documents/v2/v2.merchant.get_merchant_prepaid_account_list?module=93&type=1) |\n| 用途 | Merchant prepaid accounts |\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：Merchant prepaid accounts\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/get_merchant_prepaid_account_list.py '{\"shopId\": \"67890\"}'\n\n# 通用入口\npython scripts/merchant_api.py '{\"api\": \"get_merchant_prepaid_account_list\", \"shopId\": \"67890\"}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`getMerchantPrepaidAccountList`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nFile v1.0.6:references/apis/get-merchant-warehouse-list.md\n\n# get_merchant_warehouse_list\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/get_merchant_warehouse_list.py` |\n| Method / path | GET `api/v2/merchant/get_merchant_warehouse_list` |\n| 官方文档 | [get_merchant_warehouse_list](https://open.shopee.com/documents/v2/v2.merchant.get_merchant_warehouse_list?module=93&type=1) |\n| 用途 | Merchant warehouse list |\n\n经 **`POST /shopee/developerProxy`** 转发；依赖 **`linkfox-shopee-store-auth`** 选店（通常传 `shopId` 或 `merchantId`）。\n\n---\n\n## 脚本 JSON 入参\n\n| 字段 | 类型 | 必填 | 说明 |\n|------|------|------|------|\n| `shopId` | string | 与 `merchantId` 二选一 | 店铺 ID（推荐；Public 等无店铺接口可省略） |\n| `merchantId` | string | 与 `shopId` 二选一 | 商户 ID |\n\n- Method：**GET**\n- GET：业务字段放 JSON **顶层**，runner 拼进 `queryString`（不含 `?`）\n- `shopId` / `merchantId` / `skipDepCheck` 等为网关选店保留字段，不会进 Shopee query/body\n- Registry notes：Merchant warehouse list\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/get_merchant_warehouse_list.py '{\"shopId\": \"67890\"}'\n\n# 通用入口\npython scripts/merchant_api.py '{\"api\": \"get_merchant_warehouse_list\", \"shopId\": \"67890\"}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`getMerchantWarehouseList`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nFile v1.0.6:references/apis/get-merchant-warehouse-location-list.md\n\n# get_merchant_warehouse_location_list\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/get_merchant_warehouse_location_list.py` |\n| Method / path | GET `api/v2/merchant/get_merchant_warehouse_location_list` |\n| 官方文档 | [get_merchant_warehouse_location_list](https://open.shopee.com/documents/v2/v2.merchant.get_merchant_warehouse_location_list?module=93&type=1) |\n| 用途 | Merchant warehouse locations |\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：Merchant warehouse locations\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/get_merchant_warehouse_location_list.py '{\"shopId\": \"67890\"}'\n\n# 通用入口\npython scripts/merchant_api.py '{\"api\": \"get_merchant_warehouse_location_list\", \"shopId\": \"67890\"}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`getMerchantWarehouseLocationList`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nFile v1.0.6:references/apis/get-shop-list-by-merchant.md\n\n# get_shop_list_by_merchant\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/get_shop_list_by_merchant.py` |\n| Method / path | GET `api/v2/merchant/get_shop_list_by_merchant` |\n| 官方文档 | [get_shop_list_by_merchant](https://open.shopee.com/documents/v2/v2.merchant.get_shop_list_by_merchant?module=93&type=1) |\n| 用途 | Shops bound to merchant; page_size max 500 |\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| `page_size` | — | **是** | Query 必填（见 notes / 官方文档） |\n| `page_no` | — | **是** | Query 必填（见 notes / 官方文档） |\n\n- Method：**GET**\n- GET：业务字段放 JSON **顶层**，runner 拼进 `queryString`（不含 `?`）\n- `shopId` / `merchantId` / `skipDepCheck` 等为网关选店保留字段，不会进 Shopee query/body\n- Registry notes：Shops bound to merchant; page_size max 500\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/get_shop_list_by_merchant.py '{\"shopId\": \"67890\", \"page_no\": 1, \"page_size\": 20}'\n\n# 通用入口\npython scripts/merchant_api.py '{\"api\": \"get_shop_list_by_merchant\", \"shopId\": \"67890\", \"page_no\": 1, \"page_size\": 20}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`getShopListByMerchant`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nFile v1.0.6:references/apis/get-warehouse-eligible-shop-list.md\n\n# get_warehouse_eligible_shop_list\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/get_warehouse_eligible_shop_list.py` |\n| Method / path | GET `api/v2/merchant/get_warehouse_eligible_shop_list` |\n| 官方文档 | [get_warehouse_eligible_shop_list](https://open.shopee.com/documents/v2/v2.merchant.get_warehouse_eligible_shop_list?module=93&type=1) |\n| 用途 | Shops eligible for warehouse |\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：Shops eligible for warehouse\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/get_warehouse_eligible_shop_list.py '{\"shopId\": \"67890\"}'\n\n# 通用入口\npython scripts/merchant_api.py '{\"api\": \"get_warehouse_eligible_shop_list\", \"shopId\": \"67890\"}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`getWarehouseEligibleShopList`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nFile v1.0.6:references/onboarding.md\n\n# 解决认证和算力问题\n\n调用本 skill 时若网关返回 **auth** 或 **billing** 错误，走本 skill 自带的 `scripts/onboarding.py` 完成引导。\n\n**auth 场景**：`errcode=401` 或消息含 `authorized error`/`鉴权失败`/`未授权`/`unauthorized`；或 `LINKFOX_AGENT_API_KEY` 与 `LINKFOXAGENT_API_KEY` 均为空。\n1. 若已配置 key → 先让用户重启会话（最常见误判），仍失败让用户重新取 key 或换手机号重注册\n2. 未配置 → 询问：自助去 https://agent.linkfox.com/ 取 key，或提供手机号让脚本注册\n3. 手机号路径：\n   - `python scripts/onboarding.py send-code <phone>` → 展示 JSON 里的 phone/agreements\n   - 收到验证码后：`python scripts/onboarding.py login <phone> <code>`\n   - 拿到 `api_key` 后把下面三平台配置转发给用户，提示重启会话生效：\n     - Windows PowerShell（永久）：`setx LINKFOX_AGENT_API_KEY \"<key>\"`\n     - macOS zsh：`echo 'export LINKFOX_AGENT_API_KEY=\"<key>\"' >> ~/.zshrc && source ~/.zshrc`\n     - Linux bash：`echo 'export LINKFOX_AGENT_API_KEY=\"<key>\"' >> ~/.bashrc && source ~/.bashrc`\n     - 变量名 `LINKFOX_AGENT_API_KEY`（主推）或 `LINKFOXAGENT_API_KEY`（老规范）任一即可\n\n**billing 场景**：`errcode=402` 或消息含 `算力/余额/quota/insufficient/充值/套餐到期`。\n- `python scripts/onboarding.py list-plans` → 有 AskUserQuestion 就弹菜单，否则输出编号清单让用户选\n- 校验 `plan_id` ∈ 清单、支付方式 ∈ 该套餐 `available_methods`（通常 `wechat/alipay`）\n- `python scripts/onboarding.py order <plan_id> <method>` → 展示优先级 PNG > `pay_url` > `ascii_qr`（标注兜底）\n- 已付款可选调 `python scripts/onboarding.py query <order_id>`，不主动轮询\n\n排除 `errcode=403`（无权限，不归入这两类）。所有子命令输出 stdout JSON，`error` 字段已含阶段前缀，透传给用户即可。完整用法：`python scripts/onboarding.py --help`。\n\nFile v1.0.6:skill-card.md\n\n## Description:\n\nProvides agent workflows and Python helpers for querying authorized Shopee cross-border merchant data, including merchant profile, shop lists, warehouses, warehouse locations, eligible shops, and prepaid accounts.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[linkfox-ai](https://clawhub.ai/user/linkfox-ai)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nExternal sellers, operators, and developers working with authorized Shopee cross-border merchant accounts use this skill to retrieve merchant, shop, warehouse, eligible-shop, and prepaid-account information through LinkFox-supported Shopee Merchant API calls.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Shopee merchant/account data and LinkFox credentials may be sent through LinkFox services.\n\nMitigation: Install and run the skill only when that data path is acceptable for the user's merchant account and organization.\n\nRisk: Phone numbers, SMS codes, API keys, merchant IDs, and saved response files may contain sensitive information.\n\nMitigation: Treat those values as secrets, avoid sharing logs or outputs that contain them, and remove or protect saved response files after use.\n\nRisk: The skill includes onboarding and payment flows that can affect account setup or billing.\n\nMitigation: Review the onboarding and billing flow before allowing it to run, and require explicit user confirmation before registration, plan selection, or payment actions.\n\nRisk: Environment overrides can change which LinkFox services receive requests.\n\nMitigation: Use trusted environment configuration and avoid running the skill with untrusted service endpoint overrides.\n\n## Reference(s):\n\n- [ClawHub skill page](https://clawhub.ai/linkfox-ai/skills/linkfox-shopee-store-merchant)\n- [Shopee Merchant API reference](https://open.shopee.com/documents/v2/v2.merchant.get_merchant_info?module=93&type=1)\n- [LinkFox merchant API reference](references/api.md)\n- [Onboarding and billing reference](references/onboarding.md)\n- [get_merchant_info reference](references/apis/get-merchant-info.md)\n- [get_shop_list_by_merchant reference](references/apis/get-shop-list-by-merchant.md)\n- [get_merchant_warehouse_list reference](references/apis/get-merchant-warehouse-list.md)\n- [get_merchant_warehouse_location_list reference](references/apis/get-merchant-warehouse-location-list.md)\n- [get_warehouse_eligible_shop_list reference](references/apis/get-warehouse-eligible-shop-list.md)\n- [get_merchant_prepaid_account_list reference](references/apis/get-merchant-prepaid-account-list.md)\n\n## Skill Output:\n\n**Output Type(s):** [JSON, Files, Shell commands, Configuration, Guidance]\n\n**Output Format:** [Markdown guidance with shell commands; API responses are JSON saved to local files and optionally printed to stdout.]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [Large API responses are summarized on stdout unless inline output is requested; full responses are retained in a local linkfox output directory.]\n\n## Skill Version(s):\n\n1.0.6 (source: server release evidence)\n\n## Ethical Considerations:\n\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.\n\nArchive v1.0.5: 23 files, 35557 bytes\n\nFiles: references/api.md (4805b), references/apis/get-merchant-info.md (1436b), references/apis/get-merchant-prepaid-account-list.md (1514b), references/apis/get-merchant-warehouse-list.md (1463b), references/apis/get-merchant-warehouse-location-list.md (1544b), references/apis/get-shop-list-by-merchant.md (1698b), references/apis/get-warehouse-eligible-shop-list.md (1512b), references/onboarding.md (2046b), scripts/_merchant_api_runner.py (4300b), scripts/_merchant_endpoints.py (2315b), scripts/_shopee_merchant_common.py (11952b), scripts/check_auth_dependency.py (3985b), scripts/get_merchant_info.py (693b), scripts/get_merchant_prepaid_account_list.py (789b), scripts/get_merchant_warehouse_list.py (753b), scripts/get_merchant_warehouse_location_list.py (807b), scripts/get_shop_list_by_merchant.py (741b), scripts/get_warehouse_eligible_shop_list.py (783b), scripts/merchant_api.py (1051b), scripts/onboarding.py (24089b), skill-card.md (3210b), SKILL.md (7078b), _meta.json (148b)\n\nFile v1.0.5:SKILL.md\n\n---\nname: linkfox-shopee-store-merchant\ndescription: Shopee（虾皮）跨境商户信息（与 linkfox-shopee-store-auth 同系列），经 /shopee/developerProxy 转发 Shopee Open API Merchant 模块全部 6 个接口：get_merchant_info、get_shop_list_by_merchant、get_merchant_warehouse_list、get_merchant_warehouse_location_list、get_warehouse_eligible_shop_list、get_merchant_prepaid_account_list。当用户提到 Shopee 商户、merchantId、跨境卖家、CNSC、商户下店铺列表、get_merchant_info、商户仓库、预付账户 时触发。即使未明确提及\"商户\"，只要涉及已授权 Shopee 跨境商户的信息查询或下属店铺列表，也应触发。\n---\n\n# Shopee 商户 Merchant\n\nShopee Open Platform **Merchant 模块**（6 个 API）。**依赖 `linkfox-shopee-store-auth`** 选店；经 **`POST /shopee/developerProxy`** 传入 `shopId`（或 `merchantId`），由服务端解析 token 转发（`path` 须 `api/v2/merchant/...`）。\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\nMerchant 模块索引：[v2.merchant.get_merchant_info](https://open.shopee.com/documents/v2/v2.merchant.get_merchant_info?module=93&type=1)\n\n---\n\n## Prerequisites（必须先读）\n\n1. 运行 `python scripts/check_auth_dependency.py`；exit code **42** → 先安装 **`linkfox-shopee-store-auth`** 并授权。\n2. **不要**在本 skill 内实现授权/令牌逻辑。\n3. Merchant 为**商户级** API，须传 **`merchantId`**；主要面向**跨境卖家**。\n\n---\n\n## Core Concepts\n\n- **转发链路**：`developerProxy`（`shopId`/`merchantId` 选店，服务端注入 token）→ 紫鸟 `shopee-proxy` → Shopee API\n- **商户 vs 店铺**：本 skill 查商户信息及下属店铺；单店资料见 `linkfox-shopee-store-shop`\n- **全球商品**：商户下全球 listing 见 `linkfox-shopee-store-global-product`\n- **典型用法**：`get_merchant_info` 确认 region/currency → `get_shop_list_by_merchant` 列出授权店铺\n\n## 可用脚本（Merchant 模块 6 个 API）\n\n| 脚本 | API | Method |\n|------|-----|--------|\n| `get_merchant_info.py` | get_merchant_info | GET |\n| `get_shop_list_by_merchant.py` | get_shop_list_by_merchant | GET |\n| `get_merchant_warehouse_location_list.py` | get_merchant_warehouse_location_list | GET |\n| `get_merchant_warehouse_list.py` | get_merchant_warehouse_list | GET |\n| `get_warehouse_eligible_shop_list.py` | get_warehouse_eligible_shop_list | GET |\n| `get_merchant_prepaid_account_list.py` | get_merchant_prepaid_account_list | GET |\n| `merchant_api.py` | 通用入口（JSON 含 `api` 字段） | — |\n\n共享：`_shopee_merchant_common.py`、`_merchant_endpoints.py`、`_merchant_api_runner.py`。\n\n## 接口说明（按 API）\n\n入参与响应细节放在 `references/apis/`，SKILL 只保留索引。\n\n| API | 说明文档 |\n|-----|----------|\n| `get_merchant_info` | [references/apis/get-merchant-info.md](./references/apis/get-merchant-info.md) |\n| `get_merchant_prepaid_account_list` | [references/apis/get-merchant-prepaid-account-list.md](./references/apis/get-merchant-prepaid-account-list.md) |\n| `get_merchant_warehouse_list` | [references/apis/get-merchant-warehouse-list.md](./references/apis/get-merchant-warehouse-list.md) |\n| `get_merchant_warehouse_location_list` | [references/apis/get-merchant-warehouse-location-list.md](./references/apis/get-merchant-warehouse-location-list.md) |\n| `get_shop_list_by_merchant` | [references/apis/get-shop-list-by-merchant.md](./references/apis/get-shop-list-by-merchant.md) |\n| `get_warehouse_eligible_shop_list` | [references/apis/get-warehouse-eligible-shop-list.md](./references/apis/get-warehouse-eligible-shop-list.md) |\n\n模块总览 / Feedback 见 [references/api.md](./references/api.md)。\n\n## Usage Scenarios\n\n### 1. 查商户信息与下属店铺\n1. auth skill 定位 `merchantId`\n2. `get_merchant_info.py`：name、region、currency、授权过期\n3. `get_shop_list_by_merchant.py`：`page_no=1`、`page_size=100`\n\n### 2. 仓库与预付账户\n- `get_merchant_warehouse_list.py` / `get_merchant_warehouse_location_list.py`\n- `get_warehouse_eligible_shop_list.py`\n- `get_merchant_prepaid_account_list.py`\n\n## 调用原则\n\n- 先看 **`developerProxy.httpStatus`**，再读 `*Response` 字段\n- GET：业务参数放 JSON 顶层（runner 拼 queryString）\n- 每个脚本 docstring 含 **官方文档 URL**（`module=93`）\n\n## Not Applicable\n\n- 店铺授权 → `linkfox-shopee-store-auth`\n- 单店信息 → `linkfox-shopee-store-shop`\n- 全球商品 → `linkfox-shopee-store-global-product`\n- 单店 listing → `linkfox-shopee-store-product`\n- 订单 → `linkfox-shopee-store-orders`\n- Public 模块（`get_merchants_by_partner` 等）→ 非本 skill\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-merchant\",\n  \"version\": \"1.0.5\",\n  \"publishedAt\": 1786719949671\n}\n\nFile v1.0.5:references/api.md\n\n# linkfox-shopee-store-merchant — 参数与字段参考\r\n\r\n> 单接口入参/响应说明已拆到 **`apis/`**（按 API 一份）；本文件保留模块总览与 Feedback。\r\nShopee **Merchant 模块**全部 6 个 API，经 **`POST /shopee/developerProxy`** 转发。\r\n\r\n授权见 **`linkfox-shopee-store-auth`**。官方索引：[v2.merchant.get_merchant_info](https://open.shopee.com/documents/v2/v2.merchant.get_merchant_info?module=93&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/merchant/...`\r\n- **标识**：Merchant 模块为**商户级** API，须传 **`merchantId`**\r\n- **适用对象**：主要为**跨境卖家**（CNSC/CBSC）；本地卖家通常不需要\r\n- **官方文档 URL 规则**：`https://open.shopee.com/documents/v2/v2.merchant.{api}?module=93&type=1`\r\n\r\n---\r\n\r\n## Merchant 模块总览\r\n\r\n| # | API | Method | path | 脚本 | 官方文档 |\r\n|---|-----|--------|------|------|----------|\r\n| 1 | get_merchant_info | GET | `api/v2/merchant/get_merchant_info` | `get_merchant_info.py` | [apis/get-merchant-info.md](./apis/get-merchant-info.md) |\r\n| 2 | get_merchant_prepaid_account_list | GET | `api/v2/merchant/get_merchant_prepaid_account_list` | `get_merchant_prepaid_account_list.py` | [apis/get-merchant-prepaid-account-list.md](./apis/get-merchant-prepaid-account-list.md) |\r\n| 3 | get_merchant_warehouse_list | GET | `api/v2/merchant/get_merchant_warehouse_list` | `get_merchant_warehouse_list.py` | [apis/get-merchant-warehouse-list.md](./apis/get-merchant-warehouse-list.md) |\r\n| 4 | get_merchant_warehouse_location_list | GET | `api/v2/merchant/get_merchant_warehouse_location_list` | `get_merchant_warehouse_location_list.py` | [apis/get-merchant-warehouse-location-list.md](./apis/get-merchant-warehouse-location-list.md) |\r\n| 5 | get_shop_list_by_merchant | GET | `api/v2/merchant/get_shop_list_by_merchant` | `get_shop_list_by_merchant.py` | [apis/get-shop-list-by-merchant.md](./apis/get-shop-list-by-merchant.md) |\r\n| 6 | get_warehouse_eligible_shop_list | GET | `api/v2/merchant/get_warehouse_eligible_shop_list` | `get_warehouse_eligible_shop_list.py` | [apis/get-warehouse-eligible-shop-list.md](./apis/get-warehouse-eligible-shop-list.md) |\r\n通用入口：`merchant_api.py`（JSON 含 `\"api\": \"<上表 API 名>\"`）。\r\n\r\n---\r\n\r\n## 接口说明\r\n\r\n### get_merchant_info\r\n\r\n[官方文档](https://open.shopee.com/documents/v2/v2.merchant.get_merchant_info?module=93&type=1)\r\n\r\n**Query**：无额外业务参数（公共参数含 merchant_id）\r\n\r\n**Response 要点**：`merchant_name`、`merchant_region`、`merchant_currency`、`auth_time`、`expire_time`、`is_cnsc`、`is_upgraded_cbsc`\r\n\r\n### get_shop_list_by_merchant\r\n\r\n[官方文档](https://open.shopee.com/documents/v2/v2.merchant.get_shop_list_by_merchant?module=93&type=1)\r\n\r\n**Query（必填）**：`page_no`（从 1 起）、`page_size`（最大 500）\r\n\r\n**Response 要点**：`shop_list[]`（`shop_id`、`sip_affi_shops` 等）、`more`、`is_cnsc`\r\n\r\n### get_merchant_warehouse_location_list / get_merchant_warehouse_list\r\n\r\n商户仓库位置与仓库列表。\r\n\r\n### get_warehouse_eligible_shop_list\r\n\r\n可使用仓库的店铺列表。\r\n\r\n### get_merchant_prepaid_account_list\r\n\r\n商户预付账户列表。\r\n\r\n---\r\n\r\n## 网关错误码\r\n\r\n| errcode | 含义 | 建议 |\r\n|---------|------|------|\r\n| 1002 | 参数/未登录 | 检查 merchantId 与 API Key |\r\n| 1003 | 代理/网络异常 | 重试 |\r\n| 1004 | 无授权记录 | auth skill |\r\n| 1005 | path 未白名单 | 确认 `api/v2/merchant/...` |\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\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/merchant/get_merchant_info\",\r\n    \"method\": \"GET\",\r\n    \"accessToken\": \"xxx\",\r\n    \"merchantId\": \"12345\"\r\n  }'\r\n\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/merchant/get_shop_list_by_merchant\",\r\n    \"method\": \"GET\",\r\n    \"accessToken\": \"xxx\",\r\n    \"merchantId\": \"12345\",\r\n    \"queryString\": \"page_no=1&page_size=100\"\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-merchant\",\"sentiment\":\"POSITIVE\",\r\n       \"category\":\"OTHER\",\"content\":\"商户信息查询正常\"}'\r\n```\n\nFile v1.0.5:references/apis/get-merchant-info.md\n\n# get_merchant_info\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/get_merchant_info.py` |\n| Method / path | GET `api/v2/merchant/get_merchant_info` |\n| 官方文档 | [get_merchant_info](https://open.shopee.com/documents/v2/v2.merchant.get_merchant_info?module=93&type=1) |\n| 用途 | Merchant name, region, currency, auth/expire time |\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：Merchant name, region, currency, auth/expire time\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/get_merchant_info.py '{\"shopId\": \"67890\"}'\n\n# 通用入口\npython scripts/merchant_api.py '{\"api\": \"get_merchant_info\", \"shopId\": \"67890\"}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`getMerchantInfo`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nFile v1.0.5:references/apis/get-merchant-prepaid-account-list.md\n\n# get_merchant_prepaid_account_list\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/get_merchant_prepaid_account_list.py` |\n| Method / path | GET `api/v2/merchant/get_merchant_prepaid_account_list` |\n| 官方文档 | [get_merchant_prepaid_account_list](https://open.shopee.com/documents/v2/v2.merchant.get_merchant_prepaid_account_list?module=93&type=1) |\n| 用途 | Merchant prepaid accounts |\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：Merchant prepaid accounts\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/get_merchant_prepaid_account_list.py '{\"shopId\": \"67890\"}'\n\n# 通用入口\npython scripts/merchant_api.py '{\"api\": \"get_merchant_prepaid_account_list\", \"shopId\": \"67890\"}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`getMerchantPrepaidAccountList`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nFile v1.0.5:references/apis/get-merchant-warehouse-list.md\n\n# get_merchant_warehouse_list\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/get_merchant_warehouse_list.py` |\n| Method / path | GET `api/v2/merchant/get_merchant_warehouse_list` |\n| 官方文档 | [get_merchant_warehouse_list](https://open.shopee.com/documents/v2/v2.merchant.get_merchant_warehouse_list?module=93&type=1) |\n| 用途 | Merchant warehouse list |\n\n经 **`POST /shopee/developerProxy`** 转发；依赖 **`linkfox-shopee-store-auth`** 选店（通常传 `shopId` 或 `merchantId`）。\n\n---\n\n## 脚本 JSON 入参\n\n| 字段 | 类型 | 必填 | 说明 |\n|------|------|------|------|\n| `shopId` | string | 与 `merchantId` 二选一 | 店铺 ID（推荐；Public 等无店铺接口可省略） |\n| `merchantId` | string | 与 `shopId` 二选一 | 商户 ID |\n\n- Method：**GET**\n- GET：业务字段放 JSON **顶层**，runner 拼进 `queryString`（不含 `?`）\n- `shopId` / `merchantId` / `skipDepCheck` 等为网关选店保留字段，不会进 Shopee query/body\n- Registry notes：Merchant warehouse list\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/get_merchant_warehouse_list.py '{\"shopId\": \"67890\"}'\n\n# 通用入口\npython scripts/merchant_api.py '{\"api\": \"get_merchant_warehouse_list\", \"shopId\": \"67890\"}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`getMerchantWarehouseList`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nFile v1.0.5:references/apis/get-merchant-warehouse-location-list.md\n\n# get_merchant_warehouse_location_list\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/get_merchant_warehouse_location_list.py` |\n| Method / path | GET `api/v2/merchant/get_merchant_warehouse_location_list` |\n| 官方文档 | [get_merchant_warehouse_location_list](https://open.shopee.com/documents/v2/v2.merchant.get_merchant_warehouse_location_list?module=93&type=1) |\n| 用途 | Merchant warehouse locations |\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：Merchant warehouse locations\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/get_merchant_warehouse_location_list.py '{\"shopId\": \"67890\"}'\n\n# 通用入口\npython scripts/merchant_api.py '{\"api\": \"get_merchant_warehouse_location_list\", \"shopId\": \"67890\"}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`getMerchantWarehouseLocationList`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nFile v1.0.5:references/apis/get-shop-list-by-merchant.md\n\n# get_shop_list_by_merchant\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/get_shop_list_by_merchant.py` |\n| Method / path | GET `api/v2/merchant/get_shop_list_by_merchant` |\n| 官方文档 | [get_shop_list_by_merchant](https://open.shopee.com/documents/v2/v2.merchant.get_shop_list_by_merchant?module=93&type=1) |\n| 用途 | Shops bound to merchant; page_size max 500 |\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| `page_size` | — | **是** | Query 必填（见 notes / 官方文档） |\n| `page_no` | — | **是** | Query 必填（见 notes / 官方文档） |\n\n- Method：**GET**\n- GET：业务字段放 JSON **顶层**，runner 拼进 `queryString`（不含 `?`）\n- `shopId` / `merchantId` / `skipDepCheck` 等为网关选店保留字段，不会进 Shopee query/body\n- Registry notes：Shops bound to merchant; page_size max 500\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/get_shop_list_by_merchant.py '{\"shopId\": \"67890\", \"page_no\": 1, \"page_size\": 20}'\n\n# 通用入口\npython scripts/merchant_api.py '{\"api\": \"get_shop_list_by_merchant\", \"shopId\": \"67890\", \"page_no\": 1, \"page_size\": 20}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`getShopListByMerchant`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nFile v1.0.5:references/apis/get-warehouse-eligible-shop-list.md\n\n# get_warehouse_eligible_shop_list\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/get_warehouse_eligible_shop_list.py` |\n| Method / path | GET `api/v2/merchant/get_warehouse_eligible_shop_list` |\n| 官方文档 | [get_warehouse_eligible_shop_list](https://open.shopee.com/documents/v2/v2.merchant.get_warehouse_eligible_shop_list?module=93&type=1) |\n| 用途 | Shops eligible for warehouse |\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：Shops eligible for warehouse\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/get_warehouse_eligible_shop_list.py '{\"shopId\": \"67890\"}'\n\n# 通用入口\npython scripts/merchant_api.py '{\"api\": \"get_warehouse_eligible_shop_list\", \"shopId\": \"67890\"}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`getWarehouseEligibleShopList`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nFile v1.0.5:references/onboarding.md\n\n# 解决认证和积分问题\n\n调用本 skill 时若网关返回 **auth** 或 **billing** 错误，走本 skill 自带的 `scripts/onboarding.py` 完成引导。\n\n**auth 场景**：`errcode=401` 或消息含 `authorized error`/`鉴权失败`/`未授权`/`unauthorized`；或 `LINKFOX_AGENT_API_KEY` 与 `LINKFOXAGENT_API_KEY` 均为空。\n1. 若已配置 key → 先让用户重启会话（最常见误判），仍失败让用户重新取 key 或换手机号重注册\n2. 未配置 → 询问：自助去 https://agent.linkfox.com/ 取 key，或提供手机号让脚本注册\n3. 手机号路径：\n   - `python scripts/onboarding.py send-code <phone>` → 展示 JSON 里的 phone/agreements\n   - 收到验证码后：`python scripts/onboarding.py login <phone> <code>`（workbuddy 宿主加 `--channel workbuddy`）\n   - 拿到 `api_key` 后把下面三平台配置转发给用户，提示重启会话生效：\n     - Windows PowerShell（永久）：`setx LINKFOX_AGENT_API_KEY \"<key>\"`\n     - macOS zsh：`echo 'export LINKFOX_AGENT_API_KEY=\"<key>\"' >> ~/.zshrc && source ~/.zshrc`\n     - Linux bash：`echo 'export LINKFOX_AGENT_API_KEY=\"<key>\"' >> ~/.bashrc && source ~/.bashrc`\n     - 变量名 `LINKFOX_AGENT_API_KEY`（主推）或 `LINKFOXAGENT_API_KEY`（老规范）任一即可\n\n**billing 场景**：`errcode=402` 或消息含 `积分/余额/quota/insufficient/充值/套餐到期`。\n- `python scripts/onboarding.py list-plans` → 有 AskUserQuestion 就弹菜单，否则输出编号清单让用户选\n- 校验 `plan_id` ∈ 清单、支付方式 ∈ 该套餐 `available_methods`（通常 `wechat/alipay`）\n- `python scripts/onboarding.py order <plan_id> <method>` → 展示优先级 PNG > `pay_url` > `ascii_qr`（标注兜底）\n- 已付款可选调 `python scripts/onboarding.py query <order_id>`，不主动轮询\n\n排除 `errcode=403`（无权限，不归入这两类）。所有子命令输出 stdout JSON，`error` 字段已含阶段前缀，透传给用户即可。完整用法：`python scripts/onboarding.py --help`。\n\nFile v1.0.5:skill-card.md\n\n## Description:\n\nHelps agents query Shopee cross-border merchant information through LinkFox, including merchant details, merchant shops, warehouse lists, warehouse locations, warehouse-eligible shops, and prepaid accounts.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[linkfox-ai](https://clawhub.ai/user/linkfox-ai)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nExternal developers and marketplace operators use this skill to inspect authorized Shopee cross-border merchant records, related shops, warehouse information, and prepaid account data. It is intended for workflows that already have LinkFox and Shopee authorization in place.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: The skill can handle LinkFox account onboarding, API-key setup, billing order creation, and payment QR display.\n\nMitigation: Use it only when those account and billing flows are expected, and review payment or credential prompts before acting on them.\n\nRisk: Merchant API responses and QR images may be persisted in the working directory.\n\nMitigation: Run the skill in a workspace where saved LinkFox response files and QR images will not be synced, shared, or committed.\n\nRisk: Endpoint environment variables can redirect LinkFox calls to alternate hosts.\n\nMitigation: Keep LinkFox endpoint environment variables unset or set only to trusted hosts before using the scripts.\n\n## Reference(s):\n\n- [ClawHub Skill Page](https://clawhub.ai/linkfox-ai/skills/linkfox-shopee-store-merchant)\n- [Shopee Merchant API: get_merchant_info](https://open.shopee.com/documents/v2/v2.merchant.get_merchant_info?module=93&type=1)\n- [Shopee Merchant API: get_shop_list_by_merchant](https://open.shopee.com/documents/v2/v2.merchant.get_shop_list_by_merchant?module=93&type=1)\n- [Shopee Merchant API: get_merchant_prepaid_account_list](https://open.shopee.com/documents/v2/v2.merchant.get_merchant_prepaid_account_list?module=93&type=1)\n- [Shopee Merchant API: get_merchant_warehouse_list](https://open.shopee.com/documents/v2/v2.merchant.get_merchant_warehouse_list?module=93&type=1)\n- [Shopee Merchant API: get_merchant_warehouse_location_list](https://open.shopee.com/documents/v2/v2.merchant.get_merchant_warehouse_location_list?module=93&type=1)\n- [Shopee Merchant API: get_warehouse_eligible_shop_list](https://open.shopee.com/documents/v2/v2.merchant.get_warehouse_eligible_shop_list?module=93&type=1)\n\n## Skill Output:\n\n**Output Type(s):** [text, markdown, code, shell commands, configuration, guidance, JSON files]\n\n**Output Format:** [Markdown guidance with shell commands and JSON API responses saved to local files]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [Scripts may print full JSON for smaller responses or a summary for larger responses while saving the complete response under the working directory.]\n\n## Skill Version(s):\n\n1.0.5 (source: server release metadata)\n\n## Ethical Considerations:\n\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.\n\nArchive v1.0.4: 23 files, 35646 bytes\n\nFiles: references/api.md (4805b), references/apis/get-merchant-info.md (1436b), references/apis/get-merchant-prepaid-account-list.md (1514b), references/apis/get-merchant-warehouse-list.md (1463b), references/apis/get-merchant-warehouse-location-list.md (1544b), references/apis/get-shop-list-by-merchant.md (1698b), references/apis/get-warehouse-eligible-shop-list.md (1512b), references/onboarding.md (2046b), scripts/_merchant_api_runner.py (4300b), scripts/_merchant_endpoints.py (2315b), scripts/_shopee_merchant_common.py (11952b), scripts/check_auth_dependency.py (3985b), scripts/get_merchant_info.py (693b), scripts/get_merchant_prepaid_account_list.py (789b), scripts/get_merchant_warehouse_list.py (753b), scripts/get_merchant_warehouse_location_list.py (807b), scripts/get_shop_list_by_merchant.py (741b), scripts/get_warehouse_eligible_shop_list.py (783b), scripts/merchant_api.py (1051b), scripts/onboarding.py (24089b), skill-card.md (3476b), SKILL.md (7078b), _meta.json (148b)\n\nFile v1.0.4:SKILL.md\n\n---\nname: linkfox-shopee-store-merchant\ndescription: Shopee（虾皮）跨境商户信息（与 linkfox-shopee-store-auth 同系列），经 /shopee/developerProxy 转发 Shopee Open API Merchant 模块全部 6 个接口：get_merchant_info、get_shop_list_by_merchant、get_merchant_warehouse_list、get_merchant_warehouse_location_list、get_warehouse_eligible_shop_list、get_merchant_prepaid_account_list。当用户提到 Shopee 商户、merchantId、跨境卖家、CNSC、商户下店铺列表、get_merchant_info、商户仓库、预付账户 时触发。即使未明确提及\"商户\"，只要涉及已授权 Shopee 跨境商户的信息查询或下属店铺列表，也应触发。\n---\n\n# Shopee 商户 Merchant\n\nShopee Open Platform **Merchant 模块**（6 个 API）。**依赖 `linkfox-shopee-store-auth`** 选店；经 **`POST /shopee/developerProxy`** 传入 `shopId`（或 `merchantId`），由服务端解析 token 转发（`path` 须 `api/v2/merchant/...`）。\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\nMerchant 模块索引：[v2.merchant.get_merchant_info](https://open.shopee.com/documents/v2/v2.merchant.get_merchant_info?module=93&type=1)\n\n---\n\n## Prerequisites（必须先读）\n\n1. 运行 `python scripts/check_auth_dependency.py`；exit code **42** → 先安装 **`linkfox-shopee-store-auth`** 并授权。\n2. **不要**在本 skill 内实现授权/令牌逻辑。\n3. Merchant 为**商户级** API，须传 **`merchantId`**；主要面向**跨境卖家**。\n\n---\n\n## Core Concepts\n\n- **转发链路**：`developerProxy`（`shopId`/`merchantId` 选店，服务端注入 token）→ 紫鸟 `shopee-proxy` → Shopee API\n- **商户 vs 店铺**：本 skill 查商户信息及下属店铺；单店资料见 `linkfox-shopee-store-shop`\n- **全球商品**：商户下全球 listing 见 `linkfox-shopee-store-global-product`\n- **典型用法**：`get_merchant_info` 确认 region/currency → `get_shop_list_by_merchant` 列出授权店铺\n\n## 可用脚本（Merchant 模块 6 个 API）\n\n| 脚本 | API | Method |\n|------|-----|--------|\n| `get_merchant_info.py` | get_merchant_info | GET |\n| `get_shop_list_by_merchant.py` | get_shop_list_by_merchant | GET |\n| `get_merchant_warehouse_location_list.py` | get_merchant_warehouse_location_list | GET |\n| `get_merchant_warehouse_list.py` | get_merchant_warehouse_list | GET |\n| `get_warehouse_eligible_shop_list.py` | get_warehouse_eligible_shop_list | GET |\n| `get_merchant_prepaid_account_list.py` | get_merchant_prepaid_account_list | GET |\n| `merchant_api.py` | 通用入口（JSON 含 `api` 字段） | — |\n\n共享：`_shopee_merchant_common.py`、`_merchant_endpoints.py`、`_merchant_api_runner.py`。\n\n## 接口说明（按 API）\n\n入参与响应细节放在 `references/apis/`，SKILL 只保留索引。\n\n| API | 说明文档 |\n|-----|----------|\n| `get_merchant_info` | [references/apis/get-merchant-info.md](./references/apis/get-merchant-info.md) |\n| `get_merchant_prepaid_account_list` | [references/apis/get-merchant-prepaid-account-list.md](./references/apis/get-merchant-prepaid-account-list.md) |\n| `get_merchant_warehouse_list` | [references/apis/get-merchant-warehouse-list.md](./references/apis/get-merchant-warehouse-list.md) |\n| `get_merchant_warehouse_location_list` | [references/apis/get-merchant-warehouse-location-list.md](./references/apis/get-merchant-warehouse-location-list.md) |\n| `get_shop_list_by_merchant` | [references/apis/get-shop-list-by-merchant.md](./references/apis/get-shop-list-by-merchant.md) |\n| `get_warehouse_eligible_shop_list` | [references/apis/get-warehouse-eligible-shop-list.md](./references/apis/get-warehouse-eligible-shop-list.md) |\n\n模块总览 / Feedback 见 [references/api.md](./references/api.md)。\n\n## Usage Scenarios\n\n### 1. 查商户信息与下属店铺\n1. auth skill 定位 `merchantId`\n2. `get_merchant_info.py`：name、region、currency、授权过期\n3. `get_shop_list_by_merchant.py`：`page_no=1`、`page_size=100`\n\n### 2. 仓库与预付账户\n- `get_merchant_warehouse_list.py` / `get_merchant_warehouse_location_list.py`\n- `get_warehouse_eligible_shop_list.py`\n- `get_merchant_prepaid_account_list.py`\n\n## 调用原则\n\n- 先看 **`developerProxy.httpStatus`**，再读 `*Response` 字段\n- GET：业务参数放 JSON 顶层（runner 拼 queryString）\n- 每个脚本 docstring 含 **官方文档 URL**（`module=93`）\n\n## Not Applicable\n\n- 店铺授权 → `linkfox-shopee-store-auth`\n- 单店信息 → `linkfox-shopee-store-shop`\n- 全球商品 → `linkfox-shopee-store-global-product`\n- 单店 listing → `linkfox-shopee-store-product`\n- 订单 → `linkfox-shopee-store-orders`\n- Public 模块（`get_merchants_by_partner` 等）→ 非本 skill\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-merchant\",\n  \"version\": \"1.0.4\",\n  \"publishedAt\": 1786100679764\n}\n\nFile v1.0.4:references/api.md\n\n# linkfox-shopee-store-merchant — 参数与字段参考\r\n\r\n> 单接口入参/响应说明已拆到 **`apis/`**（按 API 一份）；本文件保留模块总览与 Feedback。\r\nShopee **Merchant 模块**全部 6 个 API，经 **`POST /shopee/developerProxy`** 转发。\r\n\r\n授权见 **`linkfox-shopee-store-auth`**。官方索引：[v2.merchant.get_merchant_info](https://open.shopee.com/documents/v2/v2.merchant.get_merchant_info?module=93&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/merchant/...`\r\n- **标识**：Merchant 模块为**商户级** API，须传 **`merchantId`**\r\n- **适用对象**：主要为**跨境卖家**（CNSC/CBSC）；本地卖家通常不需要\r\n- **官方文档 URL 规则**：`https://open.shopee.com/documents/v2/v2.merchant.{api}?module=93&type=1`\r\n\r\n---\r\n\r\n## Merchant 模块总览\r\n\r\n| # | API | Method | path | 脚本 | 官方文档 |\r\n|---|-----|--------|------|------|----------|\r\n| 1 | get_merchant_info | GET | `api/v2/merchant/get_merchant_info` | `get_merchant_info.py` | [apis/get-merchant-info.md](./apis/get-merchant-info.md) |\r\n| 2 | get_merchant_prepaid_account_list | GET | `api/v2/merchant/get_merchant_prepaid_account_list` | `get_merchant_prepaid_account_list.py` | [apis/get-merchant-prepaid-account-list.md](./apis/get-merchant-prepaid-account-list.md) |\r\n| 3 | get_merchant_warehouse_list | GET | `api/v2/merchant/get_merchant_warehouse_list` | `get_merchant_warehouse_list.py` | [apis/get-merchant-warehouse-list.md](./apis/get-merchant-warehouse-list.md) |\r\n| 4 | get_merchant_warehouse_location_list | GET | `api/v2/merchant/get_merchant_warehouse_location_list` | `get_merchant_warehouse_location_list.py` | [apis/get-merchant-warehouse-location-list.md](./apis/get-merchant-warehouse-location-list.md) |\r\n| 5 | get_shop_list_by_merchant | GET | `api/v2/merchant/get_shop_list_by_merchant` | `get_shop_list_by_merchant.py` | [apis/get-shop-list-by-merchant.md](./apis/get-shop-list-by-merchant.md) |\r\n| 6 | get_warehouse_eligible_shop_list | GET | `api/v2/merchant/get_warehouse_eligible_shop_list` | `get_warehouse_eligible_shop_list.py` | [apis/get-warehouse-eligible-shop-list.md](./apis/get-warehouse-eligible-shop-list.md) |\r\n通用入口：`merchant_api.py`（JSON 含 `\"api\": \"<上表 API 名>\"`）。\r\n\r\n---\r\n\r\n## 接口说明\r\n\r\n### get_merchant_info\r\n\r\n[官方文档](https://open.shopee.com/documents/v2/v2.merchant.get_merchant_info?module=93&type=1)\r\n\r\n**Query**：无额外业务参数（公共参数含 merchant_id）\r\n\r\n**Response 要点**：`merchant_name`、`merchant_region`、`merchant_currency`、`auth_time`、`expire_time`、`is_cnsc`、`is_upgraded_cbsc`\r\n\r\n### get_shop_list_by_merchant\r\n\r\n[官方文档](https://open.shopee.com/documents/v2/v2.merchant.get_shop_list_by_merchant?module=93&type=1)\r\n\r\n**Query（必填）**：`page_no`（从 1 起）、`page_size`（最大 500）\r\n\r\n**Response 要点**：`shop_list[]`（`shop_id`、`sip_affi_shops` 等）、`more`、`is_cnsc`\r\n\r\n### get_merchant_warehouse_location_list / get_merchant_warehouse_list\r\n\r\n商户仓库位置与仓库列表。\r\n\r\n### get_warehouse_eligible_shop_list\r\n\r\n可使用仓库的店铺列表。\r\n\r\n### get_merchant_prepaid_account_list\r\n\r\n商户预付账户列表。\r\n\r\n---\r\n\r\n## 网关错误码\r\n\r\n| errcode | 含义 | 建议 |\r\n|---------|------|------|\r\n| 1002 | 参数/未登录 | 检查 merchantId 与 API Key |\r\n| 1003 | 代理/网络异常 | 重试 |\r\n| 1004 | 无授权记录 | auth skill |\r\n| 1005 | path 未白名单 | 确认 `api/v2/merchant/...` |\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\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/merchant/get_merchant_info\",\r\n    \"method\": \"GET\",\r\n    \"accessToken\": \"xxx\",\r\n    \"merchantId\": \"12345\"\r\n  }'\r\n\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/merchant/get_shop_list_by_merchant\",\r\n    \"method\": \"GET\",\r\n    \"accessToken\": \"xxx\",\r\n    \"merchantId\": \"12345\",\r\n    \"queryString\": \"page_no=1&page_size=100\"\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-merchant\",\"sentiment\":\"POSITIVE\",\r\n       \"category\":\"OTHER\",\"content\":\"商户信息查询正常\"}'\r\n```\n\nFile v1.0.4:references/apis/get-merchant-info.md\n\n# get_merchant_info\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/get_merchant_info.py` |\n| Method / path | GET `api/v2/merchant/get_merchant_info` |\n| 官方文档 | [get_merchant_info](https://open.shopee.com/documents/v2/v2.merchant.get_merchant_info?module=93&type=1) |\n| 用途 | Merchant name, region, currency, auth/expire time |\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：Merchant name, region, currency, auth/expire time\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/get_merchant_info.py '{\"shopId\": \"67890\"}'\n\n# 通用入口\npython scripts/merchant_api.py '{\"api\": \"get_merchant_info\", \"shopId\": \"67890\"}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`getMerchantInfo`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nFile v1.0.4:references/apis/get-merchant-prepaid-account-list.md\n\n# get_merchant_prepaid_account_list\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/get_merchant_prepaid_account_list.py` |\n| Method / path | GET `api/v2/merchant/get_merchant_prepaid_account_list` |\n| 官方文档 | [get_merchant_prepaid_account_list](https://open.shopee.com/documents/v2/v2.merchant.get_merchant_prepaid_account_list?module=93&type=1) |\n| 用途 | Merchant prepaid accounts |\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：Merchant prepaid accounts\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/get_merchant_prepaid_account_list.py '{\"shopId\": \"67890\"}'\n\n# 通用入口\npython scripts/merchant_api.py '{\"api\": \"get_merchant_prepaid_account_list\", \"shopId\": \"67890\"}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`getMerchantPrepaidAccountList`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nFile v1.0.4:references/apis/get-merchant-warehouse-list.md\n\n# get_merchant_warehouse_list\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/get_merchant_warehouse_list.py` |\n| Method / path | GET `api/v2/merchant/get_merchant_warehouse_list` |\n| 官方文档 | [get_merchant_warehouse_list](https://open.shopee.com/documents/v2/v2.merchant.get_merchant_warehouse_list?module=93&type=1) |\n| 用途 | Merchant warehouse list |\n\n经 **`POST /shopee/developerProxy`** 转发；依赖 **`linkfox-shopee-store-auth`** 选店（通常传 `shopId` 或 `merchantId`）。\n\n---\n\n## 脚本 JSON 入参\n\n| 字段 | 类型 | 必填 | 说明 |\n|------|------|------|------|\n| `shopId` | string | 与 `merchantId` 二选一 | 店铺 ID（推荐；Public 等无店铺接口可省略） |\n| `merchantId` | string | 与 `shopId` 二选一 | 商户 ID |\n\n- Method：**GET**\n- GET：业务字段放 JSON **顶层**，runner 拼进 `queryString`（不含 `?`）\n- `shopId` / `merchantId` / `skipDepCheck` 等为网关选店保留字段，不会进 Shopee query/body\n- Registry notes：Merchant warehouse list\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/get_merchant_warehouse_list.py '{\"shopId\": \"67890\"}'\n\n# 通用入口\npython scripts/merchant_api.py '{\"api\": \"get_merchant_warehouse_list\", \"shopId\": \"67890\"}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`getMerchantWarehouseList`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nFile v1.0.4:references/apis/get-merchant-warehouse-location-list.md\n\n# get_merchant_warehouse_location_list\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/get_merchant_warehouse_location_list.py` |\n| Method / path | GET `api/v2/merchant/get_merchant_warehouse_location_list` |\n| 官方文档 | [get_merchant_warehouse_location_list](https://open.shopee.com/documents/v2/v2.merchant.get_merchant_warehouse_location_list?module=93&type=1) |\n| 用途 | Merchant warehouse locations |\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：Merchant warehouse locations\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/get_merchant_warehouse_location_list.py '{\"shopId\": \"67890\"}'\n\n# 通用入口\npython scripts/merchant_api.py '{\"api\": \"get_merchant_warehouse_location_list\", \"shopId\": \"67890\"}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`getMerchantWarehouseLocationList`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nFile v1.0.4:references/apis/get-shop-list-by-merchant.md\n\n# get_shop_list_by_merchant\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/get_shop_list_by_merchant.py` |\n| Method / path | GET `api/v2/merchant/get_shop_list_by_merchant` |\n| 官方文档 | [get_shop_list_by_merchant](https://open.shopee.com/documents/v2/v2.merchant.get_shop_list_by_merchant?module=93&type=1) |\n| 用途 | Shops bound to merchant; page_size max 500 |\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| `page_size` | — | **是** | Query 必填（见 notes / 官方文档） |\n| `page_no` | — | **是** | Query 必填（见 notes / 官方文档） |\n\n- Method：**GET**\n- GET：业务字段放 JSON **顶层**，runner 拼进 `queryString`（不含 `?`）\n- `shopId` / `merchantId` / `skipDepCheck` 等为网关选店保留字段，不会进 Shopee query/body\n- Registry notes：Shops bound to merchant; page_size max 500\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/get_shop_list_by_merchant.py '{\"shopId\": \"67890\", \"page_no\": 1, \"page_size\": 20}'\n\n# 通用入口\npython scripts/merchant_api.py '{\"api\": \"get_shop_list_by_merchant\", \"shopId\": \"67890\", \"page_no\": 1, \"page_size\": 20}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`getShopListByMerchant`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nFile v1.0.4:references/apis/get-warehouse-eligible-shop-list.md\n\n# get_warehouse_eligible_shop_list\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/get_warehouse_eligible_shop_list.py` |\n| Method / path | GET `api/v2/merchant/get_warehouse_eligible_shop_list` |\n| 官方文档 | [get_warehouse_eligible_shop_list](https://open.shopee.com/documents/v2/v2.merchant.get_warehouse_eligible_shop_list?module=93&type=1) |\n| 用途 | Shops eligible for warehouse |\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：Shops eligible for warehouse\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/get_warehouse_eligible_shop_list.py '{\"shopId\": \"67890\"}'\n\n# 通用入口\npython scripts/merchant_api.py '{\"api\": \"get_warehouse_eligible_shop_list\", \"shopId\": \"67890\"}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`getWarehouseEligibleShopList`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nFile v1.0.4:references/onboarding.md\n\n# 解决认证和积分问题\n\n调用本 skill 时若网关返回 **auth** 或 **billing** 错误，走本 skill 自带的 `scripts/onboarding.py` 完成引导。\n\n**auth 场景**：`errcode=401` 或消息含 `authorized error`/`鉴权失败`/`未授权`/`unauthorized`；或 `LINKFOX_AGENT_API_KEY` 与 `LINKFOXAGENT_API_KEY` 均为空。\n1. 若已配置 key → 先让用户重启会话（最常见误判），仍失败让用户重新取 key 或换手机号重注册\n2. 未配置 → 询问：自助去 https://agent.linkfox.com/ 取 key，或提供手机号让脚本注册\n3. 手机号路径：\n   - `python scripts/onboarding.py send-code <phone>` → 展示 JSON 里的 phone/agreements\n   - 收到验证码后：`python scripts/onboarding.py login <phone> <code>`（workbuddy 宿主加 `--channel workbuddy`）\n   - 拿到 `api_key` 后把下面三平台配置转发给用户，提示重启会话生效：\n     - Windows PowerShell（永久）：`setx LINKFOX_AGENT_API_KEY \"<key>\"`\n     - macOS zsh：`echo 'export LINKFOX_AGENT_API_KEY=\"<key>\"' >> ~/.zshrc && source ~/.zshrc`\n     - Linux bash：`echo 'export LINKFOX_AGENT_API_KEY=\"<key>\"' >> ~/.bashrc && source ~/.bashrc`\n     - 变量名 `LINKFOX_AGENT_API_KEY`（主推）或 `LINKFOXAGENT_API_KEY`（老规范）任一即可\n\n**billing 场景**：`errcode=402` 或消息含 `积分/余额/quota/insufficient/充值/套餐到期`。\n- `python scripts/onboarding.py list-plans` → 有 AskUserQuestion 就弹菜单，否则输出编号清单让用户选\n- 校验 `plan_id` ∈ 清单、支付方式 ∈ 该套餐 `available_methods`（通常 `wechat/alipay`）\n- `python scripts/onboarding.py order <plan_id> <method>` → 展示优先级 PNG > `pay_url` > `ascii_qr`（标注兜底）\n- 已付款可选调 `python scripts/onboarding.py query <order_id>`，不主动轮询\n\n排除 `errcode=403`（无权限，不归入这两类）。所有子命令输出 stdout JSON，`error` 字段已含阶段前缀，透传给用户即可。完整用法：`python scripts/onboarding.py --help`。\n\nFile v1.0.4:skill-card.md\n\n## Description:\n\nHelps agents query authorized Shopee cross-border merchant information through LinkFox, including merchant profile, shops under a merchant, warehouse data, warehouse-eligible shops, and prepaid accounts.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[linkfox-ai](https://clawhub.ai/user/linkfox-ai)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nExternal developers and ecommerce operators use this skill to retrieve authorized Shopee cross-border merchant, shop, warehouse, and prepaid-account information from the Merchant module. It is intended for workflows that already have LinkFox API credentials and an authorized Shopee merchant or shop identifier.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: The skill can access LinkFox and Shopee merchant credentials and authorized merchant data.\n\nMitigation: Use it only with intended accounts, provide credentials through environment variables, and avoid sharing API keys or merchant identifiers in public transcripts.\n\nRisk: Full merchant API responses may be stored locally and can contain merchant, shop, warehouse, account, or billing-related details.\n\nMitigation: Review saved linkfox session files before sharing workspaces and remove local response files when they are no longer needed.\n\nRisk: The onboarding flow can handle phone or SMS login, generate API keys, list paid plans, and create payment orders.\n\nMitigation: Confirm login, API-key generation, plan selection, and payment or QR-code steps explicitly with the user before running onboarding commands.\n\n## Reference(s):\n\n- [ClawHub skill page](https://clawhub.ai/linkfox-ai/skills/linkfox-shopee-store-merchant)\n- [Artifact API reference](artifact/references/api.md)\n- [Onboarding and billing guidance](artifact/references/onboarding.md)\n- [Shopee get_merchant_info documentation](https://open.shopee.com/documents/v2/v2.merchant.get_merchant_info?module=93&type=1)\n- [Shopee get_shop_list_by_merchant documentation](https://open.shopee.com/documents/v2/v2.merchant.get_shop_list_by_merchant?module=93&type=1)\n- [Shopee get_merchant_warehouse_list documentation](https://open.shopee.com/documents/v2/v2.merchant.get_merchant_warehouse_list?module=93&type=1)\n- [Shopee get_merchant_warehouse_location_list documentation](https://open.shopee.com/documents/v2/v2.merchant.get_merchant_warehouse_location_list?module=93&type=1)\n- [Shopee get_warehouse_eligible_shop_list documentation](https://open.shopee.com/documents/v2/v2.merchant.get_warehouse_eligible_shop_list?module=93&type=1)\n- [Shopee get_merchant_prepaid_account_list documentation](https://open.shopee.com/documents/v2/v2.merchant.get_merchant_prepaid_account_list?module=93&type=1)\n\n## Skill Output:\n\n**Output Type(s):** [JSON, Files, Shell commands, Guidance]\n\n**Output Format:** [JSON responses and Markdown guidance with shell command examples]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [Merchant API calls require LinkFox API credentials and a shopId or merchantId; the generic runner can save full JSON responses under a linkfox session data directory.]\n\n## Skill Version(s):\n\n1.0.4 (source: server release evidence)\n\n## Ethical Considerations:\n\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.\n\nArchive v1.0.3: 15 files, 19615 bytes\n\nFiles: references/api.md (4930b), scripts/_merchant_api_runner.py (4287b), scripts/_merchant_endpoints.py (2315b), scripts/_shopee_merchant_common.py (11760b), scripts/check_auth_dependency.py (3985b), scripts/get_merchant_info.py (732b), scripts/get_merchant_prepaid_account_list.py (828b), scripts/get_merchant_warehouse_list.py (792b), scripts/get_merchant_warehouse_location_list.py (846b), scripts/get_shop_list_by_merchant.py (780b), scripts/get_warehouse_eligible_shop_list.py (822b), scripts/merchant_api.py (1051b), skill-card.md (3153b), SKILL.md (6555b), _meta.json (148b)\n\nFile v1.0.3:SKILL.md\n\n---\nname: linkfox-shopee-store-merchant\ndescription: Shopee（虾皮）跨境商户信息（与 linkfox-shopee-store-auth 同系列），经 /shopee/developerProxy 转发 Shopee Open API Merchant 模块全部 6 个接口：get_merchant_info、get_shop_list_by_merchant、get_merchant_warehouse_list、get_merchant_warehouse_location_list、get_warehouse_eligible_shop_list、get_merchant_prepaid_account_list。当用户提到 Shopee 商户、merchantId、跨境卖家、CNSC、商户下店铺列表、get_merchant_info、商户仓库、预付账户 时触发。即使未明确提及\"商户\"，只要涉及已授权 Shopee 跨境商户的信息查询或下属店铺列表，也应触发。\n---\n\n# Shopee 商户 Merchant\n\nShopee Open Platform **Merchant 模块**（6 个 API）。**依赖 `linkfox-shopee-store-auth`**：先取 `accessToken`，再经 **`POST /shopee/developerProxy`** 转发（`path` 须 `api/v2/merchant/...`）。\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\nMerchant 模块索引：[v2.merchant.get_merchant_info](https://open.shopee.com/documents/v2/v2.merchant.get_merchant_info?module=93&type=1)\n\n---\n\n## Prerequisites（必须先读）\n\n1. 运行 `python scripts/check_auth_dependency.py`；exit code **42** → 先安装 **`linkfox-shopee-store-auth`** 并授权。\n2. **不要**在本 skill 内实现授权/令牌逻辑。\n3. Merchant 为**商户级** API，须传 **`merchantId`**；主要面向**跨境卖家**。\n\n---\n\n## Core Concepts\n\n- **转发链路**：`storeTokens` → `developerProxy` → 紫鸟 `shopee-proxy` → Shopee API\n- **商户 vs 店铺**：本 skill 查商户信息及下属店铺；单店资料见 `linkfox-shopee-store-shop`\n- **全球商品**：商户下全球 listing 见 `linkfox-shopee-store-global-product`\n- **典型用法**：`get_merchant_info` 确认 region/currency → `get_shop_list_by_merchant` 列出授权店铺\n\n## 可用脚本（Merchant 模块 6 个 API）\n\n| 脚本 | API | Method |\n|------|-----|--------|\n| `get_merchant_info.py` | get_merchant_info | GET |\n| `get_shop_list_by_merchant.py` | get_shop_list_by_merchant | GET |\n| `get_merchant_warehouse_location_list.py` | get_merchant_warehouse_location_list | GET |\n| `get_merchant_warehouse_list.py` | get_merchant_warehouse_list | GET |\n| `get_warehouse_eligible_shop_list.py` | get_warehouse_eligible_shop_list | GET |\n| `get_merchant_prepaid_account_list.py` | get_merchant_prepaid_account_list | GET |\n| `merchant_api.py` | 通用入口（JSON 含 `api` 字段） | — |\n\n共享：`_shopee_merchant_common.py`、`_merchant_endpoints.py`、`_merchant_api_runner.py`。\n\n## Usage Scenarios\n\n### 1. 查商户信息与下属店铺\n1. auth skill 定位 `merchantId`\n2. `get_merchant_info.py`：name、region、currency、授权过期\n3. `get_shop_list_by_merchant.py`：`page_no=1`、`page_size=100`\n\n### 2. 仓库与预付账户\n- `get_merchant_warehouse_list.py` / `get_merchant_warehouse_location_list.py`\n- `get_warehouse_eligible_shop_list.py`\n- `get_merchant_prepaid_account_list.py`\n\n## 调用原则\n\n- 先看 **`developerProxy.httpStatus`**，再读 `*Response` 字段\n- GET：业务参数放 JSON 顶层（runner 拼 queryString）\n- 每个脚本 docstring 含 **官方文档 URL**（`module=93`）\n\n## Not Applicable\n\n- 店铺授权 → `linkfox-shopee-store-auth`\n- 单店信息 → `linkfox-shopee-store-shop`\n- 全球商品 → `linkfox-shopee-store-global-product`\n- 单店 listing → `linkfox-shopee-store-product`\n- 订单 → `linkfox-shopee-store-orders`\n- Public 模块（`get_merchants_by_partner` 等）→ 非本 skill\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-merchant\",\n  \"version\": \"1.0.3\",\n  \"publishedAt\": 1783945390760\n}\n\nFile v1.0.3:references/api.md\n\n# linkfox-shopee-store-merchant — 参数与字段参考\r\n\r\nShopee **Merchant 模块**全部 6 个 API，经 **`POST /shopee/developerProxy`** 转发。\r\n\r\n授权见 **`linkfox-shopee-store-auth`**。官方索引：[v2.merchant.get_merchant_info](https://open.shopee.com/documents/v2/v2.merchant.get_merchant_info?module=93&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/merchant/...`\r\n- **标识**：Merchant 模块为**商户级** API，须传 **`merchantId`**\r\n- **适用对象**：主要为**跨境卖家**（CNSC/CBSC）；本地卖家通常不需要\r\n- **官方文档 URL 规则**：`https://open.shopee.com/documents/v2/v2.merchant.{api}?module=93&type=1`\r\n\r\n---\r\n\r\n## Merchant 模块总览\r\n\r\n| # | API | Method | path | 脚本 | 官方文档 |\r\n|---|-----|--------|------|------|----------|\r\n| 1 | get_merchant_info | GET | `api/v2/merchant/get_merchant_info` | `get_merchant_info.py` | [doc](https://open.shopee.com/documents/v2/v2.merchant.get_merchant_info?module=93&type=1) |\r\n| 2 | get_merchant_prepaid_account_list | GET | `api/v2/merchant/get_merchant_prepaid_account_list` | `get_merchant_prepaid_account_list.py` | [doc](https://open.shopee.com/documents/v2/v2.merchant.get_merchant_prepaid_account_list?module=93&type=1) |\r\n| 3 | get_merchant_warehouse_list | GET | `api/v2/merchant/get_merchant_warehouse_list` | `get_merchant_warehouse_list.py` | [doc](https://open.shopee.com/documents/v2/v2.merchant.get_merchant_warehouse_list?module=93&type=1) |\r\n| 4 | get_merchant_warehouse_location_list | GET | `api/v2/merchant/get_merchant_warehouse_location_list` | `get_merchant_warehouse_location_list.py` | [doc](https://open.shopee.com/documents/v2/v2.merchant.get_merchant_warehouse_location_list?module=93&type=1) |\r\n| 5 | get_shop_list_by_merchant | GET | `api/v2/merchant/get_shop_list_by_merchant` | `get_shop_list_by_merchant.py` | [doc](https://open.shopee.com/documents/v2/v2.merchant.get_shop_list_by_merchant?module=93&type=1) |\r\n| 6 | get_warehouse_eligible_shop_list | GET | `api/v2/merchant/get_warehouse_eligible_shop_list` | `get_warehouse_eligible_shop_list.py` | [doc](https://open.shopee.com/documents/v2/v2.merchant.get_warehouse_eligible_shop_list?module=93&type=1) |\r\n通用入口：`merchant_api.py`（JSON 含 `\"api\": \"<上表 API 名>\"`）。\r\n\r\n---\r\n\r\n## 接口说明\r\n\r\n### get_merchant_info\r\n\r\n[官方文档](https://open.shopee.com/documents/v2/v2.merchant.get_merchant_info?module=93&type=1)\r\n\r\n**Query**：无额外业务参数（公共参数含 merchant_id）\r\n\r\n**Response 要点**：`merchant_name`、`merchant_region`、`merchant_currency`、`auth_time`、`expire_time`、`is_cnsc`、`is_upgraded_cbsc`\r\n\r\n### get_shop_list_by_merchant\r\n\r\n[官方文档](https://open.shopee.com/documents/v2/v2.merchant.get_shop_list_by_merchant?module=93&type=1)\r\n\r\n**Query（必填）**：`page_no`（从 1 起）、`page_size`（最大 500）\r\n\r\n**Response 要点**：`shop_list[]`（`shop_id`、`sip_affi_shops` 等）、`more`、`is_cnsc`\r\n\r\n### get_merchant_warehouse_location_list / get_merchant_warehouse_list\r\n\r\n商户仓库位置与仓库列表。\r\n\r\n### get_warehouse_eligible_shop_list\r\n\r\n可使用仓库的店铺列表。\r\n\r\n### get_merchant_prepaid_account_list\r\n\r\n商户预付账户列表。\r\n\r\n---\r\n\r\n## 网关错误码\r\n\r\n| errcode | 含义 | 建议 |\r\n|---------|------|------|\r\n| 1002 | 参数/未登录 | 检查 merchantId 与 API Key |\r\n| 1003 | 代理/网络异常 | 重试 |\r\n| 1004 | 无授权记录 | auth skill |\r\n| 1005 | path 未白名单 | 确认 `api/v2/merchant/...` |\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\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/merchant/get_merchant_info\",\r\n    \"method\": \"GET\",\r\n    \"accessToken\": \"xxx\",\r\n    \"merchantId\": \"12345\"\r\n  }'\r\n\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/merchant/get_shop_list_by_merchant\",\r\n    \"method\": \"GET\",\r\n    \"accessToken\": \"xxx\",\r\n    \"merchantId\": \"12345\",\r\n    \"queryString\": \"page_no=1&page_size=100\"\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-merchant\",\"sentiment\":\"POSITIVE\",\r\n       \"category\":\"OTHER\",\"content\":\"商户信息查询正常\"}'\r\n```\n\nFile v1.0.3:skill-card.md\n\n## Description: <br>\nHelps agents query authorized Shopee cross-border merchant information, shop lists, warehouse data, eligible shops, and prepaid accounts through LinkFox's Shopee Merchant API tools. <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>\nDevelopers and commerce operators use this skill to retrieve Shopee merchant profile details, linked shops, warehouse information, and prepaid account data for authorized cross-border seller accounts. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: Complete Shopee merchant API responses may be saved locally and can contain sensitive account or store data. <br>\nMitigation: Install only where local retention is acceptable, review and manage generated linkfox data directories, and avoid highly sensitive accounts unless this storage is approved. <br>\nRisk: The skill uses LinkFox/Shopee merchant credentials and may involve point consumption for repeated API calls. <br>\nMitigation: Use appropriate credentials, confirm point consumption before repeated calls, and avoid automated retries or broad probing. <br>\n\n\n## Reference(s): <br>\n- [Skill API Reference](references/api.md) <br>\n- [Shopee Merchant get_merchant_info](https://open.shopee.com/documents/v2/v2.merchant.get_merchant_info?module=93&type=1) <br>\n- [Shopee Merchant get_shop_list_by_merchant](https://open.shopee.com/documents/v2/v2.merchant.get_shop_list_by_merchant?module=93&type=1) <br>\n- [Shopee Merchant get_merchant_warehouse_list](https://open.shopee.com/documents/v2/v2.merchant.get_merchant_warehouse_list?module=93&type=1) <br>\n- [Shopee Merchant get_merchant_warehouse_location_list](https://open.shopee.com/documents/v2/v2.merchant.get_merchant_warehouse_location_list?module=93&type=1) <br>\n- [Shopee Merchant get_warehouse_eligible_shop_list](https://open.shopee.com/documents/v2/v2.merchant.get_warehouse_eligible_shop_list?module=93&type=1) <br>\n- [Shopee Merchant get_merchant_prepaid_account_list](https://open.shopee.com/documents/v2/v2.merchant.get_merchant_prepaid_account_list?module=93&type=1) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [text, JSON, shell commands, guidance] <br>\n**Output Format:** [Markdown guidance with inline shell commands; scripts emit JSON responses or summaries and save full responses as local JSON files.] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [Requires LinkFox/Shopee merchant credentials. Evidence indicates complete merchant API responses may be saved locally, so users should manage generated linkfox data directories and clarify point consumption before repeated calls.] <br>\n\n## Skill Version(s): <br>\n1.0.3 (source: server release evidence) <br>\n\n## Ethical Considerations: <br>\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment. <br>\n\nArchive v1.0.2: 15 files, 19158 bytes\n\nFiles: references/api.md (4853b), scripts/_merchant_api_runner.py (4287b), scripts/_merchant_endpoints.py (2315b), scripts/_shopee_merchant_common.py (11661b), scripts/check_auth_dependency.py (3985b), scripts/get_merchant_info.py (732b), scripts/get_merchant_prepaid_account_list.py (828b), scripts/get_merchant_warehouse_list.py (792b), scripts/get_merchant_warehouse_location_list.py (846b), scripts/get_shop_list_by_merchant.py (780b), scripts/get_warehouse_eligible_shop_list.py (822b), scripts/merchant_api.py (1051b), skill-card.md (3743b), SKILL.md (5519b), _meta.json (148b)\n\nFile v1.0.2:SKILL.md\n\n---\r\nname: linkfox-shopee-store-merchant\r\ndescription: Shopee（虾皮）跨境商户信息（与 linkfox-shopee-store-auth 同系列），经 /shopee/developerProxy 转发 Shopee Open API Merchant 模块全部 6 个接口：get_merchant_info、get_shop_list_by_merchant、get_merchant_warehouse_list、get_merchant_warehouse_location_list、get_warehouse_eligible_shop_list、get_merchant_prepaid_account_list。当用户提到 Shopee 商户、merchantId、跨境卖家、CNSC、商户下店铺列表、get_merchant_info、商户仓库、预付账户 时触发。即使未明确提及\"商户\"，只要涉及已授权 Shopee 跨境商户的信息查询或下属店铺列表，也应触发。\r\n---\r\n\r\n# Shopee 商户 Merchant\r\n\r\nShopee Open Platform **Merchant 模块**（6 个 API）。**依赖 `linkfox-shopee-store-auth`**：先取 `accessToken`，再经 **`POST /shopee/developerProxy`** 转发（`path` 须 `api/v2/merchant/...`）。\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\nMerchant 模块索引：[v2.merchant.get_merchant_info](https://open.shopee.com/documents/v2/v2.merchant.get_merchant_info?module=93&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\n3. Merchant 为**商户级** API，须传 **`merchantId`**；主要面向**跨境卖家**。\r\n\r\n---\r\n\r\n## Core Concepts\r\n\r\n- **转发链路**：`storeTokens` → `developerProxy` → 紫鸟 `shopee-proxy` → Shopee API\r\n- **商户 vs 店铺**：本 skill 查商户信息及下属店铺；单店资料见 `linkfox-shopee-store-shop`\r\n- **全球商品**：商户下全球 listing 见 `linkfox-shopee-store-global-product`\r\n- **典型用法**：`get_merchant_info` 确认 region/currency → `get_shop_list_by_merchant` 列出授权店铺\r\n\r\n## 可用脚本（Merchant 模块 6 个 API）\r\n\r\n| 脚本 | API | Method |\r\n|------|-----|--------|\r\n| `get_merchant_info.py` | get_merchant_info | GET |\r\n| `get_shop_list_by_merchant.py` | get_shop_list_by_merchant | GET |\r\n| `get_merchant_warehouse_location_list.py` | get_merchant_warehouse_location_list | GET |\r\n| `get_merchant_warehouse_list.py` | get_merchant_warehouse_list | GET |\r\n| `get_warehouse_eligible_shop_list.py` | get_warehouse_eligible_shop_list | GET |\r\n| `get_merchant_prepaid_account_list.py` | get_merchant_prepaid_account_list | GET |\r\n| `merchant_api.py` | 通用入口（JSON 含 `api` 字段） | — |\r\n\r\n共享：`_shopee_merchant_common.py`、`_merchant_endpoints.py`、`_merchant_api_runner.py`。\r\n\r\n## Usage Scenarios\r\n\r\n### 1. 查商户信息与下属店铺\r\n1. auth skill 定位 `merchantId`\r\n2. `get_merchant_info.py`：name、region、currency、授权过期\r\n3. `get_shop_list_by_merchant.py`：`page_no=1`、`page_size=100`\r\n\r\n### 2. 仓库与预付账户\r\n- `get_merchant_warehouse_list.py` / `get_merchant_warehouse_location_list.py`\r\n- `get_warehouse_eligible_shop_list.py`\r\n- `get_merchant_prepaid_account_list.py`\r\n\r\n## 调用原则\r\n\r\n- 先看 **`developerProxy.httpStatus`**，再读 `*Response` 字段\r\n- GET：业务参数放 JSON 顶层（runner 拼 queryString）\r\n- 每个脚本 docstring 含 **官方文档 URL**（`module=93`）\r\n\r\n## Not Applicable\r\n\r\n- 店铺授权 → `linkfox-shopee-store-auth`\r\n- 单店信息 → `linkfox-shopee-store-shop`\r\n- 全球商品 → `linkfox-shopee-store-global-product`\r\n- 单店 listing → `linkfox-shopee-store-product`\r\n- 订单 → `linkfox-shopee-store-orders`\r\n- Public 模块（`get_merchants_by_partner` 等）→ 非本 skill\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-merchant\",\n  \"version\": \"1.0.2\",\n  \"publishedAt\": 1783337508369\n}\n\nFile v1.0.2:references/api.md\n\n# linkfox-shopee-store-merchant — 参数与字段参考\r\n\r\nShopee **Merchant 模块**全部 6 个 API，经 **`POST /shopee/developerProxy`** 转发。\r\n\r\n授权见 **`linkfox-shopee-store-auth`**。官方索引：[v2.merchant.get_merchant_info](https://open.shopee.com/documents/v2/v2.merchant.get_merchant_info?module=93&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/merchant/...`\r\n- **标识**：Merchant 模块为**商户级** API，须传 **`merchantId`**\r\n- **适用对象**：主要为**跨境卖家**（CNSC/CBSC）；本地卖家通常不需要\r\n- **官方文档 URL 规则**：`https://open.shopee.com/documents/v2/v2.merchant.{api}?module=93&type=1`\r\n\r\n---\r\n\r\n## Merchant 模块总览\r\n\r\n| # | API | Method | path | 脚本 | 官方文档 |\r\n|---|-----|--------|------|------|----------|\r\n| 1 | get_merchant_info | GET | `api/v2/merchant/get_merchant_info` | `get_merchant_info.py` | [doc](https://open.shopee.com/documents/v2/v2.merchant.get_merchant_info?module=93&type=1) |\r\n| 2 | get_merchant_prepaid_account_list | GET | `api/v2/merchant/get_merchant_prepaid_account_list` | `get_merchant_prepaid_account_list.py` | [doc](https://open.shopee.com/documents/v2/v2.merchant.get_merchant_prepaid_account_list?module=93&type=1) |\r\n| 3 | get_merchant_warehouse_list | GET | `api/v2/merchant/get_merchant_warehouse_list` | `get_merchant_warehouse_list.py` | [doc](https://open.shopee.com/documents/v2/v2.merchant.get_merchant_warehouse_list?module=93&type=1) |\r\n| 4 | get_merchant_warehouse_location_list | GET | `api/v2/merchant/get_merchant_warehouse_location_list` | `get_merchant_warehouse_location_list.py` | [doc](https://open.shopee.com/documents/v2/v2.merchant.get_merchant_warehouse_location_list?module=93&type=1) |\r\n| 5 | get_shop_list_by_merchant | GET | `api/v2/merchant/get_shop_list_by_merchant` | `get_shop_list_by_merchant.py` | [doc](https://open.shopee.com/documents/v2/v2.merchant.get_shop_list_by_merchant?module=93&type=1) |\r\n| 6 | get_warehouse_eligible_shop_list | GET | `api/v2/merchant/get_warehouse_eligible_shop_list` | `get_warehouse_eligible_shop_list.py` | [doc](https://open.shopee.com/documents/v2/v2.merchant.get_warehouse_eligible_shop_list?module=93&type=1) |\r\n通用入口：`merchant_api.py`（JSON 含 `\"api\": \"<上表 API 名>\"`）。\r\n\r\n---\r\n\r\n## 接口说明\r\n\r\n### get_merchant_info\r\n\r\n[官方文档](https://open.shopee.com/documents/v2/v2.merchant.get_merchant_info?module=93&type=1)\r\n\r\n**Query**：无额外业务参数（公共参数含 merchant_id）\r\n\r\n**Response 要点**：`merchant_name`、`merchant_region`、`merchant_currency`、`auth_time`、`expire_time`、`is_cnsc`、`is_upgraded_cbsc`\r\n\r\n### get_shop_list_by_merchant\r\n\r\n[官方文档](https://open.shopee.com/documents/v2/v2.merchant.get_shop_list_by_merchant?module=93&type=1)\r\n\r\n**Query（必填）**：`page_no`（从 1 起）、`page_size`（最大 500）\r\n\r\n**Response 要点**：`shop_list[]`（`shop_id`、`sip_affi_shops` 等）、`more`、`is_cnsc`\r\n\r\n### get_merchant_warehouse_location_list / get_merchant_warehouse_list\r\n\r\n商户仓库位置与仓库列表。\r\n\r\n### get_warehouse_eligible_shop_list\r\n\r\n可使用仓库的店铺列表。\r\n\r\n### get_merchant_prepaid_account_list\r\n\r\n商户预付账户列表。\r\n\r\n---\r\n\r\n## 网关错误码\r\n\r\n| errcode | 含义 | 建议 |\r\n|---------|------|------|\r\n| 1002 | 参数/未登录 | 检查 merchantId 与 API Key |\r\n| 1003 | 代理/网络异常 | 重试 |\r\n| 1004 | 无授权记录 | auth skill |\r\n| 1005 | path 未白名单 | 确认 `api/v2/merchant/...` |\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\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/merchant/get_merchant_info\",\r\n    \"method\": \"GET\",\r\n    \"accessToken\": \"xxx\",\r\n    \"merchantId\": \"12345\"\r\n  }'\r\n\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/merchant/get_shop_list_by_merchant\",\r\n    \"method\": \"GET\",\r\n    \"accessToken\": \"xxx\",\r\n    \"merchantId\": \"12345\",\r\n    \"queryString\": \"page_no=1&page_size=100\"\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-merchant\",\"sentiment\":\"POSITIVE\",\r\n       \"category\":\"OTHER\",\"content\":\"商户信息查询正常\"}'\r\n```\n\nFile v1.0.2:skill-card.md\n\n## Description: <br>\nHelps agents query authorized Shopee cross-border merchant information, shop lists, warehouses, warehouse-eligible shops, and prepaid accounts through LinkFox gateway calls to Shopee Open API Merchant endpoints. <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 marketplace operators, e-commerce teams, and agent developers use this skill to retrieve authorized Shopee merchant-level data such as merchant profile details, bound shops, warehouse information, and prepaid account data. It is intended for authenticated merchant-data lookups where the user understands the request may consume LinkFox credits. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: Authorized Shopee merchant responses may contain sensitive business data and are sent through LinkFox gateway endpoints. <br>\nMitigation: Use the skill only for intentional authenticated merchant-data lookups and confirm the user is comfortable with LinkFox gateway processing before execution. <br>\nRisk: Full API responses are archived locally in a linkfox session directory by default. <br>\nMitigation: Review the archive location before use, restrict access to the workspace, and delete saved response files when they are no longer needed. <br>\nRisk: Ambiguous Shopee questions could trigger merchant-data lookups that consume credits or retrieve unnecessary data. <br>\nMitigation: Clarify intent before running merchant API calls, especially after failures, empty results, pagination, or keyword changes that could create additional cost. <br>\n\n\n## Reference(s): <br>\n- [ClawHub skill page](https://clawhub.ai/linkfox-ai/skills/linkfox-shopee-store-merchant) <br>\n- [Local API reference](references/api.md) <br>\n- [Shopee Open Platform Merchant API: get_merchant_info](https://open.shopee.com/documents/v2/v2.merchant.get_merchant_info?module=93&type=1) <br>\n- [Shopee Open Platform Merchant API: get_shop_list_by_merchant](https://open.shopee.com/documents/v2/v2.merchant.get_shop_list_by_merchant?module=93&type=1) <br>\n- [Shopee Open Platform Merchant API: get_merchant_warehouse_list](https://open.shopee.com/documents/v2/v2.merchant.get_merchant_warehouse_list?module=93&type=1) <br>\n- [Shopee Open Platform Merchant API: get_merchant_warehouse_location_list](https://open.shopee.com/documents/v2/v2.merchant.get_merchant_warehouse_location_list?module=93&type=1) <br>\n- [Shopee Open Platform Merchant API: get_warehouse_eligible_shop_list](https://open.shopee.com/documents/v2/v2.merchant.get_warehouse_eligible_shop_list?module=93&type=1) <br>\n- [Shopee Open Platform Merchant API: get_merchant_prepaid_account_list](https://open.shopee.com/documents/v2/v2.merchant.get_merchant_prepaid_account_list?module=93&type=1) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [API Calls, JSON, Files, Shell commands, Guidance] <br>\n**Output Format:** [JSON responses, saved JSON files, stdout summaries, and Markdown guidance with shell commands] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [Scripts save full responses under a local linkfox session directory; responses up to 8 KB are printed in full, larger responses are summarized unless --inline is used.] <br>\n\n## Skill Version(s): <br>\n1.0.2 (source: server release evidence) <br>\n\n## Ethical Considerations: <br>\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment. <br>\n\nArchive v1.0.1: 14 files, 17601 bytes\n\nFiles: references/api.md (4853b), scripts/_merchant_api_runner.py (4287b), scripts/_merchant_endpoints.py (2315b), scripts/_shopee_merchant_common.py (11661b), scripts/check_auth_dependency.py (3985b), scripts/get_merchant_info.py (732b), scripts/get_merchant_prepaid_account_list.py (828b), scripts/get_merchant_warehouse_list.py (792b), scripts/get_merchant_warehouse_location_list.py (846b), scripts/get_shop_list_by_merchant.py (780b), scripts/get_warehouse_eligible_shop_list.py (822b), scripts/merchant_api.py (1051b), SKILL.md (5519b), _meta.json (148b)\n\nFile v1.0.1:SKILL.md\n\n---\r\nname: linkfox-shopee-store-merchant\r\ndescription: Shopee（虾皮）跨境商户信息（与 linkfox-shopee-store-auth 同系列），经 /shopee/developerProxy 转发 Shopee Open API Merchant 模块全部 6 个接口：get_merchant_info、get_shop_list_by_merchant、get_merchant_warehouse_list、get_merchant_warehouse_location_list、get_warehouse_eligible_shop_list、get_merchant_prepaid_account_list。当用户提到 Shopee 商户、merchantId、跨境卖家、CNSC、商户下店铺列表、get_merchant_info、商户仓库、预付账户 时触发。即使未明确提及\"商户\"，只要涉及已授权 Shopee 跨境商户的信息查询或下属店铺列表，也应触发。\r\n---\r\n\r\n# Shopee 商户 Merchant\r\n\r\nShopee Open Platform **Merchant 模块**（6 个 API）。**依赖 `linkfox-shopee-store-auth`**：先取 `accessToken`，再经 **`POST /shopee/developerProxy`** 转发（`path` 须 `api/v2/merchant/...`）。\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\nMerchant 模块索引：[v2.merchant.get_merchant_info](https://open.shopee.com/documents/v2/v2.merchant.get_merchant_info?module=93&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\n3. Merchant 为**商户级** API，须传 **`merchantId`**；主要面向**跨境卖家**。\r\n\r\n---\r\n\r\n## Core Concepts\r\n\r\n- **转发链路**：`storeTokens` → `developerProxy` → 紫鸟 `shopee-proxy` → Shopee API\r\n- **商户 vs 店铺**：本 skill 查商户信息及下属店铺；单店资料见 `linkfox-shopee-store-shop`\r\n- **全球商品**：商户下全球 listing 见 `linkfox-shopee-store-global-product`\r\n- **典型用法**：`get_merchant_info` 确认 region/currency → `get_shop_list_by_merchant` 列出授权店铺\r\n\r\n## 可用脚本（Merchant 模块 6 个 API）\r\n\r\n| 脚本 | API | Method |\r\n|------|-----|--------|\r\n| `get_merchant_info.py` | get_merchant_info | GET |\r\n| `get_shop_list_by_merchant.py` | get_shop_list_by_merchant | GET |\r\n| `get_merchant_warehouse_location_list.py` | get_merchant_warehouse_location_list | GET |\r\n| `get_merchant_warehouse_list.py` | get_merchant_warehouse_list | GET |\r\n| `get_warehouse_eligible_shop_list.py` | get_warehouse_eligible_shop_list | GET |\r\n| `get_merchant_prepaid_account_list.py` | get_merchant_prepaid_account_list | GET |\r\n| `merchant_api.py` | 通用入口（JSON 含 `api` 字段） | — |\r\n\r\n共享：`_shopee_merchant_common.py`、`_merchant_endpoints.py`、`_merchant_api_runner.py`。\r\n\r\n## Usage Scenarios\r\n\r\n### 1. 查商户信息与下属店铺\r\n1. auth skill 定位 `merchantId`\r\n2. `get_merchant_info.py`：name、region、currency、授权过期\r\n3. `get_shop_list_by_merchant.py`：`page_no=1`、`page_size=100`\r\n\r\n### 2. 仓库与预付账户\r\n- `get_merchant_warehouse_list.py` / `get_merchant_warehouse_location_list.py`\r\n- `get_warehouse_eligible_shop_list.py`\r\n- `get_merchant_prepaid_account_list.py`\r\n\r\n## 调用原则\r\n\r\n- 先看 **`developerProxy.httpStatus`**，再读 `*Response` 字段\r\n- GET：业务参数放 JSON 顶层（runner 拼 queryString）\r\n- 每个脚本 docstring 含 **官方文档 URL**（`module=93`）\r\n\r\n## Not Applicable\r\n\r\n- 店铺授权 → `linkfox-shopee-store-auth`\r\n- 单店信息 → `linkfox-shopee-store-shop`\r\n- 全球商品 → `linkfox-shopee-store-global-product`\r\n- 单店 listing → `linkfox-shopee-store-product`\r\n- 订单 → `linkfox-shopee-store-orders`\r\n- Public 模块（`get_merchants_by_partner` 等）→ 非本 skill\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-merchant\",\n  \"version\": \"1.0.1\",\n  \"publishedAt\": 1783067463447\n}\n\nFile v1.0.1:references/api.md\n\n# linkfox-shopee-store-merchant — 参数与字段参考\r\n\r\nShopee **Merchant 模块**全部 6 个 API，经 **`POST /shopee/developerProxy`** 转发。\r\n\r\n授权见 **`linkfox-shopee-store-auth`**。官方索引：[v2.merchant.get_merchant_info](https://open.shopee.com/documents/v2/v2.merchant.get_merchant_info?module=93&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/merchant/...`\r\n- **标识**：Merchant 模块为**商户级** API，须传 **`merchantId`**\r\n- **适用对象**：主要为**跨境卖家**（CNSC/CBSC）；本地卖家通常不需要\r\n- **官方文档 URL 规则**：`https://open.shopee.com/documents/v2/v2.merchant.{api}?module=93&type=1`\r\n\r\n---\r\n\r\n## Merchant 模块总览\r\n\r\n| # | API | Method | path | 脚本 | 官方文档 |\r\n|---|-----|--------|------|------|----------|\r\n| 1 | get_merchant_info | GET | `api/v2/merchant/get_merchant_info` | `get_merchant_info.py` | [doc](https://open.shopee.com/documents/v2/v2.merchant.get_merchant_info?module=93&type=1) |\r\n| 2 | get_merchant_prepaid_account_list | GET | `api/v2/merchant/get_merchant_prepaid_account_list` | `get_merchant_prepaid_account_list.py` | [doc](https://open.shopee.com/documents/v2/v2.merchant.get_merchant_prepaid_account_list?module=93&type=1) |\r\n| 3 | get_merchant_warehouse_list | GET | `api/v2/merchant/get_merchant_warehouse_list` | `get_merchant_warehouse_list.py` | [doc](https://open.shopee.com/documents/v2/v2.merchant.get_merchant_warehouse_list?module=93&type=1) |\r\n| 4 | get_merchant_warehouse_location_list | GET | `api/v2/merchant/get_merchant_warehouse_location_list` | `get_merchant_warehouse_location_list.py` | [doc](https://open.shopee.com/documents/v2/v2.merchant.get_merchant_warehouse_location_list?module=93&type=1) |\r\n| 5 | get_shop_list_by_merchant | GET | `api/v2/merchant/get_shop_list_by_merchant` | `get_shop_list_by_merchant.py` | [doc](https://open.shopee.com/documents/v2/v2.merchant.get_shop_list_by_merchant?module=93&type=1) |\r\n| 6 | get_warehouse_eligible_shop_list | GET | `api/v2/merchant/get_warehouse_eligible_shop_list` | `get_warehouse_eligible_shop_list.py` | [doc](https://open.shopee.com/documents/v2/v2.merchant.get_warehouse_eligible_shop_list?module=93&type=1) |\r\n通用入口：`merchant_api.py`（JSON 含 `\"api\": \"<上表 API 名>\"`）。\r\n\r\n---\r\n\r\n## 接口说明\r\n\r\n### get_merchant_info\r\n\r\n[官方文档](https://open.shopee.com/documents/v2/v2.merchant.get_merchant_info?module=93&type=1)\r\n\r\n**Query**：无额外业务参数（公共参数含 merchant_id）\r\n\r\n**Response 要点**：`merchant_name`、`merchant_region`、`merchant_currency`、`auth_time`、`expire_time`、`is_cnsc`、`is_upgraded_cbsc`\r\n\r\n### get_shop_list_by_merchant\r\n\r\n[官方文档](https://open.shopee.com/documents/v2/v2.merchant.get_shop_list_by_merchant?module=93&type=1)\r\n\r\n**Query（必填）**：`page_no`（从 1 起）、`page_size`（最大 500）\r\n\r\n**Response 要点**：`shop_list[]`（`shop_id`、`sip_affi_shops` 等）、`more`、`is_cnsc`\r\n\r\n### get_merchant_warehouse_location_list / get_merchant_warehouse_list\r\n\r\n商户仓库位置与仓库列表。\r\n\r\n### get_warehouse_eligible_shop_list\r\n\r\n可使用仓库的店铺列表。\r\n\r\n### get_merchant_prepaid_account_list\r\n\r\n商户预付账户列表。\r\n\r\n---\r\n\r\n## 网关错误码\r\n\r\n| errcode | 含义 | 建议 |\r\n|---------|------|------|\r\n| 1002 | 参数/未登录 | 检查 merchantId 与 API Key |\r\n| 1003 | 代理/网络异常 | 重试 |\r\n| 1004 | 无授权记录 | auth skill |\r\n| 1005 | path 未白名单 | 确认 `api/v2/merchant/...` |\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\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/merchant/get_merchant_info\",\r\n    \"method\": \"GET\",\r\n    \"accessToken\": \"xxx\",\r\n    \"merchantId\": \"12345\"\r\n  }'\r\n\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/merchant/get_shop_list_by_merchant\",\r\n    \"method\": \"GET\",\r\n    \"accessToken\": \"xxx\",\r\n    \"merchantId\": \"12345\",\r\n    \"queryString\": \"page_no=1&page_size=100\"\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-merchant\",\"sentiment\":\"POSITIVE\",\r\n       \"category\":\"OTHER\",\"content\":\"商户信息查询正常\"}'\r\n```\n\nArchive v1.0.0: 15 files, 19099 bytes\n\nFiles: references/api.md (4854b), scripts/_merchant_api_runner.py (4287b), scripts/_merchant_endpoints.py (2315b), scripts/_shopee_merchant_common.py (11662b), scripts/check_auth_dependency.py (3985b), scripts/get_merchant_info.py (732b), scripts/get_merchant_prepaid_account_list.py (828b), scripts/get_merchant_warehouse_list.py (792b), scripts/get_merchant_warehouse_location_list.py (846b), scripts/get_shop_list_by_merchant.py (780b), scripts/get_warehouse_eligible_shop_list.py (822b), scripts/merchant_api.py (1051b), skill-card.md (3597b), SKILL.md (5519b), _meta.json (148b)\n\nFile v1.0.0:SKILL.md\n\n---\r\nname: linkfox-shopee-store-merchant\r\ndescription: Shopee（虾皮）跨境商户信息（与 linkfox-shopee-store-auth 同系列），经 /shopee/developerProxy 转发 Shopee Open API Merchant 模块全部 6 个接口：get_merchant_info、get_shop_list_by_merchant、get_merchant_warehouse_list、get_merchant_warehouse_location_list、get_warehouse_eligible_shop_list、get_merchant_prepaid_account_list。当用户提到 Shopee 商户、merchantId、跨境卖家、CNSC、商户下店铺列表、get_merchant_info、商户仓库、预付账户 时触发。即使未明确提及\"商户\"，只要涉及已授权 Shopee 跨境商户的信息查询或下属店铺列表，也应触发。\r\n---\r\n\r\n# Shopee 商户 Merchant\r\n\r\nShopee Open Platform **Merchant 模块**（6 个 API）。**依赖 `linkfox-shopee-store-auth`**：先取 `accessToken`，再经 **`POST /shopee/developerProxy`** 转发（`path` 须 `api/v2/merchant/...`）。\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\nMerchant 模块索引：[v2.merchant.get_merchant_info](https://open.shopee.com/documents/v2/v2.merchant.get_merchant_info?module=93&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\n3. Merchant 为**商户级** API，须传 **`merchantId`**；主要面向**跨境卖家**。\r\n\r\n---\r\n\r\n## Core Concepts\r\n\r\n- **转发链路**：`storeTokens` → `developerProxy` → 紫鸟 `shopee-proxy` → Shopee API\r\n- **商户 vs 店铺**：本 skill 查商户信息及下属店铺；单店资料见 `linkfox-shopee-store-shop`\r\n- **全球商品**：商户下全球 listing 见 `linkfox-shopee-store-global-product`\r\n- **典型用法**：`get_merchant_info` 确认 region/currency → `get_shop_list_by_merchant` 列出授权店铺\r\n\r\n## 可用脚本（Merchant 模块 6 个 API）\r\n\r\n| 脚本 | API | Method |\r\n|------|-----|--------|\r\n| `get_merchant_info.py` | get_merchant_info | GET |\r\n| `get_shop_list_by_merchant.py` | get_shop_list_by_merchant | GET |\r\n| `get_merchant_warehouse_location_list.py` | get_merchant_warehouse_location_list | GET |\r\n| `get_merchant_warehouse_list.py` | get_merchant_warehouse_list | GET |\r\n| `get_warehouse_eligible_shop_list.py` | get_warehouse_eligible_shop_list | GET |\r\n| `get_merchant_prepaid_account_list.py` | get_merchant_prepaid_account_list | GET |\r\n| `merchant_api.py` | 通用入口（JSON 含 `api` 字段） | — |\r\n\r\n共享：`_shopee_merchant_common.py`、`_merchant_endpoints.py`、`_merchant_api_runner.py`。\r\n\r\n## Usage Scenarios\r\n\r\n### 1. 查商户信息与下属店铺\r\n1. auth skill 定位 `merchantId`\r\n2. `get_merchant_info.py`：name、region、currency、授权过期\r\n3. `get_shop_list_by_merchant.py`：`page_no=1`、`page_size=100`\r\n\r\n### 2. 仓库与预付账户\r\n- `get_merchant_warehouse_list.py` / `get_merchant_warehouse_location_list.py`\r\n- `get_warehouse_eligible_shop_list.py`\r\n- `get_merchant_prepaid_account_list.py`\r\n\r\n## 调用原则\r\n\r\n- 先看 **`developerProxy.httpStatus`**，再读 `*Response` 字段\r\n- GET：业务参数放 JSON 顶层（runner 拼 queryString）\r\n- 每个脚本 docstring 含 **官方文档 URL**（`module=93`）\r\n\r\n## Not Applicable\r\n\r\n- 店铺授权 → `linkfox-shopee-store-auth`\r\n- 单店信息 → `linkfox-shopee-store-shop`\r\n- 全球商品 → `linkfox-shopee-store-global-product`\r\n- 单店 listing → `linkfox-shopee-store-product`\r\n- 订单 → `linkfox-shopee-store-orders`\r\n- Public 模块（`get_merchants_by_partner` 等）→ 非本 skill\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-merchant\",\n  \"version\": \"1.0.0\",\n  \"publishedAt\": 1783003988156\n}\n\nFile v1.0.0:references/api.md\n\n# linkfox-shopee-store-merchant — 参数与字段参考\r\n\r\nShopee **Merchant 模块**全部 6 个 API，经 **`POST /shopee/developerProxy`** 转发。\r\n\r\n授权见 **`linkfox-shopee-store-auth`**。官方索引：[v2.merchant.get_merchant_info](https://open.shopee.com/documents/v2/v2.merchant.get_merchant_info?module=93&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/merchant/...`\r\n- **标识**：Merchant 模块为**商户级** API，须传 **`merchantId`**\r\n- **适用对象**：主要为**跨境卖家**（CNSC/CBSC）；本地卖家通常不需要\r\n- **官方文档 URL 规则**：`https://open.shopee.com/documents/v2/v2.merchant.{api}?module=93&type=1`\r\n\r\n---\r\n\r\n## Merchant 模块总览\r\n\r\n| # | API | Method | path | 脚本 | 官方文档 |\r\n|---|-----|--------|------|------|----------|\r\n| 1 | get_merchant_info | GET | `api/v2/merchant/get_merchant_info` | `get_merchant_info.py` | [doc](https://open.shopee.com/documents/v2/v2.merchant.get_merchant_info?module=93&type=1) |\r\n| 2 | get_merchant_prepaid_account_list | GET | `api/v2/merchant/get_merchant_prepaid_account_list` | `get_merchant_prepaid_account_list.py` | [doc](https://open.shopee.com/documents/v2/v2.merchant.get_merchant_prepaid_account_list?module=93&type=1) |\r\n| 3 | get_merchant_warehouse_list | GET | `api/v2/merchant/get_merchant_warehouse_list` | `get_merchant_warehouse_list.py` | [doc](https://open.shopee.com/documents/v2/v2.merchant.get_merchant_warehouse_list?module=93&type=1) |\r\n| 4 | get_merchant_warehouse_location_list | GET | `api/v2/merchant/get_merchant_warehouse_location_list` | `get_merchant_warehouse_location_list.py` | [doc](https://open.shopee.com/documents/v2/v2.merchant.get_merchant_warehouse_location_list?module=93&type=1) |\r\n| 5 | get_shop_list_by_merchant | GET | `api/v2/merchant/get_shop_list_by_merchant` | `get_shop_list_by_merchant.py` | [doc](https://open.shopee.com/documents/v2/v2.merchant.get_shop_list_by_merchant?module=93&type=1) |\r\n| 6 | get_warehouse_eligible_shop_list | GET | `api/v2/merchant/get_warehouse_eligible_shop_list` | `get_warehouse_eligible_shop_list.py` | [doc](https://open.shopee.com/documents/v2/v2.merchant.get_warehouse_eligible_shop_list?module=93&type=1) |\r\n通用入口：`merchant_api.py`（JSON 含 `\"api\": \"<上表 API 名>\"`）。\r\n\r\n---\r\n\r\n## 接口说明\r\n\r\n### get_merchant_info\r\n\r\n[官方文档](https://open.shopee.com/documents/v2/v2.merchant.get_merchant_info?module=93&type=1)\r\n\r\n**Query**：无额外业务参数（公共参数含 merchant_id）\r\n\r\n**Response 要点**：`merchant_name`、`merchant_region`、`merchant_currency`、`auth_time`、`expire_time`、`is_cnsc`、`is_upgraded_cbsc`\r\n\r\n### get_shop_list_by_merchant\r\n\r\n[官方文档](https://open.shopee.com/documents/v2/v2.merchant.get_shop_list_by_merchant?module=93&type=1)\r\n\r\n**Query（必填）**：`page_no`（从 1 起）、`page_size`（最大 500）\r\n\r\n**Response 要点**：`shop_list[]`（`shop_id`、`sip_affi_shops` 等）、`more`、`is_cnsc`\r\n\r\n### get_merchant_warehouse_location_list / get_merchant_warehouse_list\r\n\r\n商户仓库位置与仓库列表。\r\n\r\n### get_warehouse_eligible_shop_list\r\n\r\n可使用仓库的店铺列表。\r\n\r\n### get_merchant_prepaid_account_list\r\n\r\n商户预付账户列表。\r\n\r\n---\r\n\r\n## 网关错误码\r\n\r\n| errcode | 含义 | 建议 |\r\n|---------|------|------|\r\n| 1002 | 参数/未登录 | 检查 merchantId 与 API Key |\r\n| 1003 | 代理/网络异常 | 重试 |\r\n| 1004 | 无授权记录 | auth skill |\r\n| 1005 | path 未白名单 | 确认 `api/v2/merchant/...` |\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\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/merchant/get_merchant_info\",\r\n    \"method\": \"GET\",\r\n    \"accessToken\": \"xxx\",\r\n    \"merchantId\": \"12345\"\r\n  }'\r\n\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/merchant/get_shop_list_by_merchant\",\r\n    \"method\": \"GET\",\r\n    \"accessToken\": \"xxx\",\r\n    \"merchantId\": \"12345\",\r\n    \"queryString\": \"page_no=1&page_size=100\"\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-merchant\",\"sentiment\":\"POSITIVE\",\r\n       \"category\":\"OTHER\",\"content\":\"商户信息查询正常\"}'\r\n```\n\nFile v1.0.0:skill-card.md\n\n## Description: <br>\nShopee Store Merchant helps agents query authorized Shopee cross-border merchant information, shop lists, warehouses, warehouse-eligible shops, and prepaid accounts through LinkFox's Shopee developer proxy. <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 developers and e-commerce operators use this skill to inspect authorized Shopee merchant records, linked shops, merchant warehouse data, warehouse eligibility, and prepaid-account information for cross-border sellers. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: Shopee merchant, shop, warehouse, and prepaid-account responses may contain sensitive business data and are saved locally in full. <br>\nMitigation: Run the skill in a private workspace, avoid shared output directories, and delete saved session data when it is no longer needed. <br>\nRisk: Saved LinkFox response files may be accidentally committed or shared. <br>\nMitigation: Keep the local linkfox output directory out of version control and review files before sharing project archives. <br>\nRisk: The LinkFox API key is required through environment variables and can grant access to protected merchant data. <br>\nMitigation: Protect LINKFOX_AGENT_API_KEY or LINKFOXAGENT_API_KEY, avoid printing it, and rotate it if exposure is suspected. <br>\nRisk: Inline output can place full merchant responses into the agent transcript. <br>\nMitigation: Use the default summarized output for large responses and extract only needed fields from saved JSON files. <br>\n\n\n## Reference(s): <br>\n- [ClawHub Skill Page](https://clawhub.ai/linkfox-ai/skills/linkfox-shopee-store-merchant) <br>\n- [Artifact API Reference](references/api.md) <br>\n- [Shopee Merchant API: get_merchant_info](https://open.shopee.com/documents/v2/v2.merchant.get_merchant_info?module=93&type=1) <br>\n- [Shopee Merchant API: get_shop_list_by_merchant](https://open.shopee.com/documents/v2/v2.merchant.get_shop_list_by_merchant?module=93&type=1) <br>\n- [Shopee Merchant API: get_merchant_warehouse_list](https://open.shopee.com/documents/v2/v2.merchant.get_merchant_warehouse_list?module=93&type=1) <br>\n- [Shopee Merchant API: get_merchant_warehouse_location_list](https://open.shopee.com/documents/v2/v2.merchant.get_merchant_warehouse_location_list?module=93&type=1) <br>\n- [Shopee Merchant API: get_warehouse_eligible_shop_list](https://open.shopee.com/documents/v2/v2.merchant.get_warehouse_eligible_shop_list?module=93&type=1) <br>\n- [Shopee Merchant API: get_merchant_prepaid_account_list](https://open.shopee.com/documents/v2/v2.merchant.get_merchant_prepaid_account_list?module=93&type=1) <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 Python and curl command examples, JSON API responses, and saved response files.] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [Full API responses are saved locally; large responses print summaries unless inline output is requested.] <br>\n\n## Skill Version(s): <br>\n1.0.0 (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>","readmeExcerpt":"Skill: Shopee-店铺商户 Owner: linkfox-ai Summary: Shopee（虾皮）跨境商户信息（与 linkfox-shopee-store-auth 同系列），经 /shopee/developerProxy 转发 Shopee Open API Merchant 模块全部 6 个接口：get_merchant_info、get_shop_list_by_merchant、get_merchant_warehouse_list、get_merchant_warehouse_location_list、get_warehouse_eligible_shop_list、get_merchant_prepaid_account_list。当用户提到 Shopee 商户、merchantId、跨境卖家、CNSC、商户下店铺列表、get_merchant_info、商户仓库、预付账户 时触发。即使未明确提及","codeSnippets":[],"executableExamples":[{"language":"text","snippet":"File v1.0.6:references/apis/get-merchant-info.md\n\n# get_merchant_info\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/get_merchant_info.py` |\n| Method / path | GET `api/v2/merchant/get_merchant_info` |\n| 官方文档 | [get_merchant_info](https://open.shopee.com/documents/v2/v2.merchant.get_merchant_info?module=93&type=1) |\n| 用途 | Merchant name, region, currency, auth/expire time |\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：Merchant name, region, currency, auth/expire time\n\n---\n\n## 调用示例"},{"language":"text","snippet":"---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`getMerchantInfo`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nFile v1.0.6:references/apis/get-merchant-prepaid-account-list.md\n\n# get_merchant_prepaid_account_list\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/get_merchant_prepaid_account_list.py` |\n| Method / path | GET `api/v2/merchant/get_merchant_prepaid_account_list` |\n| 官方文档 | [get_merchant_prepaid_account_list](https://open.shopee.com/documents/v2/v2.merchant.get_merchant_prepaid_account_list?module=93&type=1) |\n| 用途 | Merchant prepaid accounts |\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：Merchant prepaid accounts\n\n---\n\n## 调用示例"},{"language":"text","snippet":"---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`getMerchantPrepaidAccountList`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nFile v1.0.6:references/apis/get-merchant-warehouse-list.md\n\n# get_merchant_warehouse_list\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/get_merchant_warehouse_list.py` |\n| Method / path | GET `api/v2/merchant/get_merchant_warehouse_list` |\n| 官方文档 | [get_merchant_warehouse_list](https://open.shopee.com/documents/v2/v2.merchant.get_merchant_warehouse_list?module=93&type=1) |\n| 用途 | Merchant warehouse list |\n\n经 **`POST /shopee/developerProxy`** 转发；依赖 **`linkfox-shopee-store-auth`** 选店（通常传 `shopId` 或 `merchantId`）。\n\n---\n\n## 脚本 JSON 入参\n\n| 字段 | 类型 | 必填 | 说明 |\n|------|------|------|------|\n| `shopId` | string | 与 `merchantId` 二选一 | 店铺 ID（推荐；Public 等无店铺接口可省略） |\n| `merchantId` | string | 与 `shopId` 二选一 | 商户 ID |\n\n- Method：**GET**\n- GET：业务字段放 JSON **顶层**，runner 拼进 `queryString`（不含 `?`）\n- `shopId` / `merchantId` / `skipDepCheck` 等为网关选店保留字段，不会进 Shopee query/body\n- Registry notes：Merchant warehouse list\n\n---\n\n## 调用示例"},{"language":"text","snippet":"---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`getMerchantWarehouseList`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nFile v1.0.6:references/apis/get-merchant-warehouse-location-list.md\n\n# get_merchant_warehouse_location_list\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/get_merchant_warehouse_location_list.py` |\n| Method / path | GET `api/v2/merchant/get_merchant_warehouse_location_list` |\n| 官方文档 | [get_merchant_warehouse_location_list](https://open.shopee.com/documents/v2/v2.merchant.get_merchant_warehouse_location_list?module=93&type=1) |\n| 用途 | Merchant warehouse locations |\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：Merchant warehouse locations\n\n---\n\n## 调用示例"},{"language":"text","snippet":"---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`getMerchantWarehouseLocationList`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nFile v1.0.6:references/apis/get-shop-list-by-merchant.md\n\n# get_shop_list_by_merchant\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/get_shop_list_by_merchant.py` |\n| Method / path | GET `api/v2/merchant/get_shop_list_by_merchant` |\n| 官方文档 | [get_shop_list_by_merchant](https://open.shopee.com/documents/v2/v2.merchant.get_shop_list_by_merchant?module=93&type=1) |\n| 用途 | Shops bound to merchant; page_size max 500 |\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| `page_size` | — | **是** | Query 必填（见 notes / 官方文档） |\n| `page_no` | — | **是** | Query 必填（见 notes / 官方文档） |\n\n- Method：**GET**\n- GET：业务字段放 JSON **顶层**，runner 拼进 `queryString`（不含 `?`）\n- `shopId` / `merchantId` / `skipDepCheck` 等为网关选店保留字段，不会进 Shopee query/body\n- Registry notes：Shops bound to merchant; page_size max 500\n\n---\n\n## 调用示例"},{"language":"text","snippet":"---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`getShopListByMerchant`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nFile v1.0.6:references/apis/get-warehouse-eligible-shop-list.md\n\n# get_warehouse_eligible_shop_list\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/get_warehouse_eligible_shop_list.py` |\n| Method / path | GET `api/v2/merchant/get_warehouse_eligible_shop_list` |\n| 官方文档 | [get_warehouse_eligible_shop_list](https://open.shopee.com/documents/v2/v2.merchant.get_warehouse_eligible_shop_list?module=93&type=1) |\n| 用途 | Shops eligible for warehouse |\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：Shops eligible for warehouse\n\n---\n\n## 调用示例"}],"parameters":null,"dependencies":[],"permissions":[],"extractedFiles":[{"path":"SKILL.md","content":"---\nname: linkfox-shopee-store-merchant\ndescription: Shopee（虾皮）跨境商户信息（与 linkfox-shopee-store-auth 同系列），经 /shopee/developerProxy 转发 Shopee Open API Merchant 模块全部 6 个接口：get_merchant_info、get_shop_list_by_merchant、get_merchant_warehouse_list、get_merchant_warehouse_location_list、get_warehouse_eligible_shop_list、get_merchant_prepaid_account_list。当用户提到 Shopee 商户、merchantId、跨境卖家、CNSC、商户下店铺列表、get_merchant_info、商户仓库、预付账户 时触发。即使未明确提及\"商户\"，只要涉及已授权 Shopee 跨境商户的信息查询或下属店铺列表，也应触发。\n---\n\n# Shopee 商户 Merchant\n\nShopee Open Platform **Merchant 模块**（6 个 API）。**依赖 `linkfox-shopee-store-auth`** 选店；经 **`POST /shopee/developerProxy`** 传入 `shopId`（或 `merchantId`），由服务端解析 token 转发（`path` 须 `api/v2/merchant/...`）。\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\nMerchant 模块索引：[v2.merchant.get_merchant_info](https://open.shopee.com/documents/v2/v2.merchant.get_merchant_info?module=93&type=1)\n\n---\n\n## Prerequisites（必须先读）\n\n1. 运行 `python scripts/check_auth_dependency.py`；exit code **42** → 先安装 **`linkfox-shopee-store-auth`** 并授权。\n2. **不要**在本 skill 内实现授权/令牌逻辑。\n3. Merchant 为**商户级** API，须传 **`merchantId`**；主要面向**跨境卖家**。\n\n---\n\n## Core Concepts\n\n- **转发链路**：`developerProxy`（`shopId`/`merchantId` 选店，服务端注入 token）→ 紫鸟 `shopee-proxy` → Shopee API\n- **商户 vs 店铺**：本 skill 查商户信息及下属店铺；单店资料见 `linkfox-shopee-store-shop`\n- **全球商品**：商户下全球 listing 见 `linkfox-shopee-store-global-product`\n- **典型用法**：`get_merchant_info` 确认 region/currency → `get_shop_list_by_merchant` 列出授权店铺\n\n## 可用脚本（Merchant 模块 6 个 API）\n\n| 脚本 | API | Method |\n|------|-----|--------|\n| `get_merchant_info.py` | get_merchant_info | GET |\n| `get_shop_list_by_merchant.py` | get_shop_list_by_merchant | GET |\n| `get_merchant_warehouse_location_list.py` | get_merchant_warehouse_location_list | GET |\n| `get_merchant_warehouse_list.py` | get_merchant_warehouse_list | GET |\n| `get_warehouse_eligible_shop_list.py` | get_warehouse_eligible_shop_list | GET |\n| `get_merchant_prepaid_account_list.py` | get_merchant_prepaid_account_list | GET |\n| `merchant_api.py` | 通用入口（JSON 含 `api` 字段） | — |\n\n共享：`_shopee_merchant_common.py`、`_merchan"},{"path":"_meta.json","content":"{\n  \"ownerId\": \"kn7dmc1t4j28hem1twwyav85p182pb1j\",\n  \"slug\": \"linkfox-shopee-store-merchant\",\n  \"version\": \"1.0.6\",\n  \"publishedAt\": 1789363751091\n}"},{"path":"references/api.md","content":"# linkfox-shopee-store-merchant — 参数与字段参考\r\n\r\n> 单接口入参/响应说明已拆到 **`apis/`**（按 API 一份）；本文件保留模块总览与 Feedback。\r\nShopee **Merchant 模块**全部 6 个 API，经 **`POST /shopee/developerProxy`** 转发。\r\n\r\n授权见 **`linkfox-shopee-store-auth`**。官方索引：[v2.merchant.get_merchant_info](https://open.shopee.com/documents/v2/v2.merchant.get_merchant_info?module=93&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/merchant/...`\r\n- **标识**：Merchant 模块为**商户级** API，须传 **`merchantId`**\r\n- **适用对象**：主要为**跨境卖家**（CNSC/CBSC）；本地卖家通常不需要\r\n- **官方文档 URL 规则**：`https://open.shopee.com/documents/v2/v2.merchant.{api}?module=93&type=1`\r\n\r\n---\r\n\r\n## Merchant 模块总览\r\n\r\n| # | API | Method | path | 脚本 | 官方文档 |\r\n|---|-----|--------|------|------|----------|\r\n| 1 | get_merchant_info | GET | `api/v2/merchant/get_merchant_info` | `get_merchant_info.py` | [apis/get-merchant-info.md](./apis/get-merchant-info.md) |\r\n| 2 | get_merchant_prepaid_account_list | GET | `api/v2/merchant/get_merchant_prepaid_account_list` | `get_merchant_prepaid_account_list.py` | [apis/get-merchant-prepaid-account-list.md](./apis/get-merchant-prepaid-account-list.md) |\r\n| 3 | get_merchant_warehouse_list | GET | `api/v2/merchant/get_merchant_warehouse_list` | `get_merchant_warehouse_list.py` | [apis/get-merchant-warehouse-list.md](./apis/get-merchant-warehouse-list.md) |\r\n| 4 | get_merchant_warehouse_location_list | GET | `api/v2/merchant/get_merchant_warehouse_location_list` | `get_merchant_warehouse_location_list.py` | [apis/get-merchant-warehouse-location-list.md](./apis/get-merchant-warehouse-location-list.md) |\r\n| 5 | get_shop_list_by_merchant | GET | `api/v2/merchant/get_shop_list_by_merchant` | `get_shop_list_by_merchant.py` | [apis/get-shop-list-by-merchant.md](./apis/get-shop-list-by-merchant.md) |\r\n| 6 | get_warehouse_eligible_shop_list | GET | `api/v2/merchant/get_warehouse_eligible_shop_list` | `get_warehouse_eligible_shop_list.py` | [apis/get-warehouse-eligible-shop-list.md](./apis/get-warehouse-eligible-shop-list.md) |\r\n通用入口：`merchant_api.py`（JSON 含 `\"api\": \"<上表 API 名>\"`）。\r\n\r\n---\r\n\r\n## 接口说明\r\n\r\n### get_merchant_info\r\n\r\n[官方文档](https://open.shopee.com/documents/v2/v2.merchant.get_merchant_info?module=93&type=1)\r\n\r\n**Query**：无额外业务参数（公共参数含 merchant_id）\r\n\r\n**Response 要点**：`merchant_name`、`merchant_region`、`merchant_currency`、`auth_time`、`expire_time`、`is_cnsc`、`is_upgraded_cbsc`\r\n\r\n### get_shop_list_by_merchant\r\n\r\n[官方文档](https://open.shopee.com/documents/v2/v2.merchant.get_shop_list_by_merchant?module=93&type=1)\r\n\r\n**Query（必填）**：`page_no`（从 1 起）、`page_size`（最大 500）\r\n\r\n**Response 要点**：`shop_list[]`（`shop_id`、`sip_affi_shops` 等）、`more`、`is_cnsc`\r\n\r\n### get_merchant_warehouse_location_list / get_merchant_warehouse_list\r\n\r\n商户仓库位置与仓库列表。\r\n\r\n### get_warehouse_eligible_shop_list\r\n\r\n可使用仓库的店铺列表。\r\n\r\n### get_merchant_prepaid_a"},{"path":"references/apis/get-merchant-info.md","content":"# get_merchant_info\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/get_merchant_info.py` |\n| Method / path | GET `api/v2/merchant/get_merchant_info` |\n| 官方文档 | [get_merchant_info](https://open.shopee.com/documents/v2/v2.merchant.get_merchant_info?module=93&type=1) |\n| 用途 | Merchant name, region, currency, auth/expire time |\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：Merchant name, region, currency, auth/expire time\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/get_merchant_info.py '{\"shopId\": \"67890\"}'\n\n# 通用入口\npython scripts/merchant_api.py '{\"api\": \"get_merchant_info\", \"shopId\": \"67890\"}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`getMerchantInfo`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准"},{"path":"references/apis/get-merchant-prepaid-account-list.md","content":"# get_merchant_prepaid_account_list\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/get_merchant_prepaid_account_list.py` |\n| Method / path | GET `api/v2/merchant/get_merchant_prepaid_account_list` |\n| 官方文档 | [get_merchant_prepaid_account_list](https://open.shopee.com/documents/v2/v2.merchant.get_merchant_prepaid_account_list?module=93&type=1) |\n| 用途 | Merchant prepaid accounts |\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：Merchant prepaid accounts\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/get_merchant_prepaid_account_list.py '{\"shopId\": \"67890\"}'\n\n# 通用入口\npython scripts/merchant_api.py '{\"api\": \"get_merchant_prepaid_account_list\", \"shopId\": \"67890\"}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`getMerchantPrepaidAccountList`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准"}],"languages":[],"docsSourceLabel":"CLAWHUB","editorialOverview":null,"editorialQuality":{"score":100,"threshold":65,"status":"thin","wordCount":1132,"uniquenessScore":32,"reasons":["uniqueness-below-45"]}},"media":{"evidence":{"source":"no-media","verified":false,"confidence":"low","updatedAt":"2026-10-11T23:14:51.733Z","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-11T23:14:51.733Z","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-12T20:37:54.729Z","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"}]}}}