linkfox-amazon-store-orders

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Amazon 店铺 Orders

Amazon 店铺订单

本 skill 与
linkfox-amazon-store-auth
linkfox-amazon-store-report
linkfox-amazon-store-listings
linkfox-amazon-store-pricing
同属 Amazon Store 系列:先
POST /spApi/storeTokens
accessToken
,再
POST /spApi/developerProxy
转发上游
GET
/
POST
/
PATCH
本 Skill 与
linkfox-amazon-store-auth
linkfox-amazon-store-report
linkfox-amazon-store-listings
linkfox-amazon-store-pricing
同属 Amazon Store 系列:先通过
POST /spApi/storeTokens
获取
accessToken
,再通过
POST /spApi/developerProxy
转发上游的
GET
/
POST
/
PATCH
请求。

官方参考索引

官方参考索引

能力文档
searchOrderssearchOrders
getOrder (v2026-01-01)getOrder
getOrderBuyerInfo (deprecated)getOrderBuyerInfo
getOrderAddress (deprecated)getOrderAddress
getOrderItems (deprecated)getOrderItems
getOrderItemsBuyerInfo (deprecated)getOrderItemsBuyerInfo
updateShipmentStatusupdateShipmentStatus
getOrderRegulatedInfogetOrderRegulatedInfo
updateVerificationStatusupdateVerificationStatus
confirmShipmentconfirmShipment

能力文档
searchOrderssearchOrders
getOrder (v2026-01-01)getOrder
getOrderBuyerInfo (deprecated)getOrderBuyerInfo
getOrderAddress (deprecated)getOrderAddress
getOrderItems (deprecated)getOrderItems
getOrderItemsBuyerInfo (deprecated)getOrderItemsBuyerInfo
updateShipmentStatusupdateShipmentStatus
getOrderRegulatedInfogetOrderRegulatedInfo
updateVerificationStatusupdateVerificationStatus
confirmShipmentconfirmShipment

Prerequisites(必须先读)

前置条件(必读)

本 skill 依赖
linkfox-amazon-store-auth
  1. 运行
    python scripts/check_auth_dependency.py
    ;若 exit code 42 且 stderr 含
    DEPENDENCY_MISSING:
    ,请先安装
    linkfox-amazon-store-auth
  2. 不要在本 skill 内绕过依赖实现授权或令牌逻辑。

本 Skill 依赖
linkfox-amazon-store-auth
  1. 运行
    python scripts/check_auth_dependency.py
    ;若退出码为 42 且标准错误输出包含
    DEPENDENCY_MISSING:
    ,请先安装
    linkfox-amazon-store-auth
  2. 请勿在本 Skill 内绕过依赖实现授权或令牌逻辑。

Current Capabilities(脚本一览)

当前功能(脚本清单)

能力developerProxy
path
(要点)
脚本
searchOrders
orders/2026-01-01/orders
+ Query
search_orders.py
getOrder
orders/2026-01-01/orders/{orderId}
+ Query
get_order.py
getOrderBuyerInfo
orders/v0/orders/{orderId}/buyerInfo
get_order_buyer_info.py
getOrderAddress
orders/v0/orders/{orderId}/address
get_order_address.py
getOrderItems
orders/v0/orders/{orderId}/orderItems
+ NextToken
get_order_items.py
getOrderItemsBuyerInfo
orders/v0/orders/{orderId}/orderItems/buyerInfo
get_order_items_buyer_info.py
updateShipmentStatus
orders/v0/orders/{orderId}/shipment
,POST JSON
update_shipment_status.py
getOrderRegulatedInfo
orders/v0/orders/{orderId}/regulatedInfo
get_order_regulated_info.py
updateVerificationStatus
orders/v0/orders/{orderId}/regulatedInfo
,PATCH JSON
update_verification_status.py
confirmShipment
orders/v0/orders/{orderId}/shipmentConfirmation
,POST JSON
confirm_shipment.py
共享逻辑见
scripts/_spapi_orders_common.py
(仅供同目录脚本 import,非独立 CLI)。

能力developerProxy
path
(要点)
脚本
searchOrders
orders/2026-01-01/orders
+ Query
search_orders.py
getOrder
orders/2026-01-01/orders/{orderId}
+ Query
get_order.py
getOrderBuyerInfo
orders/v0/orders/{orderId}/buyerInfo
get_order_buyer_info.py
getOrderAddress
orders/v0/orders/{orderId}/address
get_order_address.py
getOrderItems
orders/v0/orders/{orderId}/orderItems
+ NextToken
get_order_items.py
getOrderItemsBuyerInfo
orders/v0/orders/{orderId}/orderItems/buyerInfo
get_order_items_buyer_info.py
updateShipmentStatus
orders/v0/orders/{orderId}/shipment
,POST JSON
update_shipment_status.py
getOrderRegulatedInfo
orders/v0/orders/{orderId}/regulatedInfo
get_order_regulated_info.py
updateVerificationStatus
orders/v0/orders/{orderId}/regulatedInfo
,PATCH JSON
update_verification_status.py
confirmShipment
orders/v0/orders/{orderId}/shipmentConfirmation
,POST JSON
confirm_shipment.py
共享逻辑见
scripts/_spapi_orders_common.py
(仅供同目录脚本 import,非独立 CLI)。

Quick Parameters(摘要)

快速参数(摘要)

  • searchOrders
    createdAfter
    lastUpdatedAfter
    (二选一);
    marketplaceIds
    ;可选
    fulfillmentStatuses
    fulfilledBy
    maxResultsPerPage
    paginationToken
    (上一页
    nextToken
    )、
    includedData
  • getOrder
    orderId
    ;可选
    includedData
    (如 BUYER、FULFILLMENT、PACKAGES)。
  • getOrderItems / getOrderItemsBuyerInfo:可选
    nextToken
    → 查询参数
    NextToken
  • updateShipmentStatus
    marketplaceId
    shipmentStatus
    (ReadyForPickup / PickedUp / RefusedPickup);可选
    orderItems
  • updateVerificationStatus:传
    regulatedOrderVerificationStatus
    对象,或整包
    requestBody
  • confirmShipment
    requestBody
    为官方要求的完整对象(通常含
    packageDetail
    等)。

  • searchOrders:需指定
    createdAfter
    lastUpdatedAfter
    (二选一);
    marketplaceIds
    ;可选参数包括
    fulfillmentStatuses
    fulfilledBy
    maxResultsPerPage
    paginationToken
    (即上一页返回的
    nextToken
    )、
    includedData
  • getOrder:需指定
    orderId
    ;可选参数
    includedData
    (如 BUYER、FULFILLMENT、PACKAGES)。
  • getOrderItems / getOrderItemsBuyerInfo:可选参数
    nextToken
    → 查询参数
    NextToken
  • updateShipmentStatus:需指定
    marketplaceId
    shipmentStatus
    (ReadyForPickup / PickedUp / RefusedPickup);可选参数
    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

展示规则

  1. 先看网关
    developerProxy.errcode
    /
    httpStatus
    ,再解析各脚本附加字段(如
    searchOrders
    order
    )。
  2. POST/PATCH 脚本:
    stdout
    中含
    requestBody
    (组装后的 Amazon 请求体),便于排查。
  3. v0 买家/地址/行项目 接口在官方文档中为 deprecated;新集成优先用 v2026-01-01searchOrders / getOrder
    includedData
    拉齐业务字段。
  4. searchOrders 默认速率较低(官方约 0.0056 req/s),注意 429
  5. 受限 PII / RDT 以 Amazon 数据保护政策为准;详见
    references/api.md

  1. 先查看网关的
    developerProxy.errcode
    /
    httpStatus
    ,再解析各脚本的附加字段(如
    searchOrders
    order
    )。
  2. POST/PATCH 脚本:标准输出(
    stdout
    )中包含
    requestBody
    (组装后的 Amazon 请求体),便于问题排查。
  3. v0 版本的买家信息/收货地址/订单行项目 接口在官方文档中标记为 deprecated(已弃用);新集成优先使用 v2026-01-01 版本的 searchOrders / getOrder 接口,并通过
    includedData
    获取所需业务字段。
  4. searchOrders 接口默认调用速率较低(官方约为 0.0056 req/s),需注意处理 429(请求过多)错误。
  5. 受限的 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.md
skillName
linkfox-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
反馈: 请查看
references/api.md
,Skill 名称:
linkfox-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>"
Pick
--out-dir
outside any git working tree (e.g.
/tmp/...
on Unix,
%TEMP%/...
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.
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
,
update_verification_status.py
. Pass
--script scripts/<name>.py
to choose the one you need.
run
writes the full response to a file and emits only a schema preview + file path.
read
projects specific fields, with
--limit/--offset
for slicing and
--format json|jsonl|csv|table
for output.
When 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
read
.
<!-- /LF_LARGE_RESPONSE_BLOCK -->
为避免超出 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>"
请将
--out-dir
设置在 Git 工作目录之外(例如 Unix 系统的
/tmp/...
,Windows 系统的
%TEMP%/...
)。持久化的响应可能包含 PII、定价或敏感授权数据——请勿提交到代码仓库。文件不会自动删除,任务完成后请自行清理。
本 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
参数选择所需脚本。
run
命令会将完整响应写入文件,并仅输出 schema 预览 + 文件路径。
read
命令可提取指定字段,支持通过
--limit/--offset
进行切片,以及通过
--format json|jsonl|csv|table
指定输出格式。
何时优先使用此模式——根据响应特性判断,例如:
  • 每条记录字段数量多,或包含不需要的字段
  • 批量/分页结果(单次调用返回多个条目)
  • 长文本字段(描述、评论、HTML、时间序列等)
  • 输出结果需在后续步骤中重复使用,而非立即消费
对于小型、单次使用的响应,直接调用主脚本即可。
⚠️ 预览内容是截断的 schema + 示例,并非完整数据。任何字段级别的操作必须通过
read
命令从持久化文件中读取。
<!-- /LF_LARGE_RESPONSE_BLOCK -->