I am getting the following when sending a getOrders request to /orders/v0/orders via Postman after following instructions and examples provided at https://developer-docs.amazon.com/sp-api/docs/connecting-to-the-selling-partner-api and https://developer-docs.amazon.com/sp-api/docs/orders-api-v0-reference.
{
"errors": [
{
"message": "Access to requested resource is denied.",
"code": "Unauthorized",
"details": ""
}
]
}
We have registered a self-authorized app client in Draft status which has a user ARN IAM attached as described at https://developer-docs.amazon.com/sp-api/docs/registering-your-application.
I've checked the inline and role policies for the ARN IAM. They are exactly as described at https://developer-docs.amazon.com/sp-api/docs/creating-and-configuring-iam-policies-and-entities#step-4-create-an-iam-role.
We are able to successfully request an LWA access token following the docs at https://developer-docs.amazon.com/sp-api/docs/connecting-to-the-selling-partner-api#step-1-request-a-login-with-amazon-access-token.
Using the AWS Signature Version 4 process in Postman, we're able to send a request to /orders/v0/orders following the docs at https://developer-docs.amazon.com/sp-api/docs/orders-api-v0-reference. However, we get the Unauthorized response above.
It is somewhat unclear if the getOrders operation requires an RDT since it is listed here https://developer-docs.amazon.com/sp-api/docs/tokens-api-use-case-guide#restricted-operations. However, then at https://developer-docs.amazon.com/sp-api/docs/tokens-api-use-case-guide#step-1-get-an-order-id, it's explained that you need an order ID to get an RDT and to call getOrders for a list of order IDs, then get an RDT for a specific order ID and then use the RDT with a subsequent call such as getOrderItems. So, it seems to me that the initial getOrders call should/does not require an RDT.
Thus, it's not clear what else needs to be done to resolve the Unauthorized response from the getOrders operation.
Has anyone else solved this? We've opened several support cases with Amazon Developer Support only to have the cases closed with templated responses copied from the pages I've referenced above.