linkfox-amazon-store-report
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseAmazon 店铺报告获取
Amazon Store Report Retrieval
本 skill 提供 亚马逊卖家后台报告的端到端自动化获取:请求 → 轮询 → 下载 → 解压 → 预览。支持 95+ 种报告类型(库存 / 订单 / 销售 / 财务 / FBA / 退货 / Brand Analytics 等)。
This skill provides end-to-end automated retrieval of reports from Amazon Seller Central: request → polling → download → decompression → preview. It supports over 95 report types (inventory / orders / sales / finance / FBA / returns / Brand Analytics, etc.).
⚠️ Prerequisites — MUST READ FIRST
⚠️ Prerequisites — MUST READ FIRST
本 skill 依赖 (授权与店铺/令牌管理)。
linkfox-amazon-store-auth🛑 如果未安装 / 未加载,请先安装它,再回到本 skill。linkfox-amazon-store-auth
This skill depends on (authorization and store/token management).
linkfox-amazon-store-auth🛑 Ifis not installed / loaded, please install it first before using this skill.linkfox-amazon-store-auth
怎样判断 linkfox-amazon-store-auth
是否可用
linkfox-amazon-store-authHow to Check if linkfox-amazon-store-auth
is Available
linkfox-amazon-store-auth在执行任何报告任务之前,agent 必须先进行依赖检查:
- 读取下列任一路径(skill 加载路径取决于运行环境;会按相同规则自动探测):
scripts/check_auth_dependency.py- 仓库 / 通用扁平目录:
<skills_dir>/linkfox-amazon-store-auth/SKILL.md - Claude:
~/.claude/skills/linkfox-amazon-store-auth/SKILL.md - Cursor:、
~/.cursor/skills/...~/.cursor/skills-cursor/... - OpenClaw:、
<OPENCLAW_WORKSPACE>/skills/...、~/.openclaw/skills/...(与 OpenClaw Skills 文档 的常见路径一致)~/.agents/skills/... - Hermes Agent:,以及
~/.hermes/skills/<category>/linkfox-amazon-store-auth/SKILL.md(与 Hermes Skills 文档 的布局一致)~/.hermes/plugins/<plugin>/skills/linkfox-amazon-store-auth/SKILL.md
- 仓库 / 通用扁平目录:
- 或直接运行脚本:,脚本会在缺失时以 exit code
python scripts/check_auth_dependency.py退出,并在 stderr 输出结构化提示(以42开头)。脚本已内置 OpenClaw / Hermes 路径判断;若在 Hermes 的DEPENDENCY_MISSING:里配置了config.yaml,请设置环境变量skills.external_dirs(使用系统路径分隔符串联多个目录)以便探测。HERMES_SKILLS_EXTERNAL_DIRS - 如果上述检查全部失败,则判定为 未安装。
linkfox-amazon-store-auth
Before executing any report tasks, the agent must perform dependency checks first:
- Read any of the following paths (skill loading path depends on the runtime environment; will automatically detect following the same rules):
scripts/check_auth_dependency.py- Repository / general flat directory:
<skills_dir>/linkfox-amazon-store-auth/SKILL.md - Claude:
~/.claude/skills/linkfox-amazon-store-auth/SKILL.md - Cursor: 、
~/.cursor/skills/...~/.cursor/skills-cursor/... - OpenClaw: 、
<OPENCLAW_WORKSPACE>/skills/...、~/.openclaw/skills/...(consistent with common paths in OpenClaw Skills Documentation)~/.agents/skills/... - Hermes Agent: , and
~/.hermes/skills/<category>/linkfox-amazon-store-auth/SKILL.md(consistent with the layout in Hermes Skills Documentation)~/.hermes/plugins/<plugin>/skills/linkfox-amazon-store-auth/SKILL.md
- Repository / general flat directory:
- Or run the script directly: , the script will exit with exit code
python scripts/check_auth_dependency.pywhen the dependency is missing, and output structured prompts starting with42to stderr. The script has built-in path judgment for OpenClaw / Hermes; ifDEPENDENCY_MISSING:is configured in Hermes'skills.external_dirs, please set the environment variableconfig.yaml(concatenate multiple directories with system path separators) for detection.HERMES_SKILLS_EXTERNAL_DIRS - If all the above checks fail, it is determined that is not installed.
linkfox-amazon-store-auth
发现未安装时的标准处置
Standard Handling When Dependency Is Not Installed
当检测到 未安装时,agent 必须按以下顺序执行:
linkfox-amazon-store-auth- 尝试自动安装(优先):
- 如果当前运行时具备 skill 安装工具(例如 skill 市场 / skill 管理 MCP / 类工具),立即调用安装
install_skill。linkfox-amazon-store-auth - 安装成功后,重新加载并从头执行本 skill。
- 如果当前运行时具备 skill 安装工具(例如 skill 市场 / skill 管理 MCP /
- 引导用户手动安装(兜底):
- 向用户说明:「本技能依赖 ,尚未安装。请前往 LinkFox Skills 安装该 skill,安装完成后告诉我一声,我会继续为你拉取报告。」
linkfox-amazon-store-auth - 不要绕过依赖直接去调 、
/spApi/authorizeUrl、/spApi/storeTokens等接口——这些接口的选店铺、令牌流程属于/spApi/authorizedStores的职责,本 skill 只负责报告业务本身。linkfox-amazon-store-auth
- 向用户说明:「本技能依赖
- 不得静默降级:如果既无法自动安装也未获得用户确认,必须停止执行并把依赖缺失的事实回报给用户,不要擅自尝试替代方案。
When detecting that is not installed, the agent must follow the steps below in order:
linkfox-amazon-store-auth- Attempt automatic installation (priority):
- If the current runtime has a skill installation tool (such as skill marketplace / skill management MCP / -like tools), call it immediately to install
install_skill.linkfox-amazon-store-auth - After successful installation, reload and execute this skill from the beginning.
- If the current runtime has a skill installation tool (such as skill marketplace / skill management MCP /
- Guide users to install manually (fallback):
- Explain to the user: "This skill depends on , which has not been installed yet. Please go to LinkFox Skills to install this skill, and let me know when it's done, I will continue to pull the report for you."
linkfox-amazon-store-auth - Do not bypass the dependency to directly call interfaces like ,
/spApi/authorizeUrl,/spApi/storeTokens— the store selection and token processes for authorization are the responsibilities of/spApi/authorizedStores, this skill only handles report-related business.linkfox-amazon-store-auth
- Explain to the user: "This skill depends on
- Do not silently degrade: If neither automatic installation nor user confirmation is available, stop execution and report the dependency missing fact to the user, do not attempt alternative solutions without permission.
依赖已满足后的协作方式
Collaboration Method After Dependencies Are Met
- 本 skill 会在内部调用依赖 skill 提供的 取
/spApi/storeTokens,然后走accessToken执行报告生命周期。/spApi/developerProxy - 授权、授权的前置选店铺、令牌刷新等操作——交由 ;本 skill 不重复做这些事。
linkfox-amazon-store-auth
- This skill will internally call provided by the dependent skill to obtain
/spApi/storeTokens, then execute the report lifecycle viaaccessToken./spApi/developerProxy - Operations such as authorization, pre-authorization store selection, token refresh — handled by ; this skill does not repeat these tasks.
linkfox-amazon-store-auth
Core Concepts
Core Concepts
- Report Type(报告类型):亚马逊官方报告类型枚举,例如 、
GET_MERCHANT_LISTINGS_ALL_DATA。完整列表见GET_FLAT_FILE_ALL_ORDERS_DATA_BY_ORDER_DATE_GENERAL。references/report-types.md - Marketplace ID:区域内具体站点 ID,例如 US = 。
ATVPDKIKX0DER - Report lifecycle:请求报告 → 轮询 (
processingStatus/IN_QUEUE/IN_PROGRESS/DONE/FATAL)→CANCELLED后拿到DONE→ 取下载 URL → 下载(多为 gzip TSV)→ 解压。reportDocumentId - Rate limits:Reports API 约 0.0222 req/s;轮询需保留间隔(默认 30s)。
- Report Type: Official Amazon report type enumerations, such as ,
GET_MERCHANT_LISTINGS_ALL_DATA. The complete list can be found inGET_FLAT_FILE_ALL_ORDERS_DATA_BY_ORDER_DATE_GENERAL.references/report-types.md - Marketplace ID: Specific site ID within a region, e.g., US = .
ATVPDKIKX0DER - Report lifecycle: Request report → poll (
processingStatus/IN_QUEUE/IN_PROGRESS/DONE/FATAL) → getCANCELLEDwhenreportDocumentId→ retrieve download URL → download (mostly gzip TSV) → decompress.DONE - Rate limits: Reports API is approximately 0.0222 req/s; polling intervals must be maintained (default 30s).
Data Fields
Data Fields
Report Request Input
Report Request Input
| Field | Type | Required | Description |
|---|---|---|---|
| sellerId | string | Yes | 已授权的 Amazon Seller ID |
| region | string | Yes | NA / EU / FE |
| reportType | string | Yes | 报告类型枚举值 |
| marketplaceIds | array | Yes | 目标 marketplace ID 列表 |
| dataStartTime | string | No | ISO 8601,报告起始时间 |
| dataEndTime | string | No | ISO 8601,报告结束时间 |
| lastUpdatedDate | string | No | 部分 Vendor 报告必填,见 |
| reportOptions | object | No | 如 Brand Analytics 的 |
| pollInterval | int | No | 轮询间隔秒数(默认 30) |
| maxAttempts | int | No | 最大轮询次数(默认 20) |
| Field | Type | Required | Description |
|---|---|---|---|
| sellerId | string | Yes | Authorized Amazon Seller ID |
| region | string | Yes | NA / EU / FE |
| reportType | string | Yes | Report type enumeration value |
| marketplaceIds | array | Yes | List of target marketplace IDs |
| dataStartTime | string | No | ISO 8601, report start time |
| dataEndTime | string | No | ISO 8601, report end time |
| lastUpdatedDate | string | No | Required for some Vendor reports, see corresponding md in |
| reportOptions | object | No | Such as |
| pollInterval | int | No | Polling interval in seconds (default 30) |
| maxAttempts | int | No | Maximum number of polling attempts (default 20) |
Report Output
Report Output
| Field | Type | Description |
|---|---|---|
| reportId | string | 报告请求 ID |
| reportDocumentId | string | 报告文档 ID |
| downloadPath | string | 本地下载后的绝对路径(已解压,含文件名) |
| fileName | string | 保存文件名(与 |
| localFileUri | string | 本机 |
| extractedFileHttpUrl | string | 本机临时 HTTP 直链,用于在浏览器中下载已解压后的文件(默认 |
| extractedFileHttpServeSeconds | int | 本地 HTTP 服务保持时长(默认 300,最少 10) |
| extractedFileHttpNote | string | 说明该链接仅本机、限时有效 |
| amazonDownloadUrl | string | (可选)仅当 |
| compressionAlgorithm | string | 若接口返回了压缩算法则带上(如 GZIP) |
| tempDirectory | string | 临时目录 |
| fileSize | int | 文件大小(字节) |
| Field | Type | Description |
|---|---|---|
| reportId | string | Report request ID |
| reportDocumentId | string | Report document ID |
| downloadPath | string | Absolute local path after download (decompressed, including file name) |
| fileName | string | Saved file name (consistent with the last segment of |
| localFileUri | string | Local |
| extractedFileHttpUrl | string | Temporary local HTTP direct link for downloading the decompressed file in the browser (default |
| extractedFileHttpServeSeconds | int | Duration for keeping the local HTTP service running (default 300, minimum 10) |
| extractedFileHttpNote | string | Note that this link is only valid locally and within a limited time |
| amazonDownloadUrl | string | (Optional) Only appears when |
| compressionAlgorithm | string | Included if the interface returns a compression algorithm (e.g., GZIP) |
| tempDirectory | string | Temporary directory |
| fileSize | int | File size (in bytes) |
API Usage
API Usage
本 skill 主要调用 (LinkFox 店铺网关代理),并复用 的 获取 。详见 。按 拼请求体(含 、日期规则):全覆盖专页 (与 中每个枚举一一对应);其中带官方 JSON 结果 Schema 的另见 (GitHub schemas/reports)。
/spApi/developerProxylinkfox-amazon-store-auth/spApi/storeTokensaccessTokenreferences/api.mdreportTypereportOptionsreferences/report-requests/types/README.mdreport-types.mdreferences/report-requests/README.mdThis skill mainly calls (LinkFox Store Gateway Proxy) and reuses from to obtain . For details, see . Construct request body by (including , date rules): Full coverage page (one-to-one correspondence with each enumeration in ); for those with official JSON result Schema, see (GitHub schemas/reports).
/spApi/developerProxy/spApi/storeTokenslinkfox-amazon-store-authaccessTokenreferences/api.mdreportTypereportOptionsreferences/report-requests/types/README.mdreport-types.mdreferences/report-requests/README.mdAvailable Scripts
Available Scripts
- ⭐ — 端到端自动化报告获取(推荐)
scripts/get_report.py - — 主动检测依赖 skill
scripts/check_auth_dependency.py是否已安装linkfox-amazon-store-auth
- ⭐ — End-to-end automated report retrieval (recommended)
scripts/get_report.py - — Actively check if the dependent skill
scripts/check_auth_dependency.pyis installedlinkfox-amazon-store-auth
Usage Scenarios
Usage Scenarios
Scenario 0: Dependency Check (MUST run first)
Scenario 0: Dependency Check (MUST run first)
每次进入本 skill 都要先跑这一步。
- 尝试读取 (若工具允许)
linkfox-amazon-store-auth/SKILL.md - 或执行:
bash
python scripts/check_auth_dependency.py - 若 exit code 非 0 或 stderr 含 ,按上文「发现未安装时的标准处置」流程处理
DEPENDENCY_MISSING: - 依赖满足后再进入正常业务场景
Run this step every time you enter this skill.
- Try to read (if allowed by the tool)
linkfox-amazon-store-auth/SKILL.md - Or execute:
bash
python scripts/check_auth_dependency.py - If the exit code is non-zero or stderr contains , follow the process in "Standard Handling When Dependency Is Not Installed" above
DEPENDENCY_MISSING: - Proceed to normal business scenarios only after dependencies are met
Scenario 1: Pull Amazon Report (Automated, Recommended)
Scenario 1: Pull Amazon Report (Automated, Recommended)
User request:「我要拉库存报告」/「获取订单报告」/「下载销售流量报告」等
Steps:
- 依赖检查(Scenario 0)
- 前置选店铺 + 取令牌:委托
linkfox-amazon-store-auth- 调 让用户选店铺
/spApi/authorizedStores - 调 获取令牌(本 skill 的脚本会自动完成此步,无需手动调)
/spApi/storeTokens
- 调
- 识别报告类型:按用户诉求匹配
reportType- 库存:、
GET_MERCHANT_LISTINGS_ALL_DATAGET_FBA_MYI_UNSUPPRESSED_INVENTORY_DATA - 订单:
GET_FLAT_FILE_ALL_ORDERS_DATA_BY_ORDER_DATE_GENERAL - 销售流量:
GET_SALES_AND_TRAFFIC_REPORT - 财务:
GET_V2_SETTLEMENT_REPORT_DATA_FLAT_FILE - 完整清单:
references/report-types.md
- 库存:
- 执行脚本:
bash
python scripts/get_report.py '{ "sellerId": "A1EC6SZ7XAMURH", "region": "NA", "reportType": "GET_MERCHANT_LISTINGS_ALL_DATA", "marketplaceIds": ["ATVPDKIKX0DER"] }' - 脚本会自动:取令牌 → 请求报告 → 轮询 → 下载 → 解压 → 预览 → 输出 JSON;完成后在 stderr 与 JSON 中给出 本地绝对路径()、本机 file URI(
downloadPath),并默认启动短时本机 HTTP 服务,生成localFileUri(用于在同一台机器的浏览器里下载已解压文件)。向用户展示时至少给出extractedFileHttpUrl、extractedFileHttpUrl与downloadPath;脚本在fileName计时结束后会关闭服务,链接随即失效。若需 Amazon 源地址(多为压缩包),仅调试时设serveSeconds。includeAmazonSourceUrl: true
User request: "I want to pull an inventory report" / "Get an order report" / "Download a sales and traffic report", etc.
Steps:
- Dependency check (Scenario 0)
- Pre-selection of store + token retrieval: Delegate to
linkfox-amazon-store-auth- Call to let the user select a store
/spApi/authorizedStores - Call to obtain the token (this skill's script will automatically complete this step, no manual call needed)
/spApi/storeTokens
- Call
- Identify report type: Match based on user's request
reportType- Inventory: ,
GET_MERCHANT_LISTINGS_ALL_DATAGET_FBA_MYI_UNSUPPRESSED_INVENTORY_DATA - Orders:
GET_FLAT_FILE_ALL_ORDERS_DATA_BY_ORDER_DATE_GENERAL - Sales and traffic:
GET_SALES_AND_TRAFFIC_REPORT - Finance:
GET_V2_SETTLEMENT_REPORT_DATA_FLAT_FILE - Complete list:
references/report-types.md
- Inventory:
- Execute script:
bash
python scripts/get_report.py '{ "sellerId": "A1EC6SZ7XAMURH", "region": "NA", "reportType": "GET_MERCHANT_LISTINGS_ALL_DATA", "marketplaceIds": ["ATVPDKIKX0DER"] }' - The script will automatically: retrieve token → request report → poll → download → decompress → preview → output JSON; upon completion, it will provide the local absolute path (), local file URI (
downloadPath) in stderr and JSON, and by default start a temporary local HTTP service to generatelocalFileUri(for downloading the decompressed file in the browser on the same machine). When presenting to the user, at least showextractedFileHttpUrl,extractedFileHttpUrlanddownloadPath; the script will shut down the service afterfileNameexpires, and the link will become invalid immediately. To get the Amazon source URL (mostly compressed packages), setserveSecondsonly during debugging.includeAmazonSourceUrl: true
Scenario 2: Manual Report Flow (Advanced)
Scenario 2: Manual Report Flow (Advanced)
对需要精细控制的场景,可通过 手工驱动:
/spApi/developerProxy- 取现有报告(更快):
path: reports/2021-06-30/reports method: GET queryString: reportTypes=<type>&marketplaceIds=<ids> - 创建新报告:
path: reports/2021-06-30/reports method: POST body: {"reportType": "...", "marketplaceIds": [...]} - 查状态:
path: reports/2021-06-30/reports/{reportId} method: GET - 取下载链接:
path: reports/2021-06-30/documents/{reportDocumentId} method: GET
For scenarios requiring fine-grained control, you can manually drive via :
/spApi/developerProxy- Retrieve existing reports (faster):
path: reports/2021-06-30/reports method: GET queryString: reportTypes=<type>&marketplaceIds=<ids> - Create new report:
path: reports/2021-06-30/reports method: POST body: {"reportType": "...", "marketplaceIds": [...]} - Check status:
path: reports/2021-06-30/reports/{reportId} method: GET - Retrieve download link:
path: reports/2021-06-30/documents/{reportDocumentId} method: GET
Scenario 3: Custom Date Range / Polling
Scenario 3: Custom Date Range / Polling
bash
python scripts/get_report.py '{
"sellerId": "A1EC6SZ7XAMURH",
"region": "NA",
"reportType": "GET_FLAT_FILE_ALL_ORDERS_DATA_BY_ORDER_DATE_GENERAL",
"marketplaceIds": ["ATVPDKIKX0DER"],
"dataStartTime": "2024-01-01T00:00:00Z",
"dataEndTime": "2024-01-31T23:59:59Z",
"pollInterval": 15,
"maxAttempts": 40
}'bash
python scripts/get_report.py '{
"sellerId": "A1EC6SZ7XAMURH",
"region": "NA",
"reportType": "GET_FLAT_FILE_ALL_ORDERS_DATA_BY_ORDER_DATE_GENERAL",
"marketplaceIds": ["ATVPDKIKX0DER"],
"dataStartTime": "2024-01-01T00:00:00Z",
"dataEndTime": "2024-01-31T23:59:59Z",
"pollInterval": 15,
"maxAttempts": 40
}'Marketplace IDs by Region
Marketplace IDs by Region
| Region | Country | Marketplace ID |
|---|---|---|
| NA | United States | ATVPDKIKX0DER |
| NA | Canada | A2EUQ1WTGCTBG2 |
| NA | Mexico | A1AM78C64UM0Y8 |
| EU | United Kingdom | A1F83G8C2ARO7P |
| EU | Germany | A1PA6795UKMFR9 |
| FE | Japan | A1VC38T7YXB528 |
更多 marketplace ID 详见 。
references/report-types.md| Region | Country | Marketplace ID |
|---|---|---|
| NA | United States | ATVPDKIKX0DER |
| NA | Canada | A2EUQ1WTGCTBG2 |
| NA | Mexico | A1AM78C64UM0Y8 |
| EU | United Kingdom | A1F83G8C2ARO7P |
| EU | Germany | A1PA6795UKMFR9 |
| FE | Japan | A1VC38T7YXB528 |
For more marketplace IDs, see .
references/report-types.mdDisplay Rules
Display Rules
- 先依赖后业务:依赖检查未通过前,不得开始任何报告相关调用。
- 只呈现数据:展示报告获取进度、下载路径、前几行预览;不做业务解读。
- 尊重用户选择的报告类型:用户指定了报告类型就只拉那一种,不得擅自换其他类型。
- 错误清晰:报告失败(/ 403 等)时,解释原因并把决定权交还用户。
FATAL - 安全:日志中 accessToken 掩码展示。
- 完成后展示地址与本机下载链接:脚本成功结束后,必须把 (已解压文件的本机 HTTP 下载,限时)、
extractedFileHttpUrl(本地绝对路径)、downloadPath(文件名)及fileName告知用户;并说明「仅在运行脚本的同一台电脑、在服务保持时间内可用」。不要默认把 Amazon 源 URL 当作用户下载入口;仅在用户明确要求或排障需要时使用localFileUri。includeAmazonSourceUrl
- Dependencies first, business later: Do not start any report-related calls until dependency check passes.
- Only present data: Show report retrieval progress, download path, first few lines of preview; do not provide business interpretation.
- Respect user-selected report type: Only pull the specified report type, do not switch to other types without permission.
- Clear errors: When report retrieval fails (/ 403, etc.), explain the reason and return the decision-making power to the user.
FATAL - Security: Mask accessToken in logs.
- Show addresses and local download links after completion: After the script successfully ends, must inform the user of (temporary local HTTP download for decompressed files),
extractedFileHttpUrl(local absolute path),downloadPath(file name) andfileName; and explain that "it is only available on the same computer running the script and within the service retention period". Do not use the Amazon source URL as the default download entry for users; uselocalFileUrionly when explicitly requested by the user or for troubleshooting.includeAmazonSourceUrl
CRITICAL: Report Failure Handling Rules
CRITICAL: Report Failure Handling Rules
- NEVER automatically try alternative report types when user's specified report fails.
- 报告请求失败(、403 等)时,立即停止并把失败事实告知用户。
FATAL - 不要替用户决定去拉别的报告类型。
- 把失败原因说清楚,让用户决定下一步(重试 / 换类型 / 查权限等)。
- 例:失败时,不要自动改拉
GET_BRAND_ANALYTICS_SEARCH_TERMS_REPORT。GET_MERCHANT_LISTINGS_ALL_DATA
- NEVER automatically try alternative report types when user's specified report fails.
- When report request fails (, 403, etc.), stop immediately and inform the user of the failure.
FATAL - Do not decide on behalf of the user to pull other report types.
- Clearly state the failure reason and let the user decide the next step (retry / change type / check permissions, etc.).
- Example: When fails, do not automatically switch to pulling
GET_BRAND_ANALYTICS_SEARCH_TERMS_REPORT.GET_MERCHANT_LISTINGS_ALL_DATA
Common Report Failure Reasons
Common Report Failure Reasons
- :缺少 API 权限或未加入 Amazon Brand Registry
403 Unauthorized - :该店铺不支持此报告类型或数据不足
FATAL - Brand Analytics 类报告需要品牌备案
- Vendor 类报告仅限 Vendor 账号
- : Missing API permissions or not enrolled in Amazon Brand Registry
403 Unauthorized - : This store does not support this report type or has insufficient data
FATAL - Brand Analytics reports require brand registration
- Vendor reports are only available for Vendor accounts
Important Limitations
Important Limitations
- 依赖 :未安装则必须先安装,见 Prerequisites。
linkfox-amazon-store-auth - Token expiration:1 小时过期,脚本内部自动取最新令牌。
accessToken - Rate limits:Reports API 0.0222 req/s,默认 30s 轮询是安全间隔。
- Report 时效:部分财务报告可能需要 10–30 分钟,按需调大 。
maxAttempts - Path 白名单:后端 必须允许
sp-api.developer-proxy.allowed-path-prefixes。reports/2021-06-30/reports
- Depends on : Must install it first if not installed, see Prerequisites.
linkfox-amazon-store-auth - Token expiration: expires after 1 hour, the script automatically retrieves the latest token internally.
accessToken - Rate limits: Reports API is 0.0222 req/s, default 30s polling interval is safe.
- Report timeliness: Some financial reports may take 10–30 minutes, adjust as needed.
maxAttempts - Path whitelist: Backend must allow
sp-api.developer-proxy.allowed-path-prefixes.reports/2021-06-30/reports
User Expression & Scenario Quick Reference
User Expression & Scenario Quick Reference
Applicable — 报告获取场景:
| User Says | Scenario |
|---|---|
| "拉亚马逊库存报告" / "pull inventory report" | Scenario 1 |
| "下载订单数据" / "download orders report" | Scenario 1 |
| "获取销售流量报告" / "sales and traffic report" | Scenario 1 |
| "拉财务结算报告" / "settlement report" | Scenario 1 |
| "查 FBA 库存" / "FBA inventory report" | Scenario 1 |
| "拉某时间段的订单报告" / "orders from 2024-01-01 to ..." | Scenario 3 |
Not applicable — 超出本 skill:
- 授权新店铺、列已授权店铺、刷新/查询令牌 → 请使用
linkfox-amazon-store-auth - 商品 listing 管理、订单处理、广告投放 → 由其他 skill 负责
Boundary judgment:
- 本 skill 只负责「依赖检查 + 报告获取业务」,授权/令牌属于依赖 skill。
- 任何进入本 skill 的调用都要先跑 Scenario 0。
Feedback:
出现以下任一情况时,自动调用 Feedback API 上报:
- 本 skill 功能描述与实际不符
- 结果与用户意图不符
- 用户表达了不满或赞赏
- 其他你认为可改进的点
按 中的规范调用 Feedback API,不要打断用户主流程。
references/api.mdFor more high-quality, professional cross-border e-commerce skills, visit LinkFox Skills.
Applicable — Report retrieval scenarios:
| User Says | Scenario |
|---|---|
| "Pull Amazon inventory report" / "pull inventory report" | Scenario 1 |
| "Download order data" / "download orders report" | Scenario 1 |
| "Get sales and traffic report" / "sales and traffic report" | Scenario 1 |
| "Pull financial settlement report" / "settlement report" | Scenario 1 |
| "Check FBA inventory" / "FBA inventory report" | Scenario 1 |
| "Pull order report for a specific time period" / "orders from 2024-01-01 to ..." | Scenario 3 |
Not applicable — Beyond this skill:
- Authorize new stores, list authorized stores, refresh/query tokens → Use
linkfox-amazon-store-auth - Product listing management, order processing, advertising delivery → Handled by other skills
Boundary judgment:
- This skill only handles "dependency check + report retrieval business", authorization/token management belongs to the dependent skill.
- Any call entering this skill must run Scenario 0 first.
Feedback:
Automatically call the Feedback API to report when any of the following occurs:
- The skill's function description does not match the actual behavior
- The result does not match the user's intent
- The user expresses dissatisfaction or appreciation
- Other areas you think can be improved
Call the Feedback API according to the specifications in , do not interrupt the user's main process.
references/api.mdFor more high-quality, professional cross-border e-commerce skills, visit LinkFox Skills.