How do I upload a PDF invoice to Amazon using SP-API in Postman?
(In MWS the feed was known as UPLOAD_VAT_INVOICE)
I found the following document for the topic at hand:
Unfortunately the most important step, the upload itself, is just listed as:
“2. Upload your feed document contents to the URL from the previous step.”
I got the “feedDocumentId” and the “url” from the first step, but I have no idea how to actually upload the PDF invoice with this information.
I created a POST request with the “url” I got from step 1.
Autorization (AWS Signature) is set with AccessKey, SecretKey, Session Token, AWS Region (eu-west-1) and Service Name (“s3” instead of “execute-api”).
Headers contains “Content-Type” as “text/plain” (I aslo tried “application/pdf”).
In the body I tried the following combinations:
“file” and then added the PDF file
Added base64 encoded PDF file as string
Added the PDF file
It doesn’t matter what configuration I choose, the answer alsways contains:
<Error> <Code>SignatureDoesNotMatch</Code> <Message>The request signature we calculated does not match the signature you provided. Check your key and signing method.</Message>
I have contacted Amazon Support about this, but they are not helpful at all, they just point me back to the above mentioned documentation.
I have also searched endlessly around to find anyone with the same or a similar problem, but so far nothing I found fits or was even remotely helpful.
Can someone please help me to figure out how I am able to successfully upload a PDF invoice to Amazon using SP-API in Postman?
The developer profile is approved for ALL roles including ALL restricted roles, so this shouldn’t be a problem.