Coder Social home page Coder Social logo

Update Order-API about amazon-sp-api HOT 7 OPEN

amz-tools avatar amz-tools commented on July 21, 2024
Update Order-API

from amazon-sp-api.

Comments (7)

amz-tools avatar amz-tools commented on July 21, 2024

@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.

Bowserlord avatar Bowserlord commented on July 21, 2024

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.

amz-tools avatar amz-tools commented on July 21, 2024

@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.

iamsr avatar iamsr commented on July 21, 2024

how to use restricted_data_token with createReport api for the reports that come under rdt types /

from amazon-sp-api.

amz-tools avatar amz-tools commented on July 21, 2024

@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.

iamsr avatar iamsr commented on July 21, 2024

@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.

amz-tools avatar amz-tools commented on July 21, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.