Closed Mike-the-one closed 6 months ago
@Mike-the-one From what I can tell everything looks the way it should. My only question is your request body not sure where you got the json for it but the path
"path":"[/orders/v0/orders]()",
Should really be:
"path":"/orders/v0/orders",
The only other thing that I can think of is that your credentials have changed.
This is a very old issue that is probably not getting as much attention as it deserves. We encourage you to check if this is still an issue after the latest release and if you find that this is still a problem, please feel free to open a new issue and make a reference to this one.
closed for inactivity
I am able to call
getOrder
API to get a list of orders but I am unable to get RDT because I need to access buyerInfo and shipping address.I have followed this sample code here:
https://github.com/amzn/selling-partner-api-models/blob/main/clients/sample-code/RestrictedDataTokenWorkflow.java
But I always get 403 error when I try to get the RDT. This is the code:
And this is the response header:
awsAuthenticationCredentials
,awsAuthenticationCredentialsProvider
andlwaAuthorizationCredentials
should be correct since I am able to call other endpoints (not restricted resources).The code was generated using the following command:
and config.json:
Here are the request header and body:
Request body:
And headers: (* are the values I replaced)
This is the response body (* are the values I replaced)
The
AppClient.java
is generated by swagger cli,AWSSigV4Signer.java
is from the latest one from repo https://github.com/amzn/selling-partner-api-modelsAWS dependency version
I am able to call SellersAPI.getMarketplaceParticipations() and OrdersAPI.getOrders(), both of these are GET commands, so no request body, I wondering if I miss something that the signer does not include the body to sign?
Thanks!