linkfox-amazon-store-orders
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseAmazon 店铺 Orders
Amazon 店铺订单
本 skill 与 、、、 同属 Amazon Store 系列:先 取 ,再 转发上游 / / 。
linkfox-amazon-store-authlinkfox-amazon-store-reportlinkfox-amazon-store-listingslinkfox-amazon-store-pricingPOST /spApi/storeTokensaccessTokenPOST /spApi/developerProxyGETPOSTPATCH本 Skill 与 、、、 同属 Amazon Store 系列:先通过 获取 ,再通过 转发上游的 / / 请求。
linkfox-amazon-store-authlinkfox-amazon-store-reportlinkfox-amazon-store-listingslinkfox-amazon-store-pricingPOST /spApi/storeTokensaccessTokenPOST /spApi/developerProxyGETPOSTPATCH官方参考索引
官方参考索引
| 能力 | 文档 |
|---|---|
| searchOrders | searchOrders |
| getOrder (v2026-01-01) | getOrder |
| getOrderBuyerInfo (deprecated) | getOrderBuyerInfo |
| getOrderAddress (deprecated) | getOrderAddress |
| getOrderItems (deprecated) | getOrderItems |
| getOrderItemsBuyerInfo (deprecated) | getOrderItemsBuyerInfo |
| updateShipmentStatus | updateShipmentStatus |
| getOrderRegulatedInfo | getOrderRegulatedInfo |
| updateVerificationStatus | updateVerificationStatus |
| confirmShipment | confirmShipment |
| 能力 | 文档 |
|---|---|
| searchOrders | searchOrders |
| getOrder (v2026-01-01) | getOrder |
| getOrderBuyerInfo (deprecated) | getOrderBuyerInfo |
| getOrderAddress (deprecated) | getOrderAddress |
| getOrderItems (deprecated) | getOrderItems |
| getOrderItemsBuyerInfo (deprecated) | getOrderItemsBuyerInfo |
| updateShipmentStatus | updateShipmentStatus |
| getOrderRegulatedInfo | getOrderRegulatedInfo |
| updateVerificationStatus | updateVerificationStatus |
| confirmShipment | confirmShipment |
Prerequisites(必须先读)
前置条件(必读)
本 skill 依赖 。
linkfox-amazon-store-auth- 运行 ;若 exit code 42 且 stderr 含
python scripts/check_auth_dependency.py,请先安装DEPENDENCY_MISSING:。linkfox-amazon-store-auth - 不要在本 skill 内绕过依赖实现授权或令牌逻辑。
本 Skill 依赖 。
linkfox-amazon-store-auth- 运行 ;若退出码为 42 且标准错误输出包含
python scripts/check_auth_dependency.py,请先安装DEPENDENCY_MISSING:。linkfox-amazon-store-auth - 请勿在本 Skill 内绕过依赖实现授权或令牌逻辑。
Current Capabilities(脚本一览)
当前功能(脚本清单)
| 能力 | developerProxy | 脚本 |
|---|---|---|
| searchOrders | | |
| getOrder | | |
| getOrderBuyerInfo | | |
| getOrderAddress | | |
| getOrderItems | | |
| getOrderItemsBuyerInfo | | |
| updateShipmentStatus | | |
| getOrderRegulatedInfo | | |
| updateVerificationStatus | | |
| confirmShipment | | |
共享逻辑见 (仅供同目录脚本 import,非独立 CLI)。
scripts/_spapi_orders_common.py| 能力 | developerProxy | 脚本 |
|---|---|---|
| searchOrders | | |
| getOrder | | |
| getOrderBuyerInfo | | |
| getOrderAddress | | |
| getOrderItems | | |
| getOrderItemsBuyerInfo | | |
| updateShipmentStatus | | |
| getOrderRegulatedInfo | | |
| updateVerificationStatus | | |
| confirmShipment | | |
共享逻辑见 (仅供同目录脚本 import,非独立 CLI)。
scripts/_spapi_orders_common.pyQuick Parameters(摘要)
快速参数(摘要)
- searchOrders:或
createdAfter(二选一);lastUpdatedAfter;可选marketplaceIds、fulfillmentStatuses、fulfilledBy、maxResultsPerPage(上一页paginationToken)、nextToken。includedData - getOrder:;可选
orderId(如 BUYER、FULFILLMENT、PACKAGES)。includedData - getOrderItems / getOrderItemsBuyerInfo:可选 → 查询参数
nextToken。NextToken - updateShipmentStatus:、
marketplaceId(ReadyForPickup / PickedUp / RefusedPickup);可选shipmentStatus。orderItems - updateVerificationStatus:传 对象,或整包
regulatedOrderVerificationStatus。requestBody - confirmShipment:为官方要求的完整对象(通常含
requestBody等)。packageDetail
- searchOrders:需指定 或
createdAfter(二选一);lastUpdatedAfter;可选参数包括marketplaceIds、fulfillmentStatuses、fulfilledBy、maxResultsPerPage(即上一页返回的paginationToken)、nextToken。includedData - getOrder:需指定 ;可选参数
orderId(如 BUYER、FULFILLMENT、PACKAGES)。includedData - getOrderItems / getOrderItemsBuyerInfo:可选参数 → 查询参数
nextToken。NextToken - updateShipmentStatus:需指定 、
marketplaceId(ReadyForPickup / PickedUp / RefusedPickup);可选参数shipmentStatus。orderItems - updateVerificationStatus:传入 对象,或完整的
regulatedOrderVerificationStatus。requestBody - confirmShipment:需为官方要求的完整对象(通常包含
requestBody等字段)。packageDetail
Scripts
脚本示例
bash
export LINKFOXAGENT_API_KEY="<your-key>"
python scripts/search_orders.py '{"sellerId":"A1...","region":"NA","marketplaceIds":["ATVPDKIKX0DER"],"lastUpdatedAfter":"2026-05-01T00:00:00Z"}'
python scripts/get_order.py '{"sellerId":"A1...","region":"NA","orderId":"123-1234567-1234567","includedData":["FULFILLMENT","PACKAGES"]}'bash
export LINKFOXAGENT_API_KEY="<your-key>"
python scripts/search_orders.py '{"sellerId":"A1...","region":"NA","marketplaceIds":["ATVPDKIKX0DER"],"lastUpdatedAfter":"2026-05-01T00:00:00Z"}'
python scripts/get_order.py '{"sellerId":"A1...","region":"NA","orderId":"123-1234567-1234567","includedData":["FULFILLMENT","PACKAGES"]}'Display Rules
展示规则
- 先看网关 /
developerProxy.errcode,再解析各脚本附加字段(如httpStatus、searchOrders)。order - POST/PATCH 脚本:中含
stdout(组装后的 Amazon 请求体),便于排查。requestBody - v0 买家/地址/行项目 接口在官方文档中为 deprecated;新集成优先用 v2026-01-01 的 searchOrders / getOrder 与 拉齐业务字段。
includedData - searchOrders 默认速率较低(官方约 0.0056 req/s),注意 429。
- 受限 PII / RDT 以 Amazon 数据保护政策为准;详见 。
references/api.md
- 先查看网关的 /
developerProxy.errcode,再解析各脚本的附加字段(如httpStatus、searchOrders)。order - POST/PATCH 脚本:标准输出()中包含
stdout(组装后的 Amazon 请求体),便于问题排查。requestBody - v0 版本的买家信息/收货地址/订单行项目 接口在官方文档中标记为 deprecated(已弃用);新集成优先使用 v2026-01-01 版本的 searchOrders / getOrder 接口,并通过 获取所需业务字段。
includedData - searchOrders 接口默认调用速率较低(官方约为 0.0056 req/s),需注意处理 429(请求过多)错误。
- 受限的 PII(个人身份信息)/ RDT(受限数据令牌)需遵循 Amazon 数据保护政策;详情请参阅 。
references/api.md
Important Limitations
重要限制
- 权限:Orders 及相关角色;部分读取可能需 Restricted Data Token,不在本 skill 内实现。
- 路径白名单:若网关返回 1005 等拒绝转发,需后端放行 与
orders/v0/...前缀。orders/2026-01-01/... - 返回结构以 Amazon schema 为准;详见 。
references/api.md
Feedback: 见 ,:。
references/api.mdskillNamelinkfox-amazon-store-orders更多跨境 skill:LinkFox Skills
<!-- LF_LARGE_RESPONSE_BLOCK -->- 权限:需拥有 Orders 及相关角色权限;部分数据读取可能需要 Restricted Data Token,该功能未在本 Skill 内实现。
- 路径白名单:若网关返回 1005 等拒绝转发的错误码,需后端放行 与
orders/v0/...前缀的路径。orders/2026-01-01/... - 返回数据结构以 Amazon schema 为准;详情请参阅 。
references/api.md
反馈: 请查看 ,Skill 名称:。
references/api.mdlinkfox-amazon-store-orders更多跨境 Skill:LinkFox Skills
<!-- LF_LARGE_RESPONSE_BLOCK -->Handling Large Responses
大响应处理
To avoid overflowing the agent context, persist the response to disk and extract only the fields you need:
python scripts/response_io.py run --script scripts/check_auth_dependency.py --out-dir <DIR> '<params>'
python scripts/response_io.py read <file> --fields "<paths>" # or --path "<JMESPath>"Pickoutside any git working tree (e.g.--out-diron Unix,/tmp/...on Windows). Persisted responses may contain PII, pricing, or auth-sensitive data — do not commit them. Files are not auto-deleted; clean up when the task is done.%TEMP%/...
This skill exposes multiple entry scripts:,check_auth_dependency.py,confirm_shipment.py,get_order.py,get_order_address.py,get_order_buyer_info.py,get_order_items.py,get_order_items_buyer_info.py,get_order_regulated_info.py,search_orders.py,update_shipment_status.py. Passupdate_verification_status.pyto choose the one you need.--script scripts/<name>.py
runread--limit/--offset--format json|jsonl|csv|tableWhen to prefer this pattern — apply your judgment based on the response characteristics, e.g.:
- High field count per record, or fields you don't need
- Batch/paginated results (multiple items per call)
- Long-text fields (descriptions, reviews, HTML, time series)
- Output reused across later steps rather than consumed immediately
For small, single-use responses, calling the main script directly is fine.
⚠️ The preview is a truncated schema + sample, not the full data. Any field-level decision must read from the persisted file via .
<!-- /LF_LARGE_RESPONSE_BLOCK -->read为避免超出 Agent 上下文限制,请将响应持久化到磁盘并仅提取所需字段:
python scripts/response_io.py run --script scripts/check_auth_dependency.py --out-dir <DIR> '<params>'
python scripts/response_io.py read <file> --fields "<paths>" # 或使用 --path "<JMESPath>"请将设置在 Git 工作目录之外(例如 Unix 系统的--out-dir,Windows 系统的/tmp/...)。持久化的响应可能包含 PII、定价或敏感授权数据——请勿提交到代码仓库。文件不会自动删除,任务完成后请自行清理。%TEMP%/...
本 Skill 提供多个入口脚本:、check_auth_dependency.py、confirm_shipment.py、get_order.py、get_order_address.py、get_order_buyer_info.py、get_order_items.py、get_order_items_buyer_info.py、get_order_regulated_info.py、search_orders.py、update_shipment_status.py。通过传递update_verification_status.py参数选择所需脚本。--script scripts/<name>.py
runread--limit/--offset--format json|jsonl|csv|table何时优先使用此模式——根据响应特性判断,例如:
- 每条记录字段数量多,或包含不需要的字段
- 批量/分页结果(单次调用返回多个条目)
- 长文本字段(描述、评论、HTML、时间序列等)
- 输出结果需在后续步骤中重复使用,而非立即消费
对于小型、单次使用的响应,直接调用主脚本即可。
⚠️ 预览内容是截断的 schema + 示例,并非完整数据。任何字段级别的操作必须通过 命令从持久化文件中读取。
<!-- /LF_LARGE_RESPONSE_BLOCK -->read