Get Rate
Before initiating any exchange, you must first fetch a rate offer. The_id from the response is required as the offerId parameter when creating an exchange.
Endpoint: GET /utility/exchange-rate
Response Overview
Key Response Fields
Working with acceptedPaymentMethod
acceptedPaymentMethod is an array of payment methods the user can use to send funds for this currency pair. The value you pass as buyerDebitPaymentMethod when creating an exchange must be one of the methods listed here. Passing any other value will result in a validation error.
Special case: STABLE_CURRENCY
When acceptedPaymentMethod includes STABLE_CURRENCY, the paymentDetails array will contain one object per supported network (e.g. TRC20, ERC20, TON). Each object includes a walletAddress and a network field.
You must present these network options to the user and pass the selected network as part of buyerDebitPaymentDetails when creating the exchange.
Working with payoutPaymentMethod
payoutPaymentMethod is an array of payment methods the user can use to receive funds. The value you pass as buyerCreditPaymentMethod when creating an exchange must be one of the methods listed here. Passing any other value will result in a validation error.
Special case: MOBILE_MONEY
When payoutPaymentMethod includes MOBILE_MONEY, the response will also contain an allowedMomoProviders array. If the user selects MOBILE_MONEY as their payout method, they must also select one of the providers from this array and pass it as part of buyerCreditPaymentDetails.
Summary
Once you have the
_id and have identified the payment methods for your exchange, proceed to create an exchange.
