Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

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.

Every response on this page is a sandbox capture — that is why the crypto leg carries a depositSandboxForcedFlow field and why the contract address is not the production one.

1

Call Get available currencies

POLYGON_USDT allows deposits, and its pairs includes merchant_balance. So crypto → merchant balance USD is legal.

2

Call Get order limits

  • depositPaymentChannel: "crypto"

  • depositCurrencyType: "crypto"

  • depositCurrencyCode: "POLYGON_USDT"

  • payoutPaymentChannel: "merchant_balance"

  • payoutCurrencyType: "merchant_balance"

  • payoutCurrencyCode: "USD"

Example response
{
    "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.

3

Call Create quote

Example request
{
  "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.

Sandbox tip: set depositSandboxForcedFlow to force a successful or an invalid deposit and exercise your error paths without moving real funds. Take the values from the field's own options array — each offer and each side publishes its own list, and the merchant-balance leg publishes none.

4

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.

5

The user sends the crypto

6

Call Confirm order with the transaction hash

{
  "orderId": "69c545ea57cb634f272a57f2",
  "fieldsToConfirmOrder": {
    "blockchainTransactionHash": "0xe168c39bf7165c0eaa88e4df1e21e987666e44f11f2bea6f9be1c145f382dade"
  }
}
7

We confirm the transaction on-chain and credit your balance

8

Wait for "payout_successful"

Then Get merchant balances shows the new total.

Last updated