Preview fees and initiate a transaction
Learn how to preview fees and initiate transactions
Learn how to preview the potential fees for a transaction based on the source and destination currencies and initiate a transaction.
Prerequisites
To complete this tutorial, you must have:
- Authorization from the selling partner for whom you are making calls. Refer to the Authorizing Selling Partner API applications for more information.
- The Account Information Service Provider role assigned to your developer profile and selected in the App Registration page for your application.
- The Payment Initiation Service Provider role assigned to your developer profile and selected in the App Registration page for your application.
Step 1. Retrieve a list of potential fees applied to a transaction
Call the getTransferPreview
operation with the source and destination currency codes, the source and destination country codes, and an amount for the transaction.
Step 2. Retrieve a list of Seller Wallet accounts
Call the listAccounts
operation and locate the accountId
value of the account for which you want to create a transaction request. You use the accountId
value in the next step.
Step 3. Create a transaction request
Call the createTransaction
operation to create a transaction request from a Seller Wallet account to another customer-provided account. Supply the accountId
from the previous step as the sourceAccountId
in the body of the request.
Caution
The
bankAccountNumber
value in the body of the request is encrypted before Amazon receives it, so should not be used to generatedestAccountDigitalSignature
, and should not be included in the request signature.
Updated 10 days ago