Amazon Store Uploads
/install linkfox-amazon-store-uploads
Amazon 店铺 Uploads(文件上传)
本 skill 专用于 向 Amazon 申请上传目的地并上传文件,与 linkfox-amazon-store-auth 同系列:先 storeTokens,再 developerProxy 调用 createUploadDestinationForResource,最后用 upload_to_destination.py 对返回的 URL 执行 PUT(不经网关)。
这是 Uploads API,不是 Orders 订单接口。订单见
linkfox-amazon-store-orders;批量 Feed 文件见linkfox-amazon-store-feeds。
官方参考
createUploadDestinationForResource · Create an upload destination
Prerequisites
- 依赖
linkfox-amazon-store-auth。 resource须与下游 API 文档一致(例如 A+:aplus/2020-11-01/contentDocuments;Messaging 为对应 messages 资源路径)。contentMD5为待上传文件内容的 Base64 MD5 摘要;传filePath/content时脚本可自动计算。
工作流
create_upload_destination_for_resource → uploadDestination { uploadDestinationId, url, headers }
upload_to_destination (PUT url + headers) → 在 A+/Messaging 等 API 中引用 uploadDestinationId
Scripts
| 脚本 | 说明 |
|---|---|
create_upload_destination_for_resource.py |
POST uploads/2020-11-01/uploadDestinations/{resource} |
upload_to_destination.py |
PUT 到返回的 url(带 headers) |
_spapi_uploads_common.py |
内部公共模块 |
示例
export LINKFOXAGENT_API_KEY="\x3Cyour-key>"
# 1) 创建上传目的地(自动根据 filePath 计算 contentMD5)
python scripts/create_upload_destination_for_resource.py '{
"sellerId":"A1...",
"region":"NA",
"resource":"aplus/2020-11-01/contentDocuments",
"marketplaceId":"ATVPDKIKX0DER",
"filePath":"/path/to/banner.jpg",
"contentType":"image/jpeg"
}'
# 2) 上传文件(将上一步 stdout 中的 uploadDestination 传入)
python scripts/upload_to_destination.py '{
"uploadDestination": { "url": "...", "headers": { } },
"filePath": "/path/to/banner.jpg"
}'
Display Rules
- 成功创建目的地常为 HTTP 201;先看
developerProxy,再看uploadDestination。 resource不要带前导/;path 中会对/做编码。- 网关需放行
uploads/2020-11-01/前缀。
Feedback: skillName:linkfox-amazon-store-uploads。
更多跨境 skill:LinkFox Skills
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install linkfox-amazon-store-uploads - After installation, invoke the skill by name or use
/linkfox-amazon-store-uploads - Provide required inputs per the skill's parameter spec and get structured output
What is Amazon Store Uploads?
亚马逊店铺文件上传(与 linkfox-amazon-store-auth 等同系列),经 /spApi/developerProxy 调用 Uploads API v2020-11-01 的 createUploadDestinationForResource,再向返回 URL 上传文件,供 A+ Conten... It is an AI Agent Skill for Claude Code / OpenClaw, with 39 downloads so far.
How do I install Amazon Store Uploads?
Run "/install linkfox-amazon-store-uploads" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Amazon Store Uploads free?
Yes, Amazon Store Uploads is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Amazon Store Uploads support?
Amazon Store Uploads is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Amazon Store Uploads?
It is built and maintained by linkfox-ai (@linkfox-ai); the current version is v0.0.1.