Open SepuWeb opened 1 year ago
@SepuWeb did you ever get this sorted?
no, in the end I switched to the official Amazon SDK.
This sucks. I'm having a similiar issue with calling createShippingLabels
on createShippingVendorDirectFulfillmentShippingV20211228Api
. Maybe something is broken with adding RDT's to requests? Are you registered as a Private Developer too?
I'd be nervous working on a PR too, as @jlevers doesn't seem to have looked at this repo in a few months.
correct, gentlemen.. I am having the same permissions issue trying to use RDT.
I can actually get it to at least successfully generate and return an RDT now, but what am I supposed to do with it? Just simply calling a RDT report straight afterwards doesn't seem to automagically send the correct access token (the RDT) as I was hoping, so I am lost.
Do I need to generate the RDT, then somehow tell the SDK to use it instead of normal access token? Do I simply pass it in the config array?
in /lib/Authentication.php, there is the getRestrictedDataToken method I call to successfully generate the RDT, and it appears to just pass it back, so I am stuck with how to use it after generating :(
in official docs, it says the RDT needs to be passed in the x-amz-access-token header, in place of the usual LWA token - ok, but using this library, how do we do that???
any suggestions or solutions would be greatly appreciated!
thanks Chris
Problem description:
Error:
errors": [ { "code": "Unauthorized", "message": "Access to requested resource is denied.", "details": "" } ] }
If I call VendorOrdersV1Api->getPurchaseOrders it works, so all security and rule and configuration are wright.
If I call these methods: CatalogItemsV20220401Api->getCatalogItem CatalogItemsV0Api->getCatalogItem VendorDirectFulfillmentOrdersV20211228Api->getOrders
return the error: { "code": "Unauthorized", "message": "Access to requested resource is denied.", "details": "" }
Code
Seller Central SP API config page screenshot
your screenshot here