I am following the use case guide for SP feeds.
I am able to create a document and upload XML to it without problems.
However I am unable to use the createFeed (POST /feeds/2021-06-30/feeds) endpoint. I am sending what should be a valid body, and I have proper header, but I am still getting 403. Any help what am I doing wrong or which permissions am I missing?
curl --location 'https://sellingpartnerapi-eu.amazon.com/feeds/2021-06-30/feeds' \
--header 'x-amz-access-token: (token which worked to create document)' \
--header 'Content-Type: application/json' \
--data '{
"feedType": "POST_ORDER_ACKNOWLEDGEMENT_DATA",
"marketplaceIds": [ "A1PA6795UKMFR9" ],
"inputFeedDocumentId": "{feed I got from createDocument}"
}'
And the error message I get is not super helpful:
{
code: 'Unauthorized',
message: 'Access to the resource is forbidden',
details: ''
}
Turns out I need BOTH "Inventory and Order Tracking" and "Direct-to-consumer delivery" roles.
The latter is a restricted role, so you gotta get an approval from Amazon.