Install
openclaw skills install @linkfox-ai/linkfox-amazon-store-fba亚马逊店铺 Fulfillment by Amazon(FBA)系列(与 linkfox-amazon-store-auth 同系列),经 /spApi/developerProxy 调用 SP-API:FBA Inbound Eligibility(getItemEligibilityPreview)、FBA Inventory(getInventorySummaries/createInventoryItem/deleteInventoryItem/addInventory)、Fulfillment Inbound v2024-03-20(InboundPlan/装箱/放置/运输/货件等)与 v0(prepInstructions/labels/BOL/shipments)、Fulfillment Outbound 2020-07-01(MCF 履约单/预览/退货/tracking/features)。当用户提到 FBA、入仓资格、Inbound Eligibility、FBA 库存摘要、Send to Amazon、Inbound Plan、FBA 货件、MCF、多渠道履约、getItemEligibilityPreview、getInventorySummaries、createInboundPlan、createFulfillmentOrder 时触发。与 External Fulfillment / 普通 Orders 不同。
openclaw skills install @linkfox-ai/linkfox-amazon-store-fba本 skill 与 linkfox-amazon-store-auth 同属 Amazon Store 系列:依赖授权选店(sellerId+region);经 POST /spApi/developerProxy 转发 SP-API(勿传 amzAccessToken,除非兼容旧调用)。
覆盖 方案 A 模块:
不包含:FBA Small and Light(已弃用)、External Fulfillment(见 linkfox-amazon-store-external-fulfillment)、Merchant Fulfillment(MFN)。
python scripts/fba_api.py '{"api":"<operationId>","sellerId":"...","region":"NA",...}' [--inline]python scripts/<脚本名>.py '<JSON>' [--inline](完整对照见 references/capabilities.md)requestBody;也可把业务字段平铺在 JSON 中(脚本会排除 sellerId/region/path/query 后组装 body)query 对象 / queryString 覆盖输出策略:完整响应落盘到 linkfox/<date>/<session>/data/linkfox-amazon-store-fba-*.json;>8KB 默认摘要;--inline 全量打印。
发生未配置 API Key、401/402、积分不足时,采用 references/onboarding.md 引导。
linkfox-amazon-store-auth:python scripts/check_auth_dependency.py(exit 42 → 先装 auth)fba/、inbound/fba/(遇 1005 找后端加白)共 70 个 operation。模块表:
| 模块 | 数量 | 说明 |
|---|---|---|
| eligibility | 1 | getItemEligibilityPreview |
| inventory | 4 | summaries / create / delete / add |
| inbound_v0 | 6 | prep / labels / BOL / shipments / items |
| inbound (2024-03-20) | 45 | InboundPlan 全流程 |
| outbound (2020-07-01) | 14 | MCF 履约 |
完整 Operation ↔ path ↔ 脚本表:见 references/capabilities.md
机器可读注册表:scripts/_fba_endpoints.py、references/operations.json
asin、program(INBOUND|COMMINGLING)program=INBOUND 时必填 marketplaceIds(或 marketplaceId,最多 1 个)python scripts/get_item_eligibility_preview.py '{"sellerId":"A1...","region":"NA","asin":"B0...","program":"INBOUND","marketplaceId":"ATVPDKIKX0DER"}'
granularityType(通常 Marketplace)、granularityId(marketplaceId)、marketplaceIdsdetails、sellerSkus、startDateTime、nextToken复杂 schema 请用 requestBody 按官方模型传完整 JSON;path 参数(如 inboundPlanId、shipmentId、sellerFulfillmentOrderId)与 query 字段并列在入参中。
异步步骤(generate*Options 等)返回后用 getInboundOperationStatus 轮询(勿擅自高频轮询,先征得用户同意)。
export LINKFOXAGENT_API_KEY="<your-key>"
# 统一入口
python scripts/fba_api.py '{"api":"getItemEligibilityPreview","sellerId":"A1...","region":"NA","asin":"B0...","program":"INBOUND","marketplaceIds":["ATVPDKIKX0DER"]}'
python scripts/fba_api.py '{"api":"getInventorySummaries","sellerId":"A1...","region":"NA","granularityType":"Marketplace","granularityId":"ATVPDKIKX0DER","marketplaceIds":["ATVPDKIKX0DER"],"details":true}'
python scripts/fba_api.py '{"api":"listInboundPlans","sellerId":"A1...","region":"NA","pageSize":10}'
共享模块:_spapi_fba_common.py、_fba_endpoints.py、_fba_runner.py(非独立 CLI)。
developerProxy.errcode / httpStatus,再看解析字段 payloadgetShipments/getShipment 勿混淆:v0 脚本为 get_shipments_v0.py;2024 货件为 get_inbound_shipment.pylinkfox-amazon-store-orders、linkfox-amazon-store-external-fulfillment 边界清晰,勿混用不消耗积分(以网关实际计费为准)。
Feedback: skillName:linkfox-amazon-store-fba
更多跨境 skill:LinkFox Skills