Comments (7)
@Bowserlord It should work without any updates. If you pass in a restricted_data_token
from a createRestrictedDataToken
operation when using the getOrders
operation it automatically uses the RDT instead of the usual access token as x_amz_access_token
header value.
from amazon-sp-api.
Thanks for your answer. It worked perfectly fine.
I just wonder now, why operations like GetBuyerInfo and Geteligibleshippingservices are working without explicity passing a restricted_data_token.
from amazon-sp-api.
@Bowserlord That's strange, can't really confirm that. Just tried calling getOrderBuyerInfo
without specifying a RDT and received an InvalidInput
error.
from amazon-sp-api.
how to use restricted_data_token with createReport api for the reports that come under rdt types /
from amazon-sp-api.
@iamsr, according to the token use case guide you must pass the restricted_data_token
to the getReportDocument
operation. It should work like this:
let report_document = await sellingPartner.callAPI({
operation:'reports.getReportDocument',
path:{
reportDocumentId:'<REPORT_DOCUMENT_ID>'
},
restricted_data_token:'<RESTRICTED_DATA_TOKEN>'
});
from amazon-sp-api.
@amz-tools but the first of report is createReport and there I am receiving the access denied error only on those reportytype which are mentioned under RDT.
from amazon-sp-api.
@iamsr That's strange, which reports endpoints version did you use? 2020-09-04
or 2021-06-30
?
from amazon-sp-api.
Related Issues (20)
- TS exception HOT 1
- missing productPricing.getCompetitiveSummary from 2022-05-01 version HOT 4
- How can I best get the requestID and timestamp for SP-API support? HOT 1
- getFeed
- Add ability to add error handling middleware HOT 1
- Gracefully handle timeouts HOT 4
- [Bug]`orders.confirmShipment` error on parsing body response
- QueryType = "NEXT_TOKEN" perhaps not being sent to getShipmentItemsByShipmentId?
- Missing timeouts property in DownloadOptions interface HOT 1
- Need order info, tracking number and invoice data
- Is there a way to tell if a seller owns an ASIN or if the seller is a reseller?
- Credentials variables HOT 2
- Incorrect Header Check error downloading file HOT 1
- createFeed with POST_PRODUCT_DATA
- How to get raw request for SP API Developer Support? HOT 2
- Create Offer: Not Update Price, Quantity, and Merchant Shipping Group
- Authorization API v1 Deprecation
- Saving GET_LEDGER_SUMMARY_VIEW_DATA report into database
- Seller Flex Return Report
- new inbound endpoint HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from amazon-sp-api.