Comments (2)
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.
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)
- Remove all unnecessary JavaScript and use PHP instead of it HOT 3
- CSharp example has issue HOT 1
- login window not appearing in popup (despite being set to true) HOT 4
- Python: incorrect `redirect_url`? HOT 1
- Java: Missing closing curly brace in OneTimePayments/Widgets.js, line 132 HOT 1
- C# Sample doesn't show live responses HOT 1
- Button and other widgets for React HOT 3
- Login with Amazon callback/event if popup is closed HOT 4
- Wallet Widget error: InvalidOrderReferenceId - The OrderReferenceID is invalid. HOT 1
- Amazon Pay Strong Customer Authentication (SCA) Upgrade HOT 9
- Update Fork Link
- Can not callback when clicked the consent widgets ( throw error 400 bad request ) in PHP example recurring payment HOT 8
- devlop code in android
- The Wallet widget should use the Address Book's order reference Id HOT 2
- Amazon Pay Strong Customer Authentication (SCA) example code for PHP
- Python -recurring payment - Access to OffAmazonPayments_Sandbox.ConfirmBillingAgreement is denied
- Recurring payment frequency
- Seller Details not provided HOT 3
- Error handling code 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-pay-sdk-samples.