Loading...
Loading...
亚马逊店铺 External Fulfillment(与 linkfox-amazon-store-auth / orders / listings 同系列),经 /spApi/developerProxy 调用 SP-API External Fulfillment v2024-09-11:Inventory 的 batchInventory(按 location 查/写库存);Shipping 的 getShipments、getShipment、processShipment、createPackages、updatePackage、updatePackageStatus、retrieveShippingOptions、generateInvoice、retrieveInvoice、generateShipLabels;Returns 的 listReturns、getReturn。覆盖 Seller Flex / Easy Ship / Self Ship / MFN Self Delivery 等。当用户提到 External Fulfillment、SmartConnect、Seller Flex、FBA Onsite、Easy Ship、Self Ship、batchInventory、location 库存、履约单 shipment、面单、发票、EF 退货、externalFulfillment 时触发。与普通 Orders/Feeds 库存不同,本技能专指 External Fulfillment API。
npx skill4agent add linkfox-ai/linkfox-skills linkfox-amazon-store-external-fulfillmentlinkfox-amazon-store-authlinkfox-amazon-store-authsellerIdregionPOST /spApi/developerProxysellerIdregionamzAccessTokenGETPOSTPUTPATCHPOST /spApi/developerProxyreferences/api.mdpython scripts/<脚本名>.py '<JSON 参数>' [--inline]<cwd>/linkfox/<YYYY-MM-DD>/<session>/data/linkfox-amazon-store-external-fulfillment-<timestamp>.json--inlinejqConvertFrom-JsonLINKFOX_AGENT_API_KEYLINKFOXAGENT_API_KEY| 模块 | 能力 | 文档 |
|---|---|---|
| Inventory | batchInventory | batchInventory |
| Shipping | getShipments | getShipments |
| Shipping | getShipment | getShipment |
| Shipping | processShipment | processShipment |
| Shipping | createPackages | createPackages |
| Shipping | updatePackage | updatePackage |
| Shipping | updatePackageStatus | updatePackageStatus |
| Shipping | retrieveShippingOptions | retrieveShippingOptions |
| Shipping | generateInvoice | generateInvoice |
| Shipping | retrieveInvoice | retrieveInvoice |
| Shipping | generateShipLabels | generateShipLabels |
| Returns | listReturns | listReturns |
| Returns | getReturn | getReturn |
linkfox-amazon-store-authpython scripts/check_auth_dependency.pyDEPENDENCY_MISSING:linkfox-amazon-store-auth| 能力 | developerProxy | 脚本 |
|---|---|---|
| batchInventory | | |
| getShipments | | |
| getShipment | | |
| processShipment | | |
| createPackages | | |
| updatePackage | | |
| updatePackageStatus | 同上 path,PATCH | |
| retrieveShippingOptions | | |
| generateInvoice | | |
| retrieveInvoice | 同上 path,GET | |
| generateShipLabels | | |
| listReturns | | |
| getReturn | | |
scripts/_spapi_ef_common.pyrequestsactionfetchupdatelocationIdskuIdquantitylocationId=DEFAULTuseAmazonRequestShape:truerequestsstatusACCEPTEDCREATEDlocationIdmarketplaceIdchannelNamelastUpdatedAfter/BeforemaxResultspaginationTokenoperationCONFIRMREJECTreferenceIdlineItemsrequestBodypackageLineItemspackagesrequestBodystatussubStatusreasonoperationGENERATEREGENERATEshippingOptionIdpackageIdsstatusCREATEDreturnLocationIdnextTokengetShipmentsprocessShipment(CONFIRM)createPackagesretrieveShippingOptionsgenerateInvoicegenerateShipLabelsupdatePackageStatusexport LINKFOXAGENT_API_KEY="<your-key>"
python scripts/post_batch_inventory.py '{"sellerId":"A1...","region":"NA","requests":[{"action":"fetch","locationId":"DEFAULT","skuId":"SKU-1","marketplaceAttributes":{"marketplaceId":"ATVPDKIKX0DER","channelName":"MFN"}}]}'
python scripts/get_shipments.py '{"sellerId":"A1...","region":"NA","status":"ACCEPTED","locationId":"ABCD"}'
python scripts/process_shipment.py '{"sellerId":"A1...","region":"NA","shipmentId":"...","operation":"CONFIRM"}'developerProxy.errcodehttpStatusbatchInventoryshipmentsinvoiceresponses[].statussuccess: trueexternalFulfillment/linkfox-amazon-store-orderslinkfox-amazon-store-feedslinkfox-amazon-store-reportretrieveShippingOptionsgenerateInvoicereferences/api.mdreferences/api.mdskillNamelinkfox-amazon-store-external-fulfillment