Coder Social home page Coder Social logo

Comments (2)

bjguillot avatar bjguillot commented on August 16, 2024

If you know the Order Reference ID (P0n-nnn-nnn or S0n-nnn-nnn for Sandbox) You can obtain the parent Billing Agreement ID via the GetOrderReferenceDetails API call.

An example response might look like:

  <GetOrderReferenceDetailsResult>
    <OrderReferenceDetails>
      <OrderReferenceStatus>
        <LastUpdateTimestamp>2018-05-28T13:58:46.278Z</LastUpdateTimestamp>
        <State>Canceled</State>
        <ReasonCode>SellerCanceled</ReasonCode>
      </OrderReferenceStatus>
      <Destination>
        <DestinationType>Physical</DestinationType>
        <PhysicalDestination>*** Removed ***</PhysicalDestination>
      </Destination>
      <ExpirationTimestamp>2018-11-24T13:58:45.469Z</ExpirationTimestamp>
      <IdList/>
      <ParentDetails>
        <Type>BillingAgreement</Type>
        <Id>C01-4828023-1699072</Id>
      </ParentDetails>
      <SellerOrderAttributes>
        <StoreName>My Store Name</StoreName>
        <CustomInformation>My Custom Information</CustomInformation>
        <SellerOrderId>MySellerBillingAgreementID</SellerOrderId>
      </SellerOrderAttributes>
      <OrderTotal>
        <CurrencyCode>USD</CurrencyCode>
        <Amount>0.01</Amount>
      </OrderTotal>
      <Buyer>*** Removed ***</Buyer>
      <ReleaseEnvironment>Sandbox</ReleaseEnvironment>
      <SellerNote>*** Removed ***</SellerNote>
      <AmazonOrderReferenceId>S01-4434296-8525019</AmazonOrderReferenceId>
      <CreationTimestamp>2018-05-28T13:58:45.469Z</CreationTimestamp>
      <RequestPaymentAuthorization>false</RequestPaymentAuthorization>
    </OrderReferenceDetails>
  </GetOrderReferenceDetailsResult>

Note the "ParentDetails" node, particularly that C01-4828023-1699072 ID in the example above. That would be the Billing Agreement ID (uses C0n-nnn-nnn in Sandbox versus B0n-nnn-nnn in Production).

Since you posted here, I assume you are a developer and are able to write code to make the GetOrderReferenceDetails API call using one of our SDKs, but if you are not a developer, you can make the same API call using the MWS Scratchpad here without doing any programming:
https://mws.amazonservices.com/scratchpad/index.html

  • For API Section, select "Off-Amazon Payments"
  • For Operation, select "GetOrderReferenceDetails"
  • Enter your Seller ID, Access Key ID, and Secret Access Key from the Seller Central -> Integration -> MWS Access Key screen. (Leave the MWS Auth Token and Address Consent Token fields blank.)
  • Put the P0n-nnn-nnn value in the Amazon Order Reference ID field, then hit "Submit".

As you noticed, there is currently no mechanism in the Seller Central web interface to obtain the parent the Billing Agreement ID. I'll pass your suggestion along to the team.

from amazon-pay-sdk-samples.

djone010 avatar djone010 commented on August 16, 2024

Thanks that is what I was looking for! Yes, it would be nice to have a mechanism in seller central or for a support agent to be able to look up the information.

from amazon-pay-sdk-samples.

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.