Replies: 2 comments 1 reply
-
|
Hello @ShamilS, For the A+ resource, the query parameters in the url returned in the operation createUploadDestinationForResource needs to be passed to the body as form-data, along with the binary content of the image that you want to submit. Example 👇Step1. create Upload Destination For ResourceRequestcurl --location --request POST 'https://sellingpartnerapi-na.amazon.com/uploads/2020-11-01/uploadDestinations/aplus/2020-11-01/contentDocuments?marketplaceIds=A2Q3Y263D00KWC&contentMD5=96vO9ELWZIzw7hkqXSerZw%3D%3D&contentType=image%2Fjpeg' \ --header 'Accept: application/json' \ --header 'x-amz-access-token: Atza|IwE...' Response{
"errors": [],
"payload": {
"uploadDestinationId": "aplus-media/sc/f3af8f70-ec5d-47fb-a118-c4d36654bd8c.jpg",
"url": "https://aplus-media.s3.amazonaws.com/?x-amz-date=20251003T113949Z&x-amz-signature={{signature}}&x-amz-meta-owner=A2ZPJ4TLUOSWY8&acl=private&key=sc/f3af8f70-ec5d-47fb-a118-c4d36654bd8c.jpg&x-amz-algorithm=AWS4-HMAC-SHA256&policy=eyJjb25kaXRpb25zIjpbeyJidWNrZXQiOiJhcGx1cy1tZWRpYSJ9LHsia2V5Ijoic2MvZjNhZjhmNzAtZWM1ZC00N2ZiLWExMTgtYzRkMzY2NTRiZDhjLmpwZyJ9LHsiYWNsIjoicHJpdmF0ZSJ9LHsieC1hbXotbWV0YS1vd25lciI6IkEyWlBKNFRMVU9TV1k4In0seyJ4LWFtei1hbGdvcml0aG0iOiJBV1M0LUhNQUMtU0hBMjU2In0seyJ4LWFtei1jcmVkZW50aWFsIjoiQUtJQTRSUzVaVlZMNlBUT1pSNVMvMjAyNTEwMDMvdXMtZWFzdC0xL3MzL2F3czRfcmVxdWVzdCJ9LHsieC1hbXotZGF0ZSI6IjIwMjUxMDAzVDExMzk0OVoifSxbImNvbnRlbnQtbGVuZ3RoLXJhbmdlIiwxLDMxNDU3MjhdXSwiZXhwaXJhdGlvbiI6IjIwMjUtMTAtMDNUMTQ6Mzk6NDkuMjg0WiJ9&x-amz-credential={{access-key}}/20251003/us-east-1/s3/aws4_request",
"headers": null
}
}
Step2. Upload imageRequestcurl --location 'https://aplus-media.s3.amazonaws.com/' \
--form 'x-amz-date="20251003T113949Z"' \
--form 'x-amz-signature="{{signature}}"' \
--form 'x-amz-meta-owner="A2ZPJ4TLUOSWY8"' \
--form 'acl="private"' \
--form 'key="sc/f3af8f70-ec5d-47fb-a118-c4d36654bd8c.jpg"' \
--form 'x-amz-algorithm="AWS4-HMAC-SHA256"' \
--form 'policy="eyJjb25kaXRpb25zIjpbeyJidWNrZXQiOiJhcGx1cy1tZWRpYSJ9LHsia2V5Ijoic2MvZjNhZjhmNzAtZWM1ZC00N2ZiLWExMTgtYzRkMzY2NTRiZDhjLmpwZyJ9LHsiYWNsIjoicHJpdmF0ZSJ9LHsieC1hbXotbWV0YS1vd25lciI6IkEyWlBKNFRMVU9TV1k4In0seyJ4LWFtei1hbGdvcml0aG0iOiJBV1M0LUhNQUMtU0hBMjU2In0seyJ4LWFtei1jcmVkZW50aWFsIjoiQUtJQTRSUzVaVlZMNlBUT1pSNVMvMjAyNTEwMDMvdXMtZWFzdC0xL3MzL2F3czRfcmVxdWVzdCJ9LHsieC1hbXotZGF0ZSI6IjIwMjUxMDAzVDExMzk0OVoifSxbImNvbnRlbnQtbGVuZ3RoLXJhbmdlIiwxLDMxNDU3MjhdXSwiZXhwaXJhdGlvbiI6IjIwMjUtMTAtMDNUMTQ6Mzk6NDkuMjg0WiJ9"' \
--form 'x-amz-credential="{{access-key}}/20251003/us-east-1/s3/aws4_request"' \
--form 'File=@"/Users/brunnomi/Downloads/E015GUGD2V6-U047AFVTK40-139769f30336-512.png"'
ResponseStatus 204 🟢 The response should return emptyKindly review the steps 3b and 3c of the guide on Create, edit, and publish A+ content. Thanks, |
Beta Was this translation helpful? Give feedback.
-
|
Hello @ShamilS, Thank you for clarifying the topic. Regarding using images uploaded in Uploads API, at a product/offer level, currently is not possible to do so. Files uploaded through Uploads API can only be used for A+ Content API and Messaging API. To submit images to products through Listing Items API, you need to first host the image in one of the following sources:
For more information, kindly revert to the following documentation pages: Thanks, |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using createUploadDestinationForResource SP API Uploads API call to get an upload destination for a listing image to be uploaded. It works, but when I'm using returned upload URL to upload an image I'm getting an error message: "Conflicting query string parameters: acl, policy".
FYI: the destination URL returned by createUploadDestinationForResource SP API Uploads API call has the following format:
where {policy} is happening to be a base64 encoded JSON:
with values of {meta-owner} and {access-key} being the same as the destination upload url's parameters.
What could be causing "Conflicting query string parameters: acl, policy" error message in the above context?
Beta Was this translation helpful? Give feedback.
All reactions