Crypto to Merchant balance
A POLYGON_USDT (crypto) deposit crediting your USD merchant balance. Use this when a user pays you in crypto and you want to hold the value in USD rather than pass it on.
Call Get available currencies
POLYGON_USDT allows deposits, and its pairs includes merchant_balance. So crypto → merchant balance USD is legal.
Call Get order limits
depositPaymentChannel: "crypto"
depositCurrencyType: "crypto"
depositCurrencyCode: "POLYGON_USDT"
payoutPaymentChannel: "merchant_balance"
payoutCurrencyType: "merchant_balance"
payoutCurrencyCode: "USD"
{
"deposit": {
"min": 1,
"max": 500,
"minUsd": 1,
"maxUsd": 500,
"supportsDecimals": true,
"step": 0.000001
},
"payout": {
"min": 1,
"max": 500,
"minUsd": 1,
"maxUsd": 500,
"supportsDecimals": true,
"step": 0.01
}
}The user can send 1 to 500 POLYGON_USDT, crediting 1 to 500 USD. Note the different step on each leg: six decimals on the crypto side, cents on the balance side.
We want 100 USD credited. Check the user's tier with the KYC flow first — pass the amounts so the answer covers this order. A crypto deposit is governed by the country's off-ramp KYC switch, which is on in South Africa only today; read offrampKycRequired rather than assuming. See KYC.
Call Create quote
{
"deposit": {
"paymentChannel": "crypto",
"currencyType": "crypto",
"currencyCode": "POLYGON_USDT"
},
"payout": {
"paymentChannel": "merchant_balance",
"currencyType": "merchant_balance",
"currencyCode": "USD",
"amount": 100
}
}For you to receive 100 USD the user sends 100 POLYGON_USDT — the rate is 1:1 and no fees are charged on either leg here.
Nothing on this quote is required: true. The merchant-balance leg asks for nothing at all: it is your own balance, so there is no destination to collect. blockchainWalletAddress on the deposit leg is optional; send it if you know it and the user sees it echoed back as senderWalletAddress.
Call Create order
The amount stays on the same leg you quoted — the payout, here.
The user must send exactly 100 USDT on Polygon to 0xdc9cbad0c43f912a66cd44cd22a15c04368e659f. fieldsToConfirmOrder asks for blockchainTransactionHash, so you will need it in the next step.
Call Confirm order with the transaction hash
{
"orderId": "69c545ea57cb634f272a57f2",
"fieldsToConfirmOrder": {
"blockchainTransactionHash": "0xe168c39bf7165c0eaa88e4df1e21e987666e44f11f2bea6f9be1c145f382dade"
}
}Wait for "payout_successful"
Then Get merchant balances shows the new total.
Last updated

