{"id":"dd1a0224-12f8-42b4-ac15-3ed6ab5dd018","entityType":"agent","slug":"clawhub-linkfox-ai-linkfox-shopee-store-voucher","name":"Shopee-店铺优惠券","canonicalUrl":"https://www.xpersona.co/agent/clawhub-linkfox-ai-linkfox-shopee-store-voucher","canonicalPath":"/agent/clawhub-linkfox-ai-linkfox-shopee-store-voucher","generatedAt":"2026-10-14T03:16:09.257Z","source":"CLAWHUB","claimStatus":"UNCLAIMED","verificationTier":"NONE","summary":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-12T01:57:07.625Z","emptyReason":null},"description":"Shopee（虾皮）店铺优惠券 Voucher（与 linkfox-shopee-store-auth 同系列），经 /shopee/developerProxy 转发 Shopee Open API Voucher 模块全部 6 个接口：add_voucher、get_voucher_list、get_voucher、update_voucher、end_voucher、delete_voucher。当用户提到 Shopee 优惠券、Voucher、店铺券、add_voucher、voucher_id、满减券、折扣码 时触发。即使未明确提及\"优惠券\"，只要涉及已授权 Shopee 店铺的 Voucher 活动管理，也应触发。","descriptionLabel":"Source description","evidenceSummary":"Capability contract not published. No trust telemetry is available yet. 958 downloads reported by the source. Last updated 10/12/2026.","installCommand":"clawhub skill install s171g8b6m2khwdy9ye8bxj0wx183vd4z:linkfox-shopee-store-voucher","sourceUrl":"https://clawhub.ai/linkfox-ai/linkfox-shopee-store-voucher","homepage":"https://clawhub.ai/linkfox-ai/skills/linkfox-shopee-store-voucher","primaryLinks":[{"label":"View on ClawHub","url":"https://clawhub.ai/linkfox-ai/linkfox-shopee-store-voucher","kind":"source"},{"label":"Homepage","url":"https://clawhub.ai/linkfox-ai/skills/linkfox-shopee-store-voucher","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-12T01:57:07.625Z","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-12T01:57:07.625Z","emptyReason":null},"stars":null,"forks":null,"downloads":958,"likes":null,"task":null,"library":null,"packageName":null,"latestVersion":"1.0.5","tractionLabel":"958 downloads"},"release":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-12T01:57:07.565Z","emptyReason":null},"lastUpdatedAt":"2026-10-12T01:57:07.625Z","lastCrawledAt":"2026-10-12T01:57:07.565Z","lastIndexedAt":null,"nextCrawlAt":"2026-10-13T01:57:07.565Z","lastVerifiedAt":null,"highlights":[{"version":"1.0.5","createdAt":"2026-08-14T15:09:33.303Z","changelog":"Update from 1.0.4 to 1.0.5","fileCount":23,"zipByteSize":33355},{"version":"1.0.4","createdAt":"2026-08-07T11:09:50.119Z","changelog":"Update from 1.0.3 to 1.0.4","fileCount":23,"zipByteSize":33248},{"version":"1.0.3","createdAt":"2026-07-13T12:26:56.160Z","changelog":"Update from 1.0.2 to 1.0.3","fileCount":15,"zipByteSize":17648},{"version":"1.0.2","createdAt":"2026-07-06T11:35:39.591Z","changelog":"Update from 1.0.1 to 1.0.2","fileCount":15,"zipByteSize":17110},{"version":"1.0.1","createdAt":"2026-07-03T08:34:51.885Z","changelog":"Update from 1.0.0 to 1.0.1","fileCount":14,"zipByteSize":15736},{"version":"1.0.0","createdAt":"2026-07-02T16:59:35.296Z","changelog":"Initial release","fileCount":15,"zipByteSize":17026}]},"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-voucher","setupComplexity":"low","setupSteps":["Install using `clawhub skill install s171g8b6m2khwdy9ye8bxj0wx183vd4z:linkfox-shopee-store-voucher` 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-voucher 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-voucher/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-linkfox-ai-linkfox-shopee-store-voucher/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-linkfox-ai-linkfox-shopee-store-voucher/trust"},"curlExamples":["curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-linkfox-ai-linkfox-shopee-store-voucher/snapshot\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-linkfox-ai-linkfox-shopee-store-voucher/contract\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-linkfox-ai-linkfox-shopee-store-voucher/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-14T03:16:09.256Z"}},"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-voucher/dossier","snapshotUrl":"https://www.xpersona.co/api/v1/agents/clawhub-linkfox-ai-linkfox-shopee-store-voucher/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-linkfox-ai-linkfox-shopee-store-voucher/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-linkfox-ai-linkfox-shopee-store-voucher/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-12T01:57:07.625Z","emptyReason":null},"readme":"Skill: Shopee-店铺优惠券\n\nOwner: linkfox-ai\n\nSummary: Shopee（虾皮）店铺优惠券 Voucher（与 linkfox-shopee-store-auth 同系列），经 /shopee/developerProxy 转发 Shopee Open API Voucher 模块全部 6 个接口：add_voucher、get_voucher_list、get_voucher、update_voucher、end_voucher、delete_voucher。当用户提到 Shopee 优惠券、Voucher、店铺券、add_voucher、voucher_id、满减券、折扣码 时触发。即使未明确提及\"优惠券\"，只要涉及已授权 Shopee 店铺的 Voucher 活动管理，也应触发。\n\nTags: latest:1.0.5\n\nVersion history:\n\nv1.0.5 | 2026-08-14T15:09:33.303Z | user\n\nUpdate from 1.0.4 to 1.0.5\n\nv1.0.4 | 2026-08-07T11:09:50.119Z | user\n\nUpdate from 1.0.3 to 1.0.4\n\nv1.0.3 | 2026-07-13T12:26:56.160Z | user\n\nUpdate from 1.0.2 to 1.0.3\n\nv1.0.2 | 2026-07-06T11:35:39.591Z | user\n\nUpdate from 1.0.1 to 1.0.2\n\nv1.0.1 | 2026-07-03T08:34:51.885Z | user\n\nUpdate from 1.0.0 to 1.0.1\n\nv1.0.0 | 2026-07-02T16:59:35.296Z | user\n\nInitial release\n\nArchive index:\n\nArchive v1.0.5: 23 files, 33355 bytes\n\nFiles: references/api.md (2870b), references/apis/add-voucher.md (1353b), references/apis/delete-voucher.md (1335b), references/apis/end-voucher.md (1317b), references/apis/get-voucher-list.md (1408b), references/apis/get-voucher.md (1345b), references/apis/update-voucher.md (1353b), references/onboarding.md (2046b), scripts/_shopee_voucher_common.py (11598b), scripts/_voucher_api_runner.py (4292b), scripts/_voucher_endpoints.py (1958b), scripts/add_voucher.py (703b), scripts/check_auth_dependency.py (3983b), scripts/delete_voucher.py (721b), scripts/end_voucher.py (703b), scripts/get_voucher_list.py (733b), scripts/get_voucher.py (703b), scripts/onboarding.py (24089b), scripts/update_voucher.py (721b), scripts/voucher_api.py (1014b), skill-card.md (2862b), SKILL.md (5078b), _meta.json (147b)\n\nFile v1.0.5:SKILL.md\n\n---\nname: linkfox-shopee-store-voucher\ndescription: Shopee（虾皮）店铺优惠券 Voucher（与 linkfox-shopee-store-auth 同系列），经 /shopee/developerProxy 转发 Shopee Open API Voucher 模块全部 6 个接口：add_voucher、get_voucher_list、get_voucher、update_voucher、end_voucher、delete_voucher。当用户提到 Shopee 优惠券、Voucher、店铺券、add_voucher、voucher_id、满减券、折扣码 时触发。即使未明确提及\"优惠券\"，只要涉及已授权 Shopee 店铺的 Voucher 活动管理，也应触发。\n---\n\n# Shopee 店铺优惠券 Voucher\n\nShopee Open Platform **Voucher 模块**（6 个 API）。**依赖 `linkfox-shopee-store-auth`** 选店；经 **`POST /shopee/developerProxy`** 传入 `shopId`（或 `merchantId`），由服务端解析 token 转发（`path` 须 `api/v2/voucher/...`）。\n\n## 调用方式\n\n- **API 端点**：`POST /shopee/developerProxy`（不同 Shopee Open API 操作通过 path/method 区分；完整参数/响应/错误码见 `references/api.md`）\n- **Python 脚本**：`python scripts/<脚本名>.py '<JSON 参数>' [--inline]`（可用脚本见上文脚本一览）\n- **成本约束**：本工具会消耗积分；失败/空结果不得自动换关键词、翻页或连续试探；需要继续检索时先向用户说明会产生额外消耗。\n\n**输出策略（脚本默认行为）**：\n- **始终**将完整响应写入 `<cwd>/linkfox/<YYYY-MM-DD>/<session>/data/linkfox-shopee-store-voucher-<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\nVoucher 模块索引：[v2.voucher.add_voucher](https://open.shopee.com/documents/v2/v2.voucher.add_voucher?module=112&type=1)\n\n---\n\n## Prerequisites\n\n1. 运行 `python scripts/check_auth_dependency.py`；exit code **42** → 先安装 **`linkfox-shopee-store-auth`**。\n2. 其它促销：Discount → `linkfox-shopee-store-discount`；Bundle Deal → `linkfox-shopee-store-bundle-deal`；Add-On Deal → `linkfox-shopee-store-add-on-deal`；Shop Flash Sale → `linkfox-shopee-store-shop-flash-sale`。\n\n## 可用脚本（6 个 API）\n\n| 脚本 | API | Method |\n|------|-----|--------|\n| `add_voucher.py` | add_voucher | POST |\n| `delete_voucher.py` | delete_voucher | POST |\n| `end_voucher.py` | end_voucher | POST |\n| `update_voucher.py` | update_voucher | POST |\n| `get_voucher.py` | get_voucher | GET |\n| `get_voucher_list.py` | get_voucher_list | GET |\n| `voucher_api.py` | 通用入口 | — |\n\n## 接口说明（按 API）\n\n入参与响应细节放在 `references/apis/`，SKILL 只保留索引。\n\n| API | 说明文档 |\n|-----|----------|\n| `add_voucher` | [references/apis/add-voucher.md](./references/apis/add-voucher.md) |\n| `delete_voucher` | [references/apis/delete-voucher.md](./references/apis/delete-voucher.md) |\n| `end_voucher` | [references/apis/end-voucher.md](./references/apis/end-voucher.md) |\n| `get_voucher` | [references/apis/get-voucher.md](./references/apis/get-voucher.md) |\n| `get_voucher_list` | [references/apis/get-voucher-list.md](./references/apis/get-voucher-list.md) |\n| `update_voucher` | [references/apis/update-voucher.md](./references/apis/update-voucher.md) |\n\n模块总览 / Feedback 见 [references/api.md](./references/api.md)。\n\n## Usage Scenarios\n\n### 1. 创建并管理优惠券\n1. `add_voucher.py` 传完整 `body`\n2. `get_voucher_list.py` 查看活动列表\n3. `update_voucher.py` / `end_voucher.py` 更新或结束\n\n## Not Applicable\n\n- 店铺授权 → `linkfox-shopee-store-auth`\n- 限时折扣 Discount → `linkfox-shopee-store-discount`\n- 套装优惠 Bundle Deal → `linkfox-shopee-store-bundle-deal`\n- 加购优惠 Add-On Deal → `linkfox-shopee-store-add-on-deal`\n- 商品 listing → `linkfox-shopee-store-product`\n\n## 积分消耗规则\n\n不消耗积分。\n\n**Feedback:** 见 `references/api.md`。\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-voucher\",\n  \"version\": \"1.0.5\",\n  \"publishedAt\": 1786720173303\n}\n\nFile v1.0.5:references/api.md\n\n# linkfox-shopee-store-voucher — 参数与字段参考\n\n> 单接口入参/响应说明已拆到 **`apis/`**（按 API 一份）；本文件保留模块总览与 Feedback。\nShopee **Voucher 模块**全部 6 个 API，经 **`POST /shopee/developerProxy`** 转发。\n\n授权见 **`linkfox-shopee-store-auth`**。官方索引：[v2.voucher.add_voucher](https://open.shopee.com/documents/v2/v2.voucher.add_voucher?module=112&type=1)\n\n## 通用约定\n\n- **path**：须 `api/v2/voucher/...`\n- **标识**：通常传 **`shopId`**\n- **官方文档 URL 规则**：`https://open.shopee.com/documents/v2/v2.voucher.{api}?module=112&type=1`\n\n---\n\n## Voucher 模块总览\n\n| # | API | Method | path | 脚本 | 官方文档 |\n|---|-----|--------|------|------|----------|\n| 1 | add_voucher | POST | `api/v2/voucher/add_voucher` | `add_voucher.py` | [apis/add-voucher.md](./apis/add-voucher.md) |\n| 2 | delete_voucher | POST | `api/v2/voucher/delete_voucher` | `delete_voucher.py` | [apis/delete-voucher.md](./apis/delete-voucher.md) |\n| 3 | end_voucher | POST | `api/v2/voucher/end_voucher` | `end_voucher.py` | [apis/end-voucher.md](./apis/end-voucher.md) |\n| 4 | get_voucher | GET | `api/v2/voucher/get_voucher` | `get_voucher.py` | [apis/get-voucher.md](./apis/get-voucher.md) |\n| 5 | get_voucher_list | GET | `api/v2/voucher/get_voucher_list` | `get_voucher_list.py` | [apis/get-voucher-list.md](./apis/get-voucher-list.md) |\n| 6 | update_voucher | POST | `api/v2/voucher/update_voucher` | `update_voucher.py` | [apis/update-voucher.md](./apis/update-voucher.md) |\n通用入口：`voucher_api.py`（JSON 含 `\"api\": \"<上表 API 名>\"`）。\n\n---\n\n## 常用接口说明\n\n| API | 要点 |\n|-----|------|\n| `add_voucher` | 创建店铺优惠券；POST `body` — [apis/add-voucher.md](./apis/add-voucher.md) |\n| `get_voucher_list` | 优惠券列表 — [apis/get-voucher-list.md](./apis/get-voucher-list.md) |\n| `get_voucher` | 优惠券详情 — [apis/get-voucher.md](./apis/get-voucher.md) |\n| `update_voucher` | 更新优惠券 — [apis/update-voucher.md](./apis/update-voucher.md) |\n| `end_voucher` | 提前结束 — [apis/end-voucher.md](./apis/end-voucher.md) |\n| `delete_voucher` | 删除优惠券 — [apis/delete-voucher.md](./apis/delete-voucher.md) |\n\n---\n\n## curl 示例\n\n```bash\ncurl -X POST ${LINKFOX_TOOL_GATEWAY}/shopee/developerProxy \\\n  -H \"Authorization: ${LINKFOX_AGENT_API_KEY:-$LINKFOXAGENT_API_KEY}\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"path\": \"api/v2/voucher/get_voucher_list\",\n    \"method\": \"GET\",\n    \"accessToken\": \"xxx\",\n    \"shopId\": \"67890\"\n  }'\n```\n\n---\n\n## Feedback API\n\n```bash\ncurl -X POST https://skill-api.linkfox.com/api/v1/public/feedback \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"skillName\":\"linkfox-shopee-store-voucher\",\"sentiment\":\"POSITIVE\",\n       \"category\":\"OTHER\",\"content\":\"优惠券查询正常\"}'\n```\n\nFile v1.0.5:references/apis/add-voucher.md\n\n# add_voucher\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/add_voucher.py` |\n| Method / path | POST `api/v2/voucher/add_voucher` |\n| 官方文档 | [add_voucher](https://open.shopee.com/documents/v2/v2.voucher.add_voucher?module=112&type=1) |\n| 用途 | Create shop voucher; pass full body |\n\n经 **`POST /shopee/developerProxy`** 转发；依赖 **`linkfox-shopee-store-auth`** 选店（通常传 `shopId` 或 `merchantId`）。\n\n---\n\n## 脚本 JSON 入参\n\n| 字段 | 类型 | 必填 | 说明 |\n|------|------|------|------|\n| `shopId` | string | 与 `merchantId` 二选一 | 店铺 ID（推荐；Public 等无店铺接口可省略） |\n| `merchantId` | string | 与 `shopId` 二选一 | 商户 ID |\n\n- Method：**POST**\n- POST：传 `body` / `requestBody`，或把 `body_fields` 列在 JSON 顶层\n- `shopId` / `merchantId` / `skipDepCheck` 等为网关选店保留字段，不会进 Shopee query/body\n- Registry notes：Create shop voucher; pass full body\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/add_voucher.py '{\"shopId\": \"67890\"}'\n\n# 通用入口\npython scripts/voucher_api.py '{\"api\": \"add_voucher\", \"shopId\": \"67890\"}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`addVoucher`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nFile v1.0.5:references/apis/delete-voucher.md\n\n# delete_voucher\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/delete_voucher.py` |\n| Method / path | POST `api/v2/voucher/delete_voucher` |\n| 官方文档 | [delete_voucher](https://open.shopee.com/documents/v2/v2.voucher.delete_voucher?module=112&type=1) |\n| 用途 | Delete voucher |\n\n经 **`POST /shopee/developerProxy`** 转发；依赖 **`linkfox-shopee-store-auth`** 选店（通常传 `shopId` 或 `merchantId`）。\n\n---\n\n## 脚本 JSON 入参\n\n| 字段 | 类型 | 必填 | 说明 |\n|------|------|------|------|\n| `shopId` | string | 与 `merchantId` 二选一 | 店铺 ID（推荐；Public 等无店铺接口可省略） |\n| `merchantId` | string | 与 `shopId` 二选一 | 商户 ID |\n\n- Method：**POST**\n- POST：传 `body` / `requestBody`，或把 `body_fields` 列在 JSON 顶层\n- `shopId` / `merchantId` / `skipDepCheck` 等为网关选店保留字段，不会进 Shopee query/body\n- Registry notes：Delete voucher\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/delete_voucher.py '{\"shopId\": \"67890\"}'\n\n# 通用入口\npython scripts/voucher_api.py '{\"api\": \"delete_voucher\", \"shopId\": \"67890\"}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`deleteVoucher`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nFile v1.0.5:references/apis/end-voucher.md\n\n# end_voucher\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/end_voucher.py` |\n| Method / path | POST `api/v2/voucher/end_voucher` |\n| 官方文档 | [end_voucher](https://open.shopee.com/documents/v2/v2.voucher.end_voucher?module=112&type=1) |\n| 用途 | End voucher early |\n\n经 **`POST /shopee/developerProxy`** 转发；依赖 **`linkfox-shopee-store-auth`** 选店（通常传 `shopId` 或 `merchantId`）。\n\n---\n\n## 脚本 JSON 入参\n\n| 字段 | 类型 | 必填 | 说明 |\n|------|------|------|------|\n| `shopId` | string | 与 `merchantId` 二选一 | 店铺 ID（推荐；Public 等无店铺接口可省略） |\n| `merchantId` | string | 与 `shopId` 二选一 | 商户 ID |\n\n- Method：**POST**\n- POST：传 `body` / `requestBody`，或把 `body_fields` 列在 JSON 顶层\n- `shopId` / `merchantId` / `skipDepCheck` 等为网关选店保留字段，不会进 Shopee query/body\n- Registry notes：End voucher early\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/end_voucher.py '{\"shopId\": \"67890\"}'\n\n# 通用入口\npython scripts/voucher_api.py '{\"api\": \"end_voucher\", \"shopId\": \"67890\"}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`endVoucher`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nFile v1.0.5:references/apis/get-voucher-list.md\n\n# get_voucher_list\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/get_voucher_list.py` |\n| Method / path | GET `api/v2/voucher/get_voucher_list` |\n| 官方文档 | [get_voucher_list](https://open.shopee.com/documents/v2/v2.voucher.get_voucher_list?module=112&type=1) |\n| 用途 | List vouchers; pagination/status filters |\n\n经 **`POST /shopee/developerProxy`** 转发；依赖 **`linkfox-shopee-store-auth`** 选店（通常传 `shopId` 或 `merchantId`）。\n\n---\n\n## 脚本 JSON 入参\n\n| 字段 | 类型 | 必填 | 说明 |\n|------|------|------|------|\n| `shopId` | string | 与 `merchantId` 二选一 | 店铺 ID（推荐；Public 等无店铺接口可省略） |\n| `merchantId` | string | 与 `shopId` 二选一 | 商户 ID |\n\n- Method：**GET**\n- GET：业务字段放 JSON **顶层**，runner 拼进 `queryString`（不含 `?`）\n- `shopId` / `merchantId` / `skipDepCheck` 等为网关选店保留字段，不会进 Shopee query/body\n- Registry notes：List vouchers; pagination/status filters\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/get_voucher_list.py '{\"shopId\": \"67890\"}'\n\n# 通用入口\npython scripts/voucher_api.py '{\"api\": \"get_voucher_list\", \"shopId\": \"67890\"}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`getVoucherList`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nFile v1.0.5:references/apis/get-voucher.md\n\n# get_voucher\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/get_voucher.py` |\n| Method / path | GET `api/v2/voucher/get_voucher` |\n| 官方文档 | [get_voucher](https://open.shopee.com/documents/v2/v2.voucher.get_voucher?module=112&type=1) |\n| 用途 | Voucher detail by voucher_id |\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：Voucher detail by voucher_id\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/get_voucher.py '{\"shopId\": \"67890\"}'\n\n# 通用入口\npython scripts/voucher_api.py '{\"api\": \"get_voucher\", \"shopId\": \"67890\"}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`getVoucher`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nFile v1.0.5:references/apis/update-voucher.md\n\n# update_voucher\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/update_voucher.py` |\n| Method / path | POST `api/v2/voucher/update_voucher` |\n| 官方文档 | [update_voucher](https://open.shopee.com/documents/v2/v2.voucher.update_voucher?module=112&type=1) |\n| 用途 | Update voucher settings |\n\n经 **`POST /shopee/developerProxy`** 转发；依赖 **`linkfox-shopee-store-auth`** 选店（通常传 `shopId` 或 `merchantId`）。\n\n---\n\n## 脚本 JSON 入参\n\n| 字段 | 类型 | 必填 | 说明 |\n|------|------|------|------|\n| `shopId` | string | 与 `merchantId` 二选一 | 店铺 ID（推荐；Public 等无店铺接口可省略） |\n| `merchantId` | string | 与 `shopId` 二选一 | 商户 ID |\n\n- Method：**POST**\n- POST：传 `body` / `requestBody`，或把 `body_fields` 列在 JSON 顶层\n- `shopId` / `merchantId` / `skipDepCheck` 等为网关选店保留字段，不会进 Shopee query/body\n- Registry notes：Update voucher settings\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/update_voucher.py '{\"shopId\": \"67890\"}'\n\n# 通用入口\npython scripts/voucher_api.py '{\"api\": \"update_voucher\", \"shopId\": \"67890\"}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`updateVoucher`**（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\nShopee-店铺优惠券 helps agents manage Shopee store voucher campaigns through LinkFox, including creating, listing, viewing, updating, ending, and deleting vouchers.\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 and ecommerce operators use this skill to manage Shopee store voucher activity from an agent workflow. It supports voucher creation, lookup, updates, early ending, and deletion for authorized Shopee shops.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: The skill can perform destructive voucher actions such as delete, end, and update.\n\nMitigation: Confirm delete, end, and update actions explicitly before running the related scripts.\n\nRisk: The skill handles LinkFox account credentials for Shopee voucher operations.\n\nMitigation: Use a trusted environment and prefer a secret manager or per-session environment variable for API keys.\n\nRisk: Endpoint environment variable overrides can redirect LinkFox/Shopee operations.\n\nMitigation: Avoid overriding LinkFox endpoint environment variables unless the target endpoint is trusted.\n\nRisk: Saved response files may contain sensitive business data.\n\nMitigation: Treat saved LinkFox response files as sensitive and remove them when they are no longer needed.\n\n## Reference(s):\n\n- [ClawHub skill page](https://clawhub.ai/linkfox-ai/skills/linkfox-shopee-store-voucher)\n- [Shopee Voucher API overview](references/api.md)\n- [add_voucher reference](references/apis/add-voucher.md)\n- [delete_voucher reference](references/apis/delete-voucher.md)\n- [end_voucher reference](references/apis/end-voucher.md)\n- [get_voucher_list reference](references/apis/get-voucher-list.md)\n- [get_voucher reference](references/apis/get-voucher.md)\n- [update_voucher reference](references/apis/update-voucher.md)\n- [Authentication and billing onboarding](references/onboarding.md)\n- [Shopee Open Platform voucher add_voucher documentation](https://open.shopee.com/documents/v2/v2.voucher.add_voucher?module=112&type=1)\n\n## Skill Output:\n\n**Output Type(s):** [Shell commands, JSON, Files, Guidance]\n\n**Output Format:** [Markdown guidance with Python command examples, JSON responses, and saved response files]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [Full API responses are saved locally; larger responses may be summarized in stdout unless inline output is requested.]\n\n## Skill Version(s):\n\n1.0.5 (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.4: 23 files, 33248 bytes\n\nFiles: references/api.md (2870b), references/apis/add-voucher.md (1353b), references/apis/delete-voucher.md (1335b), references/apis/end-voucher.md (1317b), references/apis/get-voucher-list.md (1408b), references/apis/get-voucher.md (1345b), references/apis/update-voucher.md (1353b), references/onboarding.md (2046b), scripts/_shopee_voucher_common.py (11598b), scripts/_voucher_api_runner.py (4292b), scripts/_voucher_endpoints.py (1958b), scripts/add_voucher.py (703b), scripts/check_auth_dependency.py (3983b), scripts/delete_voucher.py (721b), scripts/end_voucher.py (703b), scripts/get_voucher_list.py (733b), scripts/get_voucher.py (703b), scripts/onboarding.py (24089b), scripts/update_voucher.py (721b), scripts/voucher_api.py (1014b), skill-card.md (2469b), SKILL.md (5078b), _meta.json (147b)\n\nFile v1.0.4:SKILL.md\n\n---\nname: linkfox-shopee-store-voucher\ndescription: Shopee（虾皮）店铺优惠券 Voucher（与 linkfox-shopee-store-auth 同系列），经 /shopee/developerProxy 转发 Shopee Open API Voucher 模块全部 6 个接口：add_voucher、get_voucher_list、get_voucher、update_voucher、end_voucher、delete_voucher。当用户提到 Shopee 优惠券、Voucher、店铺券、add_voucher、voucher_id、满减券、折扣码 时触发。即使未明确提及\"优惠券\"，只要涉及已授权 Shopee 店铺的 Voucher 活动管理，也应触发。\n---\n\n# Shopee 店铺优惠券 Voucher\n\nShopee Open Platform **Voucher 模块**（6 个 API）。**依赖 `linkfox-shopee-store-auth`** 选店；经 **`POST /shopee/developerProxy`** 传入 `shopId`（或 `merchantId`），由服务端解析 token 转发（`path` 须 `api/v2/voucher/...`）。\n\n## 调用方式\n\n- **API 端点**：`POST /shopee/developerProxy`（不同 Shopee Open API 操作通过 path/method 区分；完整参数/响应/错误码见 `references/api.md`）\n- **Python 脚本**：`python scripts/<脚本名>.py '<JSON 参数>' [--inline]`（可用脚本见上文脚本一览）\n- **成本约束**：本工具会消耗积分；失败/空结果不得自动换关键词、翻页或连续试探；需要继续检索时先向用户说明会产生额外消耗。\n\n**输出策略（脚本默认行为）**：\n- **始终**将完整响应写入 `<cwd>/linkfox/<YYYY-MM-DD>/<session>/data/linkfox-shopee-store-voucher-<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\nVoucher 模块索引：[v2.voucher.add_voucher](https://open.shopee.com/documents/v2/v2.voucher.add_voucher?module=112&type=1)\n\n---\n\n## Prerequisites\n\n1. 运行 `python scripts/check_auth_dependency.py`；exit code **42** → 先安装 **`linkfox-shopee-store-auth`**。\n2. 其它促销：Discount → `linkfox-shopee-store-discount`；Bundle Deal → `linkfox-shopee-store-bundle-deal`；Add-On Deal → `linkfox-shopee-store-add-on-deal`；Shop Flash Sale → `linkfox-shopee-store-shop-flash-sale`。\n\n## 可用脚本（6 个 API）\n\n| 脚本 | API | Method |\n|------|-----|--------|\n| `add_voucher.py` | add_voucher | POST |\n| `delete_voucher.py` | delete_voucher | POST |\n| `end_voucher.py` | end_voucher | POST |\n| `update_voucher.py` | update_voucher | POST |\n| `get_voucher.py` | get_voucher | GET |\n| `get_voucher_list.py` | get_voucher_list | GET |\n| `voucher_api.py` | 通用入口 | — |\n\n## 接口说明（按 API）\n\n入参与响应细节放在 `references/apis/`，SKILL 只保留索引。\n\n| API | 说明文档 |\n|-----|----------|\n| `add_voucher` | [references/apis/add-voucher.md](./references/apis/add-voucher.md) |\n| `delete_voucher` | [references/apis/delete-voucher.md](./references/apis/delete-voucher.md) |\n| `end_voucher` | [references/apis/end-voucher.md](./references/apis/end-voucher.md) |\n| `get_voucher` | [references/apis/get-voucher.md](./references/apis/get-voucher.md) |\n| `get_voucher_list` | [references/apis/get-voucher-list.md](./references/apis/get-voucher-list.md) |\n| `update_voucher` | [references/apis/update-voucher.md](./references/apis/update-voucher.md) |\n\n模块总览 / Feedback 见 [references/api.md](./references/api.md)。\n\n## Usage Scenarios\n\n### 1. 创建并管理优惠券\n1. `add_voucher.py` 传完整 `body`\n2. `get_voucher_list.py` 查看活动列表\n3. `update_voucher.py` / `end_voucher.py` 更新或结束\n\n## Not Applicable\n\n- 店铺授权 → `linkfox-shopee-store-auth`\n- 限时折扣 Discount → `linkfox-shopee-store-discount`\n- 套装优惠 Bundle Deal → `linkfox-shopee-store-bundle-deal`\n- 加购优惠 Add-On Deal → `linkfox-shopee-store-add-on-deal`\n- 商品 listing → `linkfox-shopee-store-product`\n\n## 积分消耗规则\n\n不消耗积分。\n\n**Feedback:** 见 `references/api.md`。\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-voucher\",\n  \"version\": \"1.0.4\",\n  \"publishedAt\": 1786100990119\n}\n\nFile v1.0.4:references/api.md\n\n# linkfox-shopee-store-voucher — 参数与字段参考\n\n> 单接口入参/响应说明已拆到 **`apis/`**（按 API 一份）；本文件保留模块总览与 Feedback。\nShopee **Voucher 模块**全部 6 个 API，经 **`POST /shopee/developerProxy`** 转发。\n\n授权见 **`linkfox-shopee-store-auth`**。官方索引：[v2.voucher.add_voucher](https://open.shopee.com/documents/v2/v2.voucher.add_voucher?module=112&type=1)\n\n## 通用约定\n\n- **path**：须 `api/v2/voucher/...`\n- **标识**：通常传 **`shopId`**\n- **官方文档 URL 规则**：`https://open.shopee.com/documents/v2/v2.voucher.{api}?module=112&type=1`\n\n---\n\n## Voucher 模块总览\n\n| # | API | Method | path | 脚本 | 官方文档 |\n|---|-----|--------|------|------|----------|\n| 1 | add_voucher | POST | `api/v2/voucher/add_voucher` | `add_voucher.py` | [apis/add-voucher.md](./apis/add-voucher.md) |\n| 2 | delete_voucher | POST | `api/v2/voucher/delete_voucher` | `delete_voucher.py` | [apis/delete-voucher.md](./apis/delete-voucher.md) |\n| 3 | end_voucher | POST | `api/v2/voucher/end_voucher` | `end_voucher.py` | [apis/end-voucher.md](./apis/end-voucher.md) |\n| 4 | get_voucher | GET | `api/v2/voucher/get_voucher` | `get_voucher.py` | [apis/get-voucher.md](./apis/get-voucher.md) |\n| 5 | get_voucher_list | GET | `api/v2/voucher/get_voucher_list` | `get_voucher_list.py` | [apis/get-voucher-list.md](./apis/get-voucher-list.md) |\n| 6 | update_voucher | POST | `api/v2/voucher/update_voucher` | `update_voucher.py` | [apis/update-voucher.md](./apis/update-voucher.md) |\n通用入口：`voucher_api.py`（JSON 含 `\"api\": \"<上表 API 名>\"`）。\n\n---\n\n## 常用接口说明\n\n| API | 要点 |\n|-----|------|\n| `add_voucher` | 创建店铺优惠券；POST `body` — [apis/add-voucher.md](./apis/add-voucher.md) |\n| `get_voucher_list` | 优惠券列表 — [apis/get-voucher-list.md](./apis/get-voucher-list.md) |\n| `get_voucher` | 优惠券详情 — [apis/get-voucher.md](./apis/get-voucher.md) |\n| `update_voucher` | 更新优惠券 — [apis/update-voucher.md](./apis/update-voucher.md) |\n| `end_voucher` | 提前结束 — [apis/end-voucher.md](./apis/end-voucher.md) |\n| `delete_voucher` | 删除优惠券 — [apis/delete-voucher.md](./apis/delete-voucher.md) |\n\n---\n\n## curl 示例\n\n```bash\ncurl -X POST ${LINKFOX_TOOL_GATEWAY}/shopee/developerProxy \\\n  -H \"Authorization: ${LINKFOX_AGENT_API_KEY:-$LINKFOXAGENT_API_KEY}\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"path\": \"api/v2/voucher/get_voucher_list\",\n    \"method\": \"GET\",\n    \"accessToken\": \"xxx\",\n    \"shopId\": \"67890\"\n  }'\n```\n\n---\n\n## Feedback API\n\n```bash\ncurl -X POST https://skill-api.linkfox.com/api/v1/public/feedback \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"skillName\":\"linkfox-shopee-store-voucher\",\"sentiment\":\"POSITIVE\",\n       \"category\":\"OTHER\",\"content\":\"优惠券查询正常\"}'\n```\n\nFile v1.0.4:references/apis/add-voucher.md\n\n# add_voucher\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/add_voucher.py` |\n| Method / path | POST `api/v2/voucher/add_voucher` |\n| 官方文档 | [add_voucher](https://open.shopee.com/documents/v2/v2.voucher.add_voucher?module=112&type=1) |\n| 用途 | Create shop voucher; pass full body |\n\n经 **`POST /shopee/developerProxy`** 转发；依赖 **`linkfox-shopee-store-auth`** 选店（通常传 `shopId` 或 `merchantId`）。\n\n---\n\n## 脚本 JSON 入参\n\n| 字段 | 类型 | 必填 | 说明 |\n|------|------|------|------|\n| `shopId` | string | 与 `merchantId` 二选一 | 店铺 ID（推荐；Public 等无店铺接口可省略） |\n| `merchantId` | string | 与 `shopId` 二选一 | 商户 ID |\n\n- Method：**POST**\n- POST：传 `body` / `requestBody`，或把 `body_fields` 列在 JSON 顶层\n- `shopId` / `merchantId` / `skipDepCheck` 等为网关选店保留字段，不会进 Shopee query/body\n- Registry notes：Create shop voucher; pass full body\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/add_voucher.py '{\"shopId\": \"67890\"}'\n\n# 通用入口\npython scripts/voucher_api.py '{\"api\": \"add_voucher\", \"shopId\": \"67890\"}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`addVoucher`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nFile v1.0.4:references/apis/delete-voucher.md\n\n# delete_voucher\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/delete_voucher.py` |\n| Method / path | POST `api/v2/voucher/delete_voucher` |\n| 官方文档 | [delete_voucher](https://open.shopee.com/documents/v2/v2.voucher.delete_voucher?module=112&type=1) |\n| 用途 | Delete voucher |\n\n经 **`POST /shopee/developerProxy`** 转发；依赖 **`linkfox-shopee-store-auth`** 选店（通常传 `shopId` 或 `merchantId`）。\n\n---\n\n## 脚本 JSON 入参\n\n| 字段 | 类型 | 必填 | 说明 |\n|------|------|------|------|\n| `shopId` | string | 与 `merchantId` 二选一 | 店铺 ID（推荐；Public 等无店铺接口可省略） |\n| `merchantId` | string | 与 `shopId` 二选一 | 商户 ID |\n\n- Method：**POST**\n- POST：传 `body` / `requestBody`，或把 `body_fields` 列在 JSON 顶层\n- `shopId` / `merchantId` / `skipDepCheck` 等为网关选店保留字段，不会进 Shopee query/body\n- Registry notes：Delete voucher\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/delete_voucher.py '{\"shopId\": \"67890\"}'\n\n# 通用入口\npython scripts/voucher_api.py '{\"api\": \"delete_voucher\", \"shopId\": \"67890\"}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`deleteVoucher`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nFile v1.0.4:references/apis/end-voucher.md\n\n# end_voucher\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/end_voucher.py` |\n| Method / path | POST `api/v2/voucher/end_voucher` |\n| 官方文档 | [end_voucher](https://open.shopee.com/documents/v2/v2.voucher.end_voucher?module=112&type=1) |\n| 用途 | End voucher early |\n\n经 **`POST /shopee/developerProxy`** 转发；依赖 **`linkfox-shopee-store-auth`** 选店（通常传 `shopId` 或 `merchantId`）。\n\n---\n\n## 脚本 JSON 入参\n\n| 字段 | 类型 | 必填 | 说明 |\n|------|------|------|------|\n| `shopId` | string | 与 `merchantId` 二选一 | 店铺 ID（推荐；Public 等无店铺接口可省略） |\n| `merchantId` | string | 与 `shopId` 二选一 | 商户 ID |\n\n- Method：**POST**\n- POST：传 `body` / `requestBody`，或把 `body_fields` 列在 JSON 顶层\n- `shopId` / `merchantId` / `skipDepCheck` 等为网关选店保留字段，不会进 Shopee query/body\n- Registry notes：End voucher early\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/end_voucher.py '{\"shopId\": \"67890\"}'\n\n# 通用入口\npython scripts/voucher_api.py '{\"api\": \"end_voucher\", \"shopId\": \"67890\"}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`endVoucher`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nFile v1.0.4:references/apis/get-voucher-list.md\n\n# get_voucher_list\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/get_voucher_list.py` |\n| Method / path | GET `api/v2/voucher/get_voucher_list` |\n| 官方文档 | [get_voucher_list](https://open.shopee.com/documents/v2/v2.voucher.get_voucher_list?module=112&type=1) |\n| 用途 | List vouchers; pagination/status filters |\n\n经 **`POST /shopee/developerProxy`** 转发；依赖 **`linkfox-shopee-store-auth`** 选店（通常传 `shopId` 或 `merchantId`）。\n\n---\n\n## 脚本 JSON 入参\n\n| 字段 | 类型 | 必填 | 说明 |\n|------|------|------|------|\n| `shopId` | string | 与 `merchantId` 二选一 | 店铺 ID（推荐；Public 等无店铺接口可省略） |\n| `merchantId` | string | 与 `shopId` 二选一 | 商户 ID |\n\n- Method：**GET**\n- GET：业务字段放 JSON **顶层**，runner 拼进 `queryString`（不含 `?`）\n- `shopId` / `merchantId` / `skipDepCheck` 等为网关选店保留字段，不会进 Shopee query/body\n- Registry notes：List vouchers; pagination/status filters\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/get_voucher_list.py '{\"shopId\": \"67890\"}'\n\n# 通用入口\npython scripts/voucher_api.py '{\"api\": \"get_voucher_list\", \"shopId\": \"67890\"}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`getVoucherList`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nFile v1.0.4:references/apis/get-voucher.md\n\n# get_voucher\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/get_voucher.py` |\n| Method / path | GET `api/v2/voucher/get_voucher` |\n| 官方文档 | [get_voucher](https://open.shopee.com/documents/v2/v2.voucher.get_voucher?module=112&type=1) |\n| 用途 | Voucher detail by voucher_id |\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：Voucher detail by voucher_id\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/get_voucher.py '{\"shopId\": \"67890\"}'\n\n# 通用入口\npython scripts/voucher_api.py '{\"api\": \"get_voucher\", \"shopId\": \"67890\"}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`getVoucher`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准\n\nFile v1.0.4:references/apis/update-voucher.md\n\n# update_voucher\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/update_voucher.py` |\n| Method / path | POST `api/v2/voucher/update_voucher` |\n| 官方文档 | [update_voucher](https://open.shopee.com/documents/v2/v2.voucher.update_voucher?module=112&type=1) |\n| 用途 | Update voucher settings |\n\n经 **`POST /shopee/developerProxy`** 转发；依赖 **`linkfox-shopee-store-auth`** 选店（通常传 `shopId` 或 `merchantId`）。\n\n---\n\n## 脚本 JSON 入参\n\n| 字段 | 类型 | 必填 | 说明 |\n|------|------|------|------|\n| `shopId` | string | 与 `merchantId` 二选一 | 店铺 ID（推荐；Public 等无店铺接口可省略） |\n| `merchantId` | string | 与 `shopId` 二选一 | 商户 ID |\n\n- Method：**POST**\n- POST：传 `body` / `requestBody`，或把 `body_fields` 列在 JSON 顶层\n- `shopId` / `merchantId` / `skipDepCheck` 等为网关选店保留字段，不会进 Shopee query/body\n- Registry notes：Update voucher settings\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/update_voucher.py '{\"shopId\": \"67890\"}'\n\n# 通用入口\npython scripts/voucher_api.py '{\"api\": \"update_voucher\", \"shopId\": \"67890\"}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`updateVoucher`**（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 manage Shopee shop vouchers through LinkFox's Shopee developer proxy, covering creation, listing, detail lookup, updates, early ending, and deletion.\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 manage authorized Shopee store voucher campaigns from an agent workflow, including creating, reviewing, updating, ending, and deleting vouchers.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: The skill can manage live Shopee voucher state, including add, update, end, and delete actions.\n\nMitigation: Manually confirm intended shop, voucher, and operation details before executing any state-changing action.\n\nRisk: The skill uses a LinkFox API key and may guide SMS login, API-key generation, and payment-order creation.\n\nMitigation: Use only trusted account credentials, avoid sharing verification codes unless account onboarding is intended, and confirm billing actions before placing orders.\n\nRisk: The skill saves full API responses locally, which may include operational shop or voucher data.\n\nMitigation: Run it in an appropriate workspace and review saved response files before sharing or committing generated output.\n\n## Reference(s):\n\n- [Shopee voucher API reference](references/api.md)\n- [Voucher onboarding and billing guidance](references/onboarding.md)\n- [Shopee Open Platform add_voucher documentation](https://open.shopee.com/documents/v2/v2.voucher.add_voucher?module=112&type=1)\n- [ClawHub skill page](https://clawhub.ai/linkfox-ai/skills/linkfox-shopee-store-voucher)\n\n## Skill Output:\n\n**Output Type(s):** [Text, Shell commands, Configuration, Guidance, JSON files]\n\n**Output Format:** [Markdown guidance with inline shell commands and saved JSON API responses]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [Full API responses are saved under ./linkfox/<date>/<session>/data; large responses print summaries unless inline output is requested.]\n\n## Skill Version(s):\n\n1.0.4 (source: ClawHub 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, 17648 bytes\n\nFiles: references/api.md (2666b), scripts/_shopee_voucher_common.py (11412b), scripts/_voucher_api_runner.py (4279b), scripts/_voucher_endpoints.py (1958b), scripts/add_voucher.py (676b), scripts/check_auth_dependency.py (3983b), scripts/delete_voucher.py (694b), scripts/end_voucher.py (676b), scripts/get_voucher_list.py (706b), scripts/get_voucher.py (676b), scripts/update_voucher.py (694b), scripts/voucher_api.py (1014b), skill-card.md (2334b), SKILL.md (4873b), _meta.json (147b)\n\nFile v1.0.3:SKILL.md\n\n---\nname: linkfox-shopee-store-voucher\ndescription: Shopee（虾皮）店铺优惠券 Voucher（与 linkfox-shopee-store-auth 同系列），经 /shopee/developerProxy 转发 Shopee Open API Voucher 模块全部 6 个接口：add_voucher、get_voucher_list、get_voucher、update_voucher、end_voucher、delete_voucher。当用户提到 Shopee 优惠券、Voucher、店铺券、add_voucher、voucher_id、满减券、折扣码 时触发。即使未明确提及\"优惠券\"，只要涉及已授权 Shopee 店铺的 Voucher 活动管理，也应触发。\n---\n\n# Shopee 店铺优惠券 Voucher\n\nShopee Open Platform **Voucher 模块**（6 个 API）。**依赖 `linkfox-shopee-store-auth`**：先取 `accessToken`，再经 **`POST /shopee/developerProxy`** 转发（`path` 须 `api/v2/voucher/...`）。\n\n## 调用方式\n\n- **API 端点**：`POST /shopee/developerProxy`（不同 Shopee Open API 操作通过 path/method 区分；完整参数/响应/错误码见 `references/api.md`）\n- **Python 脚本**：`python scripts/<脚本名>.py '<JSON 参数>' [--inline]`（可用脚本见上文脚本一览）\n- **成本约束**：本工具会消耗积分；失败/空结果不得自动换关键词、翻页或连续试探；需要继续检索时先向用户说明会产生额外消耗。\n\n**输出策略（脚本默认行为）**：\n- **始终**将完整响应写入 `<cwd>/linkfox/<YYYY-MM-DD>/<session>/data/linkfox-shopee-store-voucher-<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\nVoucher 模块索引：[v2.voucher.add_voucher](https://open.shopee.com/documents/v2/v2.voucher.add_voucher?module=112&type=1)\n\n---\n\n## Prerequisites\n\n1. 运行 `python scripts/check_auth_dependency.py`；exit code **42** → 先安装 **`linkfox-shopee-store-auth`**。\n2. 其它促销：Discount → `linkfox-shopee-store-discount`；Bundle Deal → `linkfox-shopee-store-bundle-deal`；Add-On Deal → `linkfox-shopee-store-add-on-deal`；Shop Flash Sale → `linkfox-shopee-store-shop-flash-sale`。\n\n## 可用脚本（6 个 API）\n\n| 脚本 | API | Method |\n|------|-----|--------|\n| `add_voucher.py` | add_voucher | POST |\n| `delete_voucher.py` | delete_voucher | POST |\n| `end_voucher.py` | end_voucher | POST |\n| `update_voucher.py` | update_voucher | POST |\n| `get_voucher.py` | get_voucher | GET |\n| `get_voucher_list.py` | get_voucher_list | GET |\n| `voucher_api.py` | 通用入口 | — |\n\n## Usage Scenarios\n\n### 1. 创建并管理优惠券\n1. `add_voucher.py` 传完整 `body`\n2. `get_voucher_list.py` 查看活动列表\n3. `update_voucher.py` / `end_voucher.py` 更新或结束\n\n## Not Applicable\n\n- 店铺授权 → `linkfox-shopee-store-auth`\n- 限时折扣 Discount → `linkfox-shopee-store-discount`\n- 套装优惠 Bundle Deal → `linkfox-shopee-store-bundle-deal`\n- 加购优惠 Add-On Deal → `linkfox-shopee-store-add-on-deal`\n- 商品 listing → `linkfox-shopee-store-product`\n\n## 积分消耗规则\n\n不消耗积分。\n\n**Feedback:** 见 `references/api.md`。\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-voucher\",\n  \"version\": \"1.0.3\",\n  \"publishedAt\": 1783945616160\n}\n\nFile v1.0.3:references/api.md\n\n# linkfox-shopee-store-voucher — 参数与字段参考\n\nShopee **Voucher 模块**全部 6 个 API，经 **`POST /shopee/developerProxy`** 转发。\n\n授权见 **`linkfox-shopee-store-auth`**。官方索引：[v2.voucher.add_voucher](https://open.shopee.com/documents/v2/v2.voucher.add_voucher?module=112&type=1)\n\n## 通用约定\n\n- **path**：须 `api/v2/voucher/...`\n- **标识**：通常传 **`shopId`**\n- **官方文档 URL 规则**：`https://open.shopee.com/documents/v2/v2.voucher.{api}?module=112&type=1`\n\n---\n\n## Voucher 模块总览\n\n| # | API | Method | path | 脚本 | 官方文档 |\n|---|-----|--------|------|------|----------|\n| 1 | add_voucher | POST | `api/v2/voucher/add_voucher` | `add_voucher.py` | [doc](https://open.shopee.com/documents/v2/v2.voucher.add_voucher?module=112&type=1) |\n| 2 | delete_voucher | POST | `api/v2/voucher/delete_voucher` | `delete_voucher.py` | [doc](https://open.shopee.com/documents/v2/v2.voucher.delete_voucher?module=112&type=1) |\n| 3 | end_voucher | POST | `api/v2/voucher/end_voucher` | `end_voucher.py` | [doc](https://open.shopee.com/documents/v2/v2.voucher.end_voucher?module=112&type=1) |\n| 4 | get_voucher | GET | `api/v2/voucher/get_voucher` | `get_voucher.py` | [doc](https://open.shopee.com/documents/v2/v2.voucher.get_voucher?module=112&type=1) |\n| 5 | get_voucher_list | GET | `api/v2/voucher/get_voucher_list` | `get_voucher_list.py` | [doc](https://open.shopee.com/documents/v2/v2.voucher.get_voucher_list?module=112&type=1) |\n| 6 | update_voucher | POST | `api/v2/voucher/update_voucher` | `update_voucher.py` | [doc](https://open.shopee.com/documents/v2/v2.voucher.update_voucher?module=112&type=1) |\n通用入口：`voucher_api.py`（JSON 含 `\"api\": \"<上表 API 名>\"`）。\n\n---\n\n## 常用接口说明\n\n| API | 要点 |\n|-----|------|\n| `add_voucher` | 创建店铺优惠券；POST `body` |\n| `get_voucher_list` | 优惠券列表 |\n| `get_voucher` | 优惠券详情 |\n| `update_voucher` | 更新优惠券 |\n| `end_voucher` | 提前结束 |\n| `delete_voucher` | 删除优惠券 |\n\n---\n\n## curl 示例\n\n```bash\ncurl -X POST ${LINKFOX_TOOL_GATEWAY}/shopee/developerProxy \\\n  -H \"Authorization: ${LINKFOX_AGENT_API_KEY:-$LINKFOXAGENT_API_KEY}\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"path\": \"api/v2/voucher/get_voucher_list\",\n    \"method\": \"GET\",\n    \"accessToken\": \"xxx\",\n    \"shopId\": \"67890\"\n  }'\n```\n\n---\n\n## Feedback API\n\n```bash\ncurl -X POST https://skill-api.linkfox.com/api/v1/public/feedback \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"skillName\":\"linkfox-shopee-store-voucher\",\"sentiment\":\"POSITIVE\",\n       \"category\":\"OTHER\",\"content\":\"优惠券查询正常\"}'\n```\n\nFile v1.0.3:skill-card.md\n\n## Description: <br>\nManages Shopee store vouchers through the LinkFox developer proxy, covering create, list, detail, update, end, and delete operations for authorized shops. <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 and developers use this skill to manage voucher campaigns for authorized Shopee shops, including creating, reviewing, updating, ending, or deleting store vouchers. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: The skill can update, end, or delete live Shopee shop voucher promotions. <br>\nMitigation: Before using update, end, or delete actions, require the agent to show the exact voucher ID and planned change, then obtain explicit confirmation. <br>\nRisk: Full LinkFox and Shopee API responses are saved to local linkfox session files and may contain business-sensitive data. <br>\nMitigation: Treat saved response files as sensitive business data, restrict access to the workspace, and delete the files when they are no longer needed. <br>\n\n\n## Reference(s): <br>\n- [ClawHub release page](https://clawhub.ai/linkfox-ai/skills/linkfox-shopee-store-voucher) <br>\n- [Voucher API reference](references/api.md) <br>\n- [Shopee Open Platform voucher documentation](https://open.shopee.com/documents/v2/v2.voucher.add_voucher?module=112&type=1) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [Shell commands, JSON, Files, Guidance] <br>\n**Output Format:** [JSON responses printed to stdout, with full responses saved as JSON files and large responses summarized unless inline output is requested.] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [Requires LinkFox API credentials and the linkfox-shopee-store-auth dependency; response files are written under a linkfox session directory.] <br>\n\n## Skill Version(s): <br>\n1.0.3 (source: server release metadata) <br>\n\n## Ethical Considerations: <br>\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment. <br>\n\nArchive v1.0.2: 15 files, 17110 bytes\n\nFiles: references/api.md (2666b), scripts/_shopee_voucher_common.py (11318b), scripts/_voucher_api_runner.py (4279b), scripts/_voucher_endpoints.py (1958b), scripts/add_voucher.py (676b), scripts/check_auth_dependency.py (3983b), scripts/delete_voucher.py (694b), scripts/end_voucher.py (676b), scripts/get_voucher_list.py (706b), scripts/get_voucher.py (676b), scripts/update_voucher.py (694b), scripts/voucher_api.py (1014b), skill-card.md (3024b), SKILL.md (3739b), _meta.json (147b)\n\nFile v1.0.2:SKILL.md\n\n---\nname: linkfox-shopee-store-voucher\ndescription: Shopee（虾皮）店铺优惠券 Voucher（与 linkfox-shopee-store-auth 同系列），经 /shopee/developerProxy 转发 Shopee Open API Voucher 模块全部 6 个接口：add_voucher、get_voucher_list、get_voucher、update_voucher、end_voucher、delete_voucher。当用户提到 Shopee 优惠券、Voucher、店铺券、add_voucher、voucher_id、满减券、折扣码 时触发。即使未明确提及\"优惠券\"，只要涉及已授权 Shopee 店铺的 Voucher 活动管理，也应触发。\n---\n\n# Shopee 店铺优惠券 Voucher\n\nShopee Open Platform **Voucher 模块**（6 个 API）。**依赖 `linkfox-shopee-store-auth`**：先取 `accessToken`，再经 **`POST /shopee/developerProxy`** 转发（`path` 须 `api/v2/voucher/...`）。\n\n## 调用方式\n\n- **API 端点**：`POST /shopee/developerProxy`（不同 Shopee Open API 操作通过 path/method 区分；完整参数/响应/错误码见 `references/api.md`）\n- **Python 脚本**：`python scripts/<脚本名>.py '<JSON 参数>' [--inline]`（可用脚本见上文脚本一览）\n- **成本约束**：本工具会消耗积分；失败/空结果不得自动换关键词、翻页或连续试探；需要继续检索时先向用户说明会产生额外消耗。\n\n**输出策略（脚本默认行为）**：\n- **始终**将完整响应写入 `<cwd>/linkfox/<YYYY-MM-DD>/<session>/data/linkfox-shopee-store-voucher-<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\nVoucher 模块索引：[v2.voucher.add_voucher](https://open.shopee.com/documents/v2/v2.voucher.add_voucher?module=112&type=1)\n\n---\n\n## Prerequisites\n\n1. 运行 `python scripts/check_auth_dependency.py`；exit code **42** → 先安装 **`linkfox-shopee-store-auth`**。\n2. 其它促销：Discount → `linkfox-shopee-store-discount`；Bundle Deal → `linkfox-shopee-store-bundle-deal`；Add-On Deal → `linkfox-shopee-store-add-on-deal`；Shop Flash Sale → `linkfox-shopee-store-shop-flash-sale`。\n\n## 可用脚本（6 个 API）\n\n| 脚本 | API | Method |\n|------|-----|--------|\n| `add_voucher.py` | add_voucher | POST |\n| `delete_voucher.py` | delete_voucher | POST |\n| `end_voucher.py` | end_voucher | POST |\n| `update_voucher.py` | update_voucher | POST |\n| `get_voucher.py` | get_voucher | GET |\n| `get_voucher_list.py` | get_voucher_list | GET |\n| `voucher_api.py` | 通用入口 | — |\n\n## Usage Scenarios\n\n### 1. 创建并管理优惠券\n1. `add_voucher.py` 传完整 `body`\n2. `get_voucher_list.py` 查看活动列表\n3. `update_voucher.py` / `end_voucher.py` 更新或结束\n\n## Not Applicable\n\n- 店铺授权 → `linkfox-shopee-store-auth`\n- 限时折扣 Discount → `linkfox-shopee-store-discount`\n- 套装优惠 Bundle Deal → `linkfox-shopee-store-bundle-deal`\n- 加购优惠 Add-On Deal → `linkfox-shopee-store-add-on-deal`\n- 商品 listing → `linkfox-shopee-store-product`\n\n**Feedback:** 见 `references/api.md`。\n\n---\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-voucher\",\n  \"version\": \"1.0.2\",\n  \"publishedAt\": 1783337739591\n}\n\nFile v1.0.2:references/api.md\n\n# linkfox-shopee-store-voucher — 参数与字段参考\n\nShopee **Voucher 模块**全部 6 个 API，经 **`POST /shopee/developerProxy`** 转发。\n\n授权见 **`linkfox-shopee-store-auth`**。官方索引：[v2.voucher.add_voucher](https://open.shopee.com/documents/v2/v2.voucher.add_voucher?module=112&type=1)\n\n## 通用约定\n\n- **path**：须 `api/v2/voucher/...`\n- **标识**：通常传 **`shopId`**\n- **官方文档 URL 规则**：`https://open.shopee.com/documents/v2/v2.voucher.{api}?module=112&type=1`\n\n---\n\n## Voucher 模块总览\n\n| # | API | Method | path | 脚本 | 官方文档 |\n|---|-----|--------|------|------|----------|\n| 1 | add_voucher | POST | `api/v2/voucher/add_voucher` | `add_voucher.py` | [doc](https://open.shopee.com/documents/v2/v2.voucher.add_voucher?module=112&type=1) |\n| 2 | delete_voucher | POST | `api/v2/voucher/delete_voucher` | `delete_voucher.py` | [doc](https://open.shopee.com/documents/v2/v2.voucher.delete_voucher?module=112&type=1) |\n| 3 | end_voucher | POST | `api/v2/voucher/end_voucher` | `end_voucher.py` | [doc](https://open.shopee.com/documents/v2/v2.voucher.end_voucher?module=112&type=1) |\n| 4 | get_voucher | GET | `api/v2/voucher/get_voucher` | `get_voucher.py` | [doc](https://open.shopee.com/documents/v2/v2.voucher.get_voucher?module=112&type=1) |\n| 5 | get_voucher_list | GET | `api/v2/voucher/get_voucher_list` | `get_voucher_list.py` | [doc](https://open.shopee.com/documents/v2/v2.voucher.get_voucher_list?module=112&type=1) |\n| 6 | update_voucher | POST | `api/v2/voucher/update_voucher` | `update_voucher.py` | [doc](https://open.shopee.com/documents/v2/v2.voucher.update_voucher?module=112&type=1) |\n通用入口：`voucher_api.py`（JSON 含 `\"api\": \"<上表 API 名>\"`）。\n\n---\n\n## 常用接口说明\n\n| API | 要点 |\n|-----|------|\n| `add_voucher` | 创建店铺优惠券；POST `body` |\n| `get_voucher_list` | 优惠券列表 |\n| `get_voucher` | 优惠券详情 |\n| `update_voucher` | 更新优惠券 |\n| `end_voucher` | 提前结束 |\n| `delete_voucher` | 删除优惠券 |\n\n---\n\n## curl 示例\n\n```bash\ncurl -X POST ${LINKFOX_TOOL_GATEWAY}/shopee/developerProxy \\\n  -H \"Authorization: ${LINKFOX_AGENT_API_KEY:-$LINKFOXAGENT_API_KEY}\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"path\": \"api/v2/voucher/get_voucher_list\",\n    \"method\": \"GET\",\n    \"accessToken\": \"xxx\",\n    \"shopId\": \"67890\"\n  }'\n```\n\n---\n\n## Feedback API\n\n```bash\ncurl -X POST https://skill-api.linkfox.com/api/v1/public/feedback \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"skillName\":\"linkfox-shopee-store-voucher\",\"sentiment\":\"POSITIVE\",\n       \"category\":\"OTHER\",\"content\":\"优惠券查询正常\"}'\n```\n\nFile v1.0.2:skill-card.md\n\n## Description: <br>\nShopee-店铺优惠券 helps agents manage authorized Shopee store vouchers through LinkFox-forwarded Shopee Open API voucher operations, including create, list, view, update, end, and delete. <br>\n\nThis skill is ready for commercial/non-commercial use. <br>\n\n## Publisher: <br>\n[linkfox-ai](https://clawhub.ai/user/linkfox-ai) <br>\n\n### License/Terms of Use: <br>\nMIT-0 <br>\n\n\n## Use Case: <br>\nExternal sellers, operators, and developers use this skill to create, inspect, update, end, and delete Shopee store voucher promotions for authorized stores through LinkFox's Shopee gateway. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: The skill can create, update, end, or delete live Shopee store voucher promotions. <br>\nMitigation: Before add, update, end, or delete actions, require the agent to show the exact shopId, voucher_id when applicable, and intended change, then obtain explicit user confirmation. <br>\nRisk: Full API responses are saved locally and may include sensitive store, promotion, or campaign data. <br>\nMitigation: Limit workspace access and periodically delete saved LinkFox response files when they may contain sensitive store or campaign information. <br>\nRisk: Repeated calls may consume LinkFox credits or perform unnecessary live API operations. <br>\nMitigation: Have the agent explain expected cost before retries, pagination, or repeated probing, and avoid automatic follow-up calls after failures or empty results. <br>\n\n\n## Reference(s): <br>\n- [Artifact API Reference](references/api.md) <br>\n- [Shopee add_voucher API](https://open.shopee.com/documents/v2/v2.voucher.add_voucher?module=112&type=1) <br>\n- [Shopee delete_voucher API](https://open.shopee.com/documents/v2/v2.voucher.delete_voucher?module=112&type=1) <br>\n- [Shopee end_voucher API](https://open.shopee.com/documents/v2/v2.voucher.end_voucher?module=112&type=1) <br>\n- [Shopee get_voucher API](https://open.shopee.com/documents/v2/v2.voucher.get_voucher?module=112&type=1) <br>\n- [Shopee get_voucher_list API](https://open.shopee.com/documents/v2/v2.voucher.get_voucher_list?module=112&type=1) <br>\n- [Shopee update_voucher API](https://open.shopee.com/documents/v2/v2.voucher.update_voucher?module=112&type=1) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [JSON, Files, Shell commands, Guidance] <br>\n**Output Format:** [JSON files plus stdout JSON or summarized text] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [Full API responses are saved locally under linkfox/<date>/<session>/data; responses over 8 KB are summarized on stdout 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, 15736 bytes\n\nFiles: references/api.md (2666b), scripts/_shopee_voucher_common.py (11318b), scripts/_voucher_api_runner.py (4279b), scripts/_voucher_endpoints.py (1958b), scripts/add_voucher.py (676b), scripts/check_auth_dependency.py (3983b), scripts/delete_voucher.py (694b), scripts/end_voucher.py (676b), scripts/get_voucher_list.py (706b), scripts/get_voucher.py (676b), scripts/update_voucher.py (694b), scripts/voucher_api.py (1014b), SKILL.md (3739b), _meta.json (147b)\n\nFile v1.0.1:SKILL.md\n\n---\nname: linkfox-shopee-store-voucher\ndescription: Shopee（虾皮）店铺优惠券 Voucher（与 linkfox-shopee-store-auth 同系列），经 /shopee/developerProxy 转发 Shopee Open API Voucher 模块全部 6 个接口：add_voucher、get_voucher_list、get_voucher、update_voucher、end_voucher、delete_voucher。当用户提到 Shopee 优惠券、Voucher、店铺券、add_voucher、voucher_id、满减券、折扣码 时触发。即使未明确提及\"优惠券\"，只要涉及已授权 Shopee 店铺的 Voucher 活动管理，也应触发。\n---\n\n# Shopee 店铺优惠券 Voucher\n\nShopee Open Platform **Voucher 模块**（6 个 API）。**依赖 `linkfox-shopee-store-auth`**：先取 `accessToken`，再经 **`POST /shopee/developerProxy`** 转发（`path` 须 `api/v2/voucher/...`）。\n\n## 调用方式\n\n- **API 端点**：`POST /shopee/developerProxy`（不同 Shopee Open API 操作通过 path/method 区分；完整参数/响应/错误码见 `references/api.md`）\n- **Python 脚本**：`python scripts/<脚本名>.py '<JSON 参数>' [--inline]`（可用脚本见上文脚本一览）\n- **成本约束**：本工具会消耗积分；失败/空结果不得自动换关键词、翻页或连续试探；需要继续检索时先向用户说明会产生额外消耗。\n\n**输出策略（脚本默认行为）**：\n- **始终**将完整响应写入 `<cwd>/linkfox/<YYYY-MM-DD>/<session>/data/linkfox-shopee-store-voucher-<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\nVoucher 模块索引：[v2.voucher.add_voucher](https://open.shopee.com/documents/v2/v2.voucher.add_voucher?module=112&type=1)\n\n---\n\n## Prerequisites\n\n1. 运行 `python scripts/check_auth_dependency.py`；exit code **42** → 先安装 **`linkfox-shopee-store-auth`**。\n2. 其它促销：Discount → `linkfox-shopee-store-discount`；Bundle Deal → `linkfox-shopee-store-bundle-deal`；Add-On Deal → `linkfox-shopee-store-add-on-deal`；Shop Flash Sale → `linkfox-shopee-store-shop-flash-sale`。\n\n## 可用脚本（6 个 API）\n\n| 脚本 | API | Method |\n|------|-----|--------|\n| `add_voucher.py` | add_voucher | POST |\n| `delete_voucher.py` | delete_voucher | POST |\n| `end_voucher.py` | end_voucher | POST |\n| `update_voucher.py` | update_voucher | POST |\n| `get_voucher.py` | get_voucher | GET |\n| `get_voucher_list.py` | get_voucher_list | GET |\n| `voucher_api.py` | 通用入口 | — |\n\n## Usage Scenarios\n\n### 1. 创建并管理优惠券\n1. `add_voucher.py` 传完整 `body`\n2. `get_voucher_list.py` 查看活动列表\n3. `update_voucher.py` / `end_voucher.py` 更新或结束\n\n## Not Applicable\n\n- 店铺授权 → `linkfox-shopee-store-auth`\n- 限时折扣 Discount → `linkfox-shopee-store-discount`\n- 套装优惠 Bundle Deal → `linkfox-shopee-store-bundle-deal`\n- 加购优惠 Add-On Deal → `linkfox-shopee-store-add-on-deal`\n- 商品 listing → `linkfox-shopee-store-product`\n\n**Feedback:** 见 `references/api.md`。\n\n---\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-voucher\",\n  \"version\": \"1.0.1\",\n  \"publishedAt\": 1783067691885\n}\n\nFile v1.0.1:references/api.md\n\n# linkfox-shopee-store-voucher — 参数与字段参考\n\nShopee **Voucher 模块**全部 6 个 API，经 **`POST /shopee/developerProxy`** 转发。\n\n授权见 **`linkfox-shopee-store-auth`**。官方索引：[v2.voucher.add_voucher](https://open.shopee.com/documents/v2/v2.voucher.add_voucher?module=112&type=1)\n\n## 通用约定\n\n- **path**：须 `api/v2/voucher/...`\n- **标识**：通常传 **`shopId`**\n- **官方文档 URL 规则**：`https://open.shopee.com/documents/v2/v2.voucher.{api}?module=112&type=1`\n\n---\n\n## Voucher 模块总览\n\n| # | API | Method | path | 脚本 | 官方文档 |\n|---|-----|--------|------|------|----------|\n| 1 | add_voucher | POST | `api/v2/voucher/add_voucher` | `add_voucher.py` | [doc](https://open.shopee.com/documents/v2/v2.voucher.add_voucher?module=112&type=1) |\n| 2 | delete_voucher | POST | `api/v2/voucher/delete_voucher` | `delete_voucher.py` | [doc](https://open.shopee.com/documents/v2/v2.voucher.delete_voucher?module=112&type=1) |\n| 3 | end_voucher | POST | `api/v2/voucher/end_voucher` | `end_voucher.py` | [doc](https://open.shopee.com/documents/v2/v2.voucher.end_voucher?module=112&type=1) |\n| 4 | get_voucher | GET | `api/v2/voucher/get_voucher` | `get_voucher.py` | [doc](https://open.shopee.com/documents/v2/v2.voucher.get_voucher?module=112&type=1) |\n| 5 | get_voucher_list | GET | `api/v2/voucher/get_voucher_list` | `get_voucher_list.py` | [doc](https://open.shopee.com/documents/v2/v2.voucher.get_voucher_list?module=112&type=1) |\n| 6 | update_voucher | POST | `api/v2/voucher/update_voucher` | `update_voucher.py` | [doc](https://open.shopee.com/documents/v2/v2.voucher.update_voucher?module=112&type=1) |\n通用入口：`voucher_api.py`（JSON 含 `\"api\": \"<上表 API 名>\"`）。\n\n---\n\n## 常用接口说明\n\n| API | 要点 |\n|-----|------|\n| `add_voucher` | 创建店铺优惠券；POST `body` |\n| `get_voucher_list` | 优惠券列表 |\n| `get_voucher` | 优惠券详情 |\n| `update_voucher` | 更新优惠券 |\n| `end_voucher` | 提前结束 |\n| `delete_voucher` | 删除优惠券 |\n\n---\n\n## curl 示例\n\n```bash\ncurl -X POST ${LINKFOX_TOOL_GATEWAY}/shopee/developerProxy \\\n  -H \"Authorization: ${LINKFOX_AGENT_API_KEY:-$LINKFOXAGENT_API_KEY}\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"path\": \"api/v2/voucher/get_voucher_list\",\n    \"method\": \"GET\",\n    \"accessToken\": \"xxx\",\n    \"shopId\": \"67890\"\n  }'\n```\n\n---\n\n## Feedback API\n\n```bash\ncurl -X POST https://skill-api.linkfox.com/api/v1/public/feedback \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"skillName\":\"linkfox-shopee-store-voucher\",\"sentiment\":\"POSITIVE\",\n       \"category\":\"OTHER\",\"content\":\"优惠券查询正常\"}'\n```\n\nArchive v1.0.0: 15 files, 17026 bytes\n\nFiles: references/api.md (2667b), scripts/_shopee_voucher_common.py (11319b), scripts/_voucher_api_runner.py (4279b), scripts/_voucher_endpoints.py (1958b), scripts/add_voucher.py (676b), scripts/check_auth_dependency.py (3983b), scripts/delete_voucher.py (694b), scripts/end_voucher.py (676b), scripts/get_voucher_list.py (706b), scripts/get_voucher.py (676b), scripts/update_voucher.py (694b), scripts/voucher_api.py (1014b), skill-card.md (2563b), SKILL.md (3739b), _meta.json (147b)\n\nFile v1.0.0:SKILL.md\n\n---\nname: linkfox-shopee-store-voucher\ndescription: Shopee（虾皮）店铺优惠券 Voucher（与 linkfox-shopee-store-auth 同系列），经 /shopee/developerProxy 转发 Shopee Open API Voucher 模块全部 6 个接口：add_voucher、get_voucher_list、get_voucher、update_voucher、end_voucher、delete_voucher。当用户提到 Shopee 优惠券、Voucher、店铺券、add_voucher、voucher_id、满减券、折扣码 时触发。即使未明确提及\"优惠券\"，只要涉及已授权 Shopee 店铺的 Voucher 活动管理，也应触发。\n---\n\n# Shopee 店铺优惠券 Voucher\n\nShopee Open Platform **Voucher 模块**（6 个 API）。**依赖 `linkfox-shopee-store-auth`**：先取 `accessToken`，再经 **`POST /shopee/developerProxy`** 转发（`path` 须 `api/v2/voucher/...`）。\n\n## 调用方式\n\n- **API 端点**：`POST /shopee/developerProxy`（不同 Shopee Open API 操作通过 path/method 区分；完整参数/响应/错误码见 `references/api.md`）\n- **Python 脚本**：`python scripts/<脚本名>.py '<JSON 参数>' [--inline]`（可用脚本见上文脚本一览）\n- **成本约束**：本工具会消耗积分；失败/空结果不得自动换关键词、翻页或连续试探；需要继续检索时先向用户说明会产生额外消耗。\n\n**输出策略（脚本默认行为）**：\n- **始终**将完整响应写入 `<cwd>/linkfox/<YYYY-MM-DD>/<session>/data/linkfox-shopee-store-voucher-<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\nVoucher 模块索引：[v2.voucher.add_voucher](https://open.shopee.com/documents/v2/v2.voucher.add_voucher?module=112&type=1)\n\n---\n\n## Prerequisites\n\n1. 运行 `python scripts/check_auth_dependency.py`；exit code **42** → 先安装 **`linkfox-shopee-store-auth`**。\n2. 其它促销：Discount → `linkfox-shopee-store-discount`；Bundle Deal → `linkfox-shopee-store-bundle-deal`；Add-On Deal → `linkfox-shopee-store-add-on-deal`；Shop Flash Sale → `linkfox-shopee-store-shop-flash-sale`。\n\n## 可用脚本（6 个 API）\n\n| 脚本 | API | Method |\n|------|-----|--------|\n| `add_voucher.py` | add_voucher | POST |\n| `delete_voucher.py` | delete_voucher | POST |\n| `end_voucher.py` | end_voucher | POST |\n| `update_voucher.py` | update_voucher | POST |\n| `get_voucher.py` | get_voucher | GET |\n| `get_voucher_list.py` | get_voucher_list | GET |\n| `voucher_api.py` | 通用入口 | — |\n\n## Usage Scenarios\n\n### 1. 创建并管理优惠券\n1. `add_voucher.py` 传完整 `body`\n2. `get_voucher_list.py` 查看活动列表\n3. `update_voucher.py` / `end_voucher.py` 更新或结束\n\n## Not Applicable\n\n- 店铺授权 → `linkfox-shopee-store-auth`\n- 限时折扣 Discount → `linkfox-shopee-store-discount`\n- 套装优惠 Bundle Deal → `linkfox-shopee-store-bundle-deal`\n- 加购优惠 Add-On Deal → `linkfox-shopee-store-add-on-deal`\n- 商品 listing → `linkfox-shopee-store-product`\n\n**Feedback:** 见 `references/api.md`。\n\n---\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-voucher\",\n  \"version\": \"1.0.0\",\n  \"publishedAt\": 1783011575296\n}\n\nFile v1.0.0:references/api.md\n\n# linkfox-shopee-store-voucher — 参数与字段参考\n\nShopee **Voucher 模块**全部 6 个 API，经 **`POST /shopee/developerProxy`** 转发。\n\n授权见 **`linkfox-shopee-store-auth`**。官方索引：[v2.voucher.add_voucher](https://open.shopee.com/documents/v2/v2.voucher.add_voucher?module=112&type=1)\n\n## 通用约定\n\n- **path**：须 `api/v2/voucher/...`\n- **标识**：通常传 **`shopId`**\n- **官方文档 URL 规则**：`https://open.shopee.com/documents/v2/v2.voucher.{api}?module=112&type=1`\n\n---\n\n## Voucher 模块总览\n\n| # | API | Method | path | 脚本 | 官方文档 |\n|---|-----|--------|------|------|----------|\n| 1 | add_voucher | POST | `api/v2/voucher/add_voucher` | `add_voucher.py` | [doc](https://open.shopee.com/documents/v2/v2.voucher.add_voucher?module=112&type=1) |\n| 2 | delete_voucher | POST | `api/v2/voucher/delete_voucher` | `delete_voucher.py` | [doc](https://open.shopee.com/documents/v2/v2.voucher.delete_voucher?module=112&type=1) |\n| 3 | end_voucher | POST | `api/v2/voucher/end_voucher` | `end_voucher.py` | [doc](https://open.shopee.com/documents/v2/v2.voucher.end_voucher?module=112&type=1) |\n| 4 | get_voucher | GET | `api/v2/voucher/get_voucher` | `get_voucher.py` | [doc](https://open.shopee.com/documents/v2/v2.voucher.get_voucher?module=112&type=1) |\n| 5 | get_voucher_list | GET | `api/v2/voucher/get_voucher_list` | `get_voucher_list.py` | [doc](https://open.shopee.com/documents/v2/v2.voucher.get_voucher_list?module=112&type=1) |\n| 6 | update_voucher | POST | `api/v2/voucher/update_voucher` | `update_voucher.py` | [doc](https://open.shopee.com/documents/v2/v2.voucher.update_voucher?module=112&type=1) |\n通用入口：`voucher_api.py`（JSON 含 `\"api\": \"<上表 API 名>\"`）。\n\n---\n\n## 常用接口说明\n\n| API | 要点 |\n|-----|------|\n| `add_voucher` | 创建店铺优惠券；POST `body` |\n| `get_voucher_list` | 优惠券列表 |\n| `get_voucher` | 优惠券详情 |\n| `update_voucher` | 更新优惠券 |\n| `end_voucher` | 提前结束 |\n| `delete_voucher` | 删除优惠券 |\n\n---\n\n## curl 示例\n\n```bash\ncurl -X POST ${LINKFOX_AGENT_API_URL}/shopee/developerProxy \\\n  -H \"Authorization: ${LINKFOX_AGENT_API_KEY:-$LINKFOXAGENT_API_KEY}\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"path\": \"api/v2/voucher/get_voucher_list\",\n    \"method\": \"GET\",\n    \"accessToken\": \"xxx\",\n    \"shopId\": \"67890\"\n  }'\n```\n\n---\n\n## Feedback API\n\n```bash\ncurl -X POST https://skill-api.linkfox.com/api/v1/public/feedback \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"skillName\":\"linkfox-shopee-store-voucher\",\"sentiment\":\"POSITIVE\",\n       \"category\":\"OTHER\",\"content\":\"优惠券查询正常\"}'\n```\n\nFile v1.0.0:skill-card.md\n\n## Description: <br>\nManages Shopee store voucher campaigns through LinkFox scripts that call the Shopee Open API voucher module for creating, listing, viewing, updating, ending, and deleting vouchers. <br>\n\nThis skill is ready for commercial/non-commercial use. <br>\n\n## Publisher: <br>\n[linkfox-ai](https://clawhub.ai/user/linkfox-ai) <br>\n\n### License/Terms of Use: <br>\nMIT-0 <br>\n\n\n## Use Case: <br>\nExternal sellers, operators, and commerce automation agents use this skill to create, inspect, update, end, or delete voucher campaigns for authorized Shopee stores. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: The skill can change live Shopee voucher promotions through add, update, end, and delete operations. <br>\nMitigation: Use it only in a controlled workspace and confirm intended store, voucher, and operation details before running mutating voucher commands. <br>\nRisk: Full business API responses are automatically saved locally and may include sensitive store or campaign data. <br>\nMitigation: Periodically review and delete generated linkfox data directories when those records should not persist. <br>\nRisk: The skill requires LinkFox/Shopee voucher authority through API credentials and store tokens. <br>\nMitigation: Install and run it only when the operator is comfortable granting that authority, and keep API keys scoped and protected. <br>\n\n\n## Reference(s): <br>\n- [ClawHub Skill Page](https://clawhub.ai/linkfox-ai/skills/linkfox-shopee-store-voucher) <br>\n- [Voucher API Reference](references/api.md) <br>\n- [Shopee Open Platform Voucher add_voucher](https://open.shopee.com/documents/v2/v2.voucher.add_voucher?module=112&type=1) <br>\n- [LinkFox Skills](https://skill.linkfox.com/) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [text, markdown, code, shell commands, configuration, guidance, API calls] <br>\n**Output Format:** [Markdown guidance with shell commands and JSON API responses saved to local files.] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [Full API responses are written under a linkfox session data directory; responses over 8 KB are summarized unless --inline is used.] <br>\n\n## Skill Version(s): <br>\n1.0.0 (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>","readmeExcerpt":"Skill: Shopee-店铺优惠券 Owner: linkfox-ai Summary: Shopee（虾皮）店铺优惠券 Voucher（与 linkfox-shopee-store-auth 同系列），经 /shopee/developerProxy 转发 Shopee Open API Voucher 模块全部 6 个接口：add_voucher、get_voucher_list、get_voucher、update_voucher、end_voucher、delete_voucher。当用户提到 Shopee 优惠券、Voucher、店铺券、add_voucher、voucher_id、满减券、折扣码 时触发。即使未明确提及\"优惠券\"，只要涉及已授权 Shopee 店铺的 Voucher 活动管理，也应触发。 Tags: latest:1.0.5 Version history: v1.0.5 | 2026-08-14","codeSnippets":[],"executableExamples":[{"language":"bash","snippet":"curl -X POST ${LINKFOX_TOOL_GATEWAY}/shopee/developerProxy \\\n  -H \"Authorization: ${LINKFOX_AGENT_API_KEY:-$LINKFOXAGENT_API_KEY}\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{"},{"language":"bash","snippet":"curl -X POST ${LINKFOX_TOOL_GATEWAY}/shopee/developerProxy \\\n  -H \"Authorization: ${LINKFOX_AGENT_API_KEY:-$LINKFOXAGENT_API_KEY}\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"path\": \"api/v2/voucher/get_voucher_list\",\n    \"method\": \"GET\",\n    \"accessToken\": \"xxx\",\n    \"shopId\": \"67890\"\n  }'"},{"language":"bash","snippet":"curl -X POST https://skill-api.linkfox.com/api/v1/public/feedback \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"skillName\":\"linkfox-shopee-store-voucher\",\"sentiment\":\"POSITIVE\","},{"language":"bash","snippet":"curl -X POST https://skill-api.linkfox.com/api/v1/public/feedback \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"skillName\":\"linkfox-shopee-store-voucher\",\"sentiment\":\"POSITIVE\",\n       \"category\":\"OTHER\",\"content\":\"优惠券查询正常\"}'"},{"language":"bash","snippet":"export LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/add_voucher.py '{\"shopId\": \"67890\"}'\n\n# 通用入口\npython scripts/voucher_api.py '{\"api\": \"add_voucher\", \"shopId\": \"67890\"}'"},{"language":"bash","snippet":"export LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/delete_voucher.py '{\"shopId\": \"67890\"}'\n\n# 通用入口\npython scripts/voucher_api.py '{\"api\": \"delete_voucher\", \"shopId\": \"67890\"}'"}],"parameters":null,"dependencies":[],"permissions":[],"extractedFiles":[{"path":"SKILL.md","content":"---\nname: linkfox-shopee-store-voucher\ndescription: Shopee（虾皮）店铺优惠券 Voucher（与 linkfox-shopee-store-auth 同系列），经 /shopee/developerProxy 转发 Shopee Open API Voucher 模块全部 6 个接口：add_voucher、get_voucher_list、get_voucher、update_voucher、end_voucher、delete_voucher。当用户提到 Shopee 优惠券、Voucher、店铺券、add_voucher、voucher_id、满减券、折扣码 时触发。即使未明确提及\"优惠券\"，只要涉及已授权 Shopee 店铺的 Voucher 活动管理，也应触发。\n---\n\n# Shopee 店铺优惠券 Voucher\n\nShopee Open Platform **Voucher 模块**（6 个 API）。**依赖 `linkfox-shopee-store-auth`** 选店；经 **`POST /shopee/developerProxy`** 传入 `shopId`（或 `merchantId`），由服务端解析 token 转发（`path` 须 `api/v2/voucher/...`）。\n\n## 调用方式\n\n- **API 端点**：`POST /shopee/developerProxy`（不同 Shopee Open API 操作通过 path/method 区分；完整参数/响应/错误码见 `references/api.md`）\n- **Python 脚本**：`python scripts/<脚本名>.py '<JSON 参数>' [--inline]`（可用脚本见上文脚本一览）\n- **成本约束**：本工具会消耗积分；失败/空结果不得自动换关键词、翻页或连续试探；需要继续检索时先向用户说明会产生额外消耗。\n\n**输出策略（脚本默认行为）**：\n- **始终**将完整响应写入 `<cwd>/linkfox/<YYYY-MM-DD>/<session>/data/linkfox-shopee-store-voucher-<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\nVoucher 模块索引：[v2.voucher.add_voucher](https://open.shopee.com/documents/v2/v2.voucher.add_voucher?module=112&type=1)\n\n---\n\n## Prerequisites\n\n1. 运行 `python scripts/check_auth_dependency.py`；exit code **42** → 先安装 **`linkfox-shopee-store-auth`**。\n2. 其它促销：Discount → `linkfox-shopee-store-discount`；Bundle Deal → `linkfox-shopee-store-bundle-deal`；Add-On Deal → `linkfox-shopee-store-add-on-deal`；Shop Flash Sale → `linkfox-shopee-store-shop-flash-sale`。\n\n## 可用脚本（6 个 API）\n\n| 脚本 | API | Method |\n|------|-----|--------|\n| `add_voucher.py` | add_voucher | POST |\n| `delete_voucher.py` | delete_voucher | POST |\n| `end_voucher.py` | end_voucher | POST |\n| `update_voucher.py` | update_voucher | POST |\n| `get_voucher.py` | get_voucher | GET |\n| `get_voucher_list.py` | get_voucher_list | GET |\n| `voucher_api.py` | 通用入口 | — |\n\n## 接口说明（按 API）\n\n入参与响应细节放在 `references/apis/`，SKILL 只保留索引。\n\n| API | 说明文档 |\n|-----|----------|\n| `add_voucher` | [references/apis/add-voucher.md](./references/apis/add-voucher.md) |\n| `delete_voucher` | [references/apis/delete-voucher.md](./references/apis/delete-voucher.md) |\n| `end_voucher` | [references/apis/end-voucher.md](./references/apis/end-voucher.md) |\n| `get_voucher` | [references/apis/get-voucher.md](./references/apis/get-voucher.md) |\n| `get_voucher_list` | [references/apis/get-voucher-list.md](./references/apis/get-voucher-list.md) |\n| `upd"},{"path":"_meta.json","content":"{\n  \"ownerId\": \"kn7dmc1t4j28hem1twwyav85p182pb1j\",\n  \"slug\": \"linkfox-shopee-store-voucher\",\n  \"version\": \"1.0.5\",\n  \"publishedAt\": 1786720173303\n}"},{"path":"references/api.md","content":"# linkfox-shopee-store-voucher — 参数与字段参考\n\n> 单接口入参/响应说明已拆到 **`apis/`**（按 API 一份）；本文件保留模块总览与 Feedback。\nShopee **Voucher 模块**全部 6 个 API，经 **`POST /shopee/developerProxy`** 转发。\n\n授权见 **`linkfox-shopee-store-auth`**。官方索引：[v2.voucher.add_voucher](https://open.shopee.com/documents/v2/v2.voucher.add_voucher?module=112&type=1)\n\n## 通用约定\n\n- **path**：须 `api/v2/voucher/...`\n- **标识**：通常传 **`shopId`**\n- **官方文档 URL 规则**：`https://open.shopee.com/documents/v2/v2.voucher.{api}?module=112&type=1`\n\n---\n\n## Voucher 模块总览\n\n| # | API | Method | path | 脚本 | 官方文档 |\n|---|-----|--------|------|------|----------|\n| 1 | add_voucher | POST | `api/v2/voucher/add_voucher` | `add_voucher.py` | [apis/add-voucher.md](./apis/add-voucher.md) |\n| 2 | delete_voucher | POST | `api/v2/voucher/delete_voucher` | `delete_voucher.py` | [apis/delete-voucher.md](./apis/delete-voucher.md) |\n| 3 | end_voucher | POST | `api/v2/voucher/end_voucher` | `end_voucher.py` | [apis/end-voucher.md](./apis/end-voucher.md) |\n| 4 | get_voucher | GET | `api/v2/voucher/get_voucher` | `get_voucher.py` | [apis/get-voucher.md](./apis/get-voucher.md) |\n| 5 | get_voucher_list | GET | `api/v2/voucher/get_voucher_list` | `get_voucher_list.py` | [apis/get-voucher-list.md](./apis/get-voucher-list.md) |\n| 6 | update_voucher | POST | `api/v2/voucher/update_voucher` | `update_voucher.py` | [apis/update-voucher.md](./apis/update-voucher.md) |\n通用入口：`voucher_api.py`（JSON 含 `\"api\": \"<上表 API 名>\"`）。\n\n---\n\n## 常用接口说明\n\n| API | 要点 |\n|-----|------|\n| `add_voucher` | 创建店铺优惠券；POST `body` — [apis/add-voucher.md](./apis/add-voucher.md) |\n| `get_voucher_list` | 优惠券列表 — [apis/get-voucher-list.md](./apis/get-voucher-list.md) |\n| `get_voucher` | 优惠券详情 — [apis/get-voucher.md](./apis/get-voucher.md) |\n| `update_voucher` | 更新优惠券 — [apis/update-voucher.md](./apis/update-voucher.md) |\n| `end_voucher` | 提前结束 — [apis/end-voucher.md](./apis/end-voucher.md) |\n| `delete_voucher` | 删除优惠券 — [apis/delete-voucher.md](./apis/delete-voucher.md) |\n\n---\n\n## curl 示例\n\n```bash\ncurl -X POST ${LINKFOX_TOOL_GATEWAY}/shopee/developerProxy \\\n  -H \"Authorization: ${LINKFOX_AGENT_API_KEY:-$LINKFOXAGENT_API_KEY}\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"path\": \"api/v2/voucher/get_voucher_list\",\n    \"method\": \"GET\",\n    \"accessToken\": \"xxx\",\n    \"shopId\": \"67890\"\n  }'\n```\n\n---\n\n## Feedback API\n\n```bash\ncurl -X POST https://skill-api.linkfox.com/api/v1/public/feedback \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"skillName\":\"linkfox-shopee-store-voucher\",\"sentiment\":\"POSITIVE\",\n       \"category\":\"OTHER\",\"content\":\"优惠券查询正常\"}'\n```"},{"path":"references/apis/add-voucher.md","content":"# add_voucher\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/add_voucher.py` |\n| Method / path | POST `api/v2/voucher/add_voucher` |\n| 官方文档 | [add_voucher](https://open.shopee.com/documents/v2/v2.voucher.add_voucher?module=112&type=1) |\n| 用途 | Create shop voucher; pass full body |\n\n经 **`POST /shopee/developerProxy`** 转发；依赖 **`linkfox-shopee-store-auth`** 选店（通常传 `shopId` 或 `merchantId`）。\n\n---\n\n## 脚本 JSON 入参\n\n| 字段 | 类型 | 必填 | 说明 |\n|------|------|------|------|\n| `shopId` | string | 与 `merchantId` 二选一 | 店铺 ID（推荐；Public 等无店铺接口可省略） |\n| `merchantId` | string | 与 `shopId` 二选一 | 商户 ID |\n\n- Method：**POST**\n- POST：传 `body` / `requestBody`，或把 `body_fields` 列在 JSON 顶层\n- `shopId` / `merchantId` / `skipDepCheck` 等为网关选店保留字段，不会进 Shopee query/body\n- Registry notes：Create shop voucher; pass full body\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/add_voucher.py '{\"shopId\": \"67890\"}'\n\n# 通用入口\npython scripts/voucher_api.py '{\"api\": \"add_voucher\", \"shopId\": \"67890\"}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`addVoucher`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准"},{"path":"references/apis/delete-voucher.md","content":"# delete_voucher\n\n| 项 | 值 |\n|----|-----|\n| 脚本 | `scripts/delete_voucher.py` |\n| Method / path | POST `api/v2/voucher/delete_voucher` |\n| 官方文档 | [delete_voucher](https://open.shopee.com/documents/v2/v2.voucher.delete_voucher?module=112&type=1) |\n| 用途 | Delete voucher |\n\n经 **`POST /shopee/developerProxy`** 转发；依赖 **`linkfox-shopee-store-auth`** 选店（通常传 `shopId` 或 `merchantId`）。\n\n---\n\n## 脚本 JSON 入参\n\n| 字段 | 类型 | 必填 | 说明 |\n|------|------|------|------|\n| `shopId` | string | 与 `merchantId` 二选一 | 店铺 ID（推荐；Public 等无店铺接口可省略） |\n| `merchantId` | string | 与 `shopId` 二选一 | 商户 ID |\n\n- Method：**POST**\n- POST：传 `body` / `requestBody`，或把 `body_fields` 列在 JSON 顶层\n- `shopId` / `merchantId` / `skipDepCheck` 等为网关选店保留字段，不会进 Shopee query/body\n- Registry notes：Delete voucher\n\n---\n\n## 调用示例\n\n```bash\nexport LINKFOXAGENT_API_KEY=\"<your-key>\"\n\npython scripts/delete_voucher.py '{\"shopId\": \"67890\"}'\n\n# 通用入口\npython scripts/voucher_api.py '{\"api\": \"delete_voucher\", \"shopId\": \"67890\"}'\n```\n\n---\n\n## 响应要点\n\n1. 先看 **`developerProxy.httpStatus`** / `errcode`\n2. 再读 **`deleteVoucher`**（Shopee `response` 解析结果）\n3. 字段以官方文档为准"}],"languages":[],"docsSourceLabel":"CLAWHUB","editorialOverview":null,"editorialQuality":{"score":100,"threshold":65,"status":"thin","wordCount":991,"uniquenessScore":35,"reasons":["uniqueness-below-45"]}},"media":{"evidence":{"source":"no-media","verified":false,"confidence":"low","updatedAt":"2026-10-12T01:57:07.625Z","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-12T01:57:07.625Z","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-14T03:16:09.257Z","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"}]}}}