linkfox-amazon-store-fulfillment-outbound
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseAmazon 店铺 Fulfillment Outbound
Amazon店铺Fulfillment Outbound
Use this Skill for Amazon Multi-Channel Fulfillment workflows on Fulfillment Outbound . It exposes all nine operations in Amazon's current Outbound model plus the overview page's associated operation from Invoices , while keeping the existing production and implementations untouched.
v2026-07-04getInvoiceHeadersv2026-06-25linkfox-amazon-store-fbalinkfox-amazon-store-external-fulfillment本Skill适用于基于Fulfillment Outbound 版本的Amazon Multi-Channel Fulfillment(MCF)工作流。它开放了Amazon当前Outbound模型中的全部9项操作,以及概览页关联的Invoices 版本的操作,同时不改动现有生产环境中的和实现。
v2026-07-04v2026-06-25getInvoiceHeaderslinkfox-amazon-store-fbalinkfox-amazon-store-external-fulfillmentPrerequisites
前置条件
- Require . Run
linkfox-amazon-store-auth; exit codepython scripts/check_auth_dependency.pymeans the dependency must be installed or loaded first.42 - Select one authorized store and obtain its and
sellerId. Accept onlyregion,NA, orEU.FE - Never accept or forward ,
amzAccessToken, oraccessToken; the server resolves authorization fromrefreshToken.sellerId + region - Read references/api.md for operation contracts and references/workflows.md before a create, update, or cancel action.
- After explicit user confirmation, pass boolean to
confirmWrite: true,createOrder,updateOrder,cancelOrder, orupdateOrderStatus; the wrappers reject writes without it.updatePackage - When Amazon assigned a multi-tenant service identifier, pass it only as top-level (1–40 characters). The proxy maps it to
fulfillmentServiceId; never put the raw header name in query or body.x-amzn-fulfillment-service-id
- 依赖****。运行
linkfox-amazon-store-auth脚本;若退出码为python scripts/check_auth_dependency.py,则必须先安装或加载该依赖。42 - 选择一个已授权的店铺并获取其和
sellerId。仅接受region、NA或EU区域。FE - 切勿接受或转发、
amzAccessToken或accessToken;服务器会通过refreshToken解析授权信息。sellerId + region - 在执行创建、更新或取消操作前,请阅读references/api.md中的操作契约和references/workflows.md中的工作流说明。
- 获得用户明确确认后,向、
createOrder、updateOrder、cancelOrder或updateOrderStatus传递布尔值updatePackage;未携带该参数时,包装器会拒绝写入操作。confirmWrite: true - 当Amazon分配了多租户服务标识符时,仅需将其作为顶层参数(1-40字符)传递。代理会将其映射为
fulfillmentServiceId;切勿将原始头部名称放入查询参数或请求体中。x-amzn-fulfillment-service-id
调用方式
调用方式
- API 端点:(完整参数/响应/错误码见
POST /spApi/developerProxy)references/api.md - Python 脚本:
python scripts/<operation_script>.py '<JSON 参数>' [--inline] [--no-cache] - 调用约束:本工具沿用 Amazon Store Skill 的统一免费配置;同一会话同一参数组合默认只调用一次,脚本带 24h 本地缓存。失败/空结果不得自动换参数、翻页或连续试探;需要继续调用时先征得用户同意。
输出策略(脚本默认行为):
- 始终将完整响应写入 (
<cwd>/linkfox/<YYYY-MM-DD>/<session>/data/linkfox-amazon-store-fulfillment-outbound-<timestamp>.json取自<session>;禁止写入SESSION_ID,当前目录不可写则报错)/tmp - 响应体 ≤ 8 KB:落盘后把完整 JSON 打印到 stdout
- 响应体 > 8 KB:落盘后 stdout 只输出摘要(顶层字段、常见计数、最大列表字段长度及前 3 条样本)
- 加 强制全量打印到 stdout(同样落盘)
--inline - 加 强制本次读/预览操作访问网关;只在用户要求刷新或已确认外部状态变化时使用
--no-cache
读数据建议:先看摘要;需要具体字段时用 或 从保存文件按需抽取。
jqConvertFrom-Json- API 端点:(完整参数/响应/错误码见
POST /spApi/developerProxy)references/api.md - Python 脚本:
python scripts/<operation_script>.py '<JSON 参数>' [--inline] [--no-cache] - 调用约束:本工具沿用 Amazon Store Skill 的统一免费配置;同一会话同一参数组合默认只调用一次,脚本带有24小时本地缓存。失败/空结果不得自动更换参数、翻页或连续试探;需要继续调用时需先征得用户同意。
输出策略(脚本默认行为):
- 始终将完整响应写入 (
<cwd>/linkfox/<YYYY-MM-DD>/<session>/data/linkfox-amazon-store-fulfillment-outbound-<timestamp>.json取自<session>;禁止写入SESSION_ID,当前目录不可写则报错)/tmp - 响应体 ≤ 8 KB:落盘后把完整 JSON 打印到 stdout
- 响应体 > 8 KB:落盘后 stdout 只输出摘要(顶层字段、常见计数、最大列表字段长度及前 3 条样本)
- 加 强制全量打印到 stdout(同样落盘)
--inline - 加 强制本次读/预览操作访问网关;只在用户要求刷新或已确认外部状态变化时使用
--no-cache
读数据建议:先看摘要;需要具体字段时用 或 从保存文件按需抽取。
jqConvertFrom-JsonOperation Guide
操作指南
| Stage | Operation | Script | Availability |
|---|---|---|---|
| Quote | | | Production |
| Preview | | | Production |
| Create | | | Production |
| Read | | | Production |
| List | | | Production |
| Release hold / update | | | Production |
| Cancel | | | Production |
| Simulate order status | | | Amazon dynamic sandbox only |
| Simulate package status | | | Amazon dynamic sandbox only |
| List invoice headers | | | Production, Invoices v2026-06-25 |
| 阶段 | 操作 | 脚本 | 可用性 |
|---|---|---|---|
| 报价 | | | 生产环境可用 |
| 预览 | | | 生产环境可用 |
| 创建 | | | 生产环境可用 |
| 查询 | | | 生产环境可用 |
| 列出 | | | 生产环境可用 |
| 解除保留/更新 | | | 生产环境可用 |
| 取消 | | | 生产环境可用 |
| 模拟订单状态 | | | 仅Amazon动态沙箱可用 |
| 模拟包裹状态 | | | 仅Amazon动态沙箱可用 |
| 列出发票头 | | | 生产环境可用(Invoices v2026-06-25) |
Workflow Rules
工作流规则
- Use for multi-SKU delivery options and expiration times; use
getOffersfor planned shipments, fees, constraints, and fulfillability.getOrderPreview - Show the chosen store, destination, line items, service tier, fees, hold/ship action, and before
orderId.createOrder - Treat and every
orderIdas seller-controlled idempotency identifiers. Never invent a replacement ID after an uncertain timeout.lineItemId - A response can be HTTP 200 or 202. On 202, use the returned/requested
createOrderwithorderId; do not automatically poll.getOrder - Use only to update the supported fulfillment configuration, currently the HOLD/SHIP action. Confirm before releasing a held order.
updateOrder - Confirm before . Amazon only stops fulfillment where cancellation is still possible; do not present 202 as completed cancellation.
cancelOrder - Add to
shipments: "INCLUDE"orgetOrderwhen package and tracking details are needed.listOrders - Never automatically replay POST/PUT after 429, 500, 503, or a timeout. Recover with where possible.
getOrder - Use only for header-level invoice discovery. Require
getInvoiceHeaders; provide both issue-date bounds or neither, keep the range within 90 days, and page withmarketplaceIdonly after user approval.nextToken
- 使用获取多SKU配送选项及有效期;使用
getOffers查看计划发货信息、费用、约束条件及可履约状态。getOrderPreview - 在执行前,展示所选店铺、目的地、商品明细、服务等级、费用、保留/发货操作及
createOrder。orderId - 将和每个
orderId视为卖家控制的幂等标识符。在超时不确定的情况下,切勿自行生成替代ID。lineItemId - 的响应可能是HTTP 200或202。若为202,使用返回/请求的
createOrder调用orderId;请勿自动轮询。getOrder - 仅可使用更新支持的履约配置,目前仅支持保留/发货操作的更新。解除订单保留前需确认。
updateOrder - 执行前需确认。Amazon仅会在仍可取消的情况下停止履约;请勿将202状态视为取消完成。
cancelOrder - 当需要包裹和跟踪详情时,在或
getOrder中添加listOrders参数。shipments: "INCLUDE" - 遇到429、500、503状态码或超时后,切勿自动重放POST/PUT请求。尽可能通过恢复状态。
getOrder - 仅可使用进行发票头级别的发票查询。需提供
getInvoiceHeaders;要么同时提供开票日期范围,要么都不提供,且范围需在90天内;仅在获得用户批准后,使用marketplaceId进行分页查询。nextToken
Important Limitations
重要限制
- and
updateOrderStatusare markedupdatePackageby Amazon. Consistent with the existing FBA skill, their wrappers use the samex-amzn-api-sandbox-only: truerequest shape as every other operation and do not accept or send a separate/spApi/developerProxycontrol field. Use them only with sandbox test data; availability depends on the unified gateway/upstream route.sandbox - The optional multi-tenant header is exposed only through the typed top-level
x-amzn-fulfillment-service-idparameter. Raw header names, nested aliases, blank values, values over 40 characters, and newline characters are rejected before calling the gateway.fulfillmentServiceId - Amazon's Outbound overview role list mentions , but its Reference path is
getInvoiceHeaders. This Skill exposes it as an explicitly labeled related Invoices operation; it is not counted among the nine Outbound OpenAPI operations and does not accept/finances/invoices/2026-06-25/invoices.fulfillmentServiceId - Legacy v2020-07-01 returns, features, and package-tracking operations remain in the production FBA Skill and are not copied into this current-version Skill. Read references/migration.md when migrating.
- Amazon将和
updateOrderStatus标记为updatePackage。与现有FBA Skill一致,它们的包装器使用与其他操作相同的x-amzn-api-sandbox-only: true请求格式,且不接受或发送单独的/spApi/developerProxy控制字段。仅可在沙箱测试数据中使用这些操作;可用性取决于统一网关/上游路由。sandbox - 可选的多租户头部仅通过类型化的顶层参数
x-amzn-fulfillment-service-id暴露。原始头部名称、嵌套别名、空值、超过40字符的值及换行符会在调用网关前被拒绝。fulfillmentServiceId - Amazon的Outbound概览角色列表中提到了,但其参考路径为
getInvoiceHeaders。本Skill将其作为明确标记的关联Invoices操作开放;它不属于Outbound OpenAPI的9项操作,且不接受/finances/invoices/2026-06-25/invoices参数。fulfillmentServiceId - 旧版v2020-07-01的返回结果、功能及包裹跟踪操作仍保留在生产环境的FBA Skill中,未复制到当前版本的Skill中。迁移时请阅读references/migration.md。
Display Rules
展示规则
- Present Amazon data and identifiers without exposing internal tool names or access tokens.
- Separate operation success from business completion: show gateway , Amazon
errcode, orderhttpStatus, constraints, and next action.status - For offers and previews, show expiration, service tier, delivery interval, currency, price, and item constraints together.
- For orders, show , status, line items, shipments, packages, tracking, proof of delivery, drop-off/locker details, unit identifiers, and pagination token only when present.
orderId
- 展示Amazon数据和标识符时,不得暴露内部工具名称或访问令牌。
- 区分操作成功与业务完成:展示网关、Amazon
errcode、订单httpStatus、约束条件及下一步操作。status - 对于报价和预览信息,需同时展示有效期、服务等级、配送区间、货币、价格及商品约束条件。
- 对于订单信息,仅当存在、状态、商品明细、发货信息、包裹、跟踪信息、签收证明、自提点/储物柜详情、商品标识符及分页令牌时才展示。
orderId
User Expression
用户指令示例
Ask: “Check MCF delivery options for these Amazon SKUs to this postal code.”
Do: use ; do not create an order.
getOffersAsk: “Preview and then create this MCF order.”
Do: run , present constraints and fees, obtain confirmation, then run once.
getOrderPreviewcreateOrderAsk: “Track my MCF order.”
Do: run with ; do not call the legacy tracking operation.
getOrdershipments: "INCLUDE"用户提问:“查询这些Amazon SKU配送至该邮政编码的MCF配送选项。”
执行操作:调用;请勿创建订单。
getOffers用户提问:“预览并创建这个MCF订单。”
执行操作:先调用,展示约束条件和费用,获得确认后,再调用一次。
getOrderPreviewcreateOrder用户提问:“跟踪我的MCF订单。”
执行操作:调用带有参数的;请勿调用旧版跟踪操作。
shipments: "INCLUDE"getOrderFeedback
反馈方式
Report issues with , operation, masked IDs, resolved path, gateway status, and Amazon response summary. Never include credentials.
skillName: linkfox-amazon-store-fulfillment-outbound反馈问题时请提供、操作名称、脱敏后的ID、已解析路径、网关状态及Amazon响应摘要。切勿包含凭证信息。
skillName: linkfox-amazon-store-fulfillment-outbound