On-ramp (Buy) APIs
Pre order
Code
Request Body
| Field | Type | Mandatory | Remarks |
|---|---|---|---|
| externalOrderId | string | Yes | The unique order id from the partner side. Supports only letters and numbers. |
| fiatCurrency | string | No | Fiat currency. If you don't want to specify it or cannot specify it, you can leave it null and Binance Connect will automatically select/recommend a default fiat currency. |
| cryptoCurrency | string | No | Crypto currency. If you don't want to specify it or cannot specify it, you can leave it null and Binance Connect will automatically select/recommend a default crypto currency. (But for SEND_PRIMARY it's mandatory) |
| amountType | int | Yes | Specify whether the requested amount is in fiat:1 or crypto:2 |
| requestedAmount | string | No | Requested amount. Fraction is 8 |
| payMethodCode | string | No | The payment method code is from payment method list API. If you don't want to specify it or cannot specify it, you can leave it null and Binance Connect will automatically select/recommend a default payment method. |
| payMethodSubCode | string | No | The payment method subcode is from payment method list API. If you don't want to specify it or cannot specify it, you can leave it null and Binance Connect will automatically select/recommend a default payment method. |
| network | string | Yes | crypto network |
| address | string | Yes | wallet address |
| memo | string | No | If blockchain required |
| redirectUrl | string | No | The redirectUrl is for redirecting to your website if order is completed |
| failRedirectUrl | string | No | The redirectUrl is for redirecting to your website if order is failed |
| redirectDeepLink | string | No | The redirectDeepLink is for redirecting to your APP if order is completed |
| failRedirectDeepLink | string | No | The failRedirectDeepLink is for redirecting to your APP if order is failed |
| clientIp | string | No | The original client IP |
| clientType | string | No | The original client type: web/mobile |
| customization | object | No | Customization settings for the current order. Please refer to "Customization". |
| contractAddress | string | No | Crypto contract address. required if buying a token that is not listed on Binance spot |
| gtrTemplateCode | string | No | GTR (Global travel rule) template code. When users need to submit GTR questionnaire, this field can be used to specify the corresponding template answers for pre-filling the questionnaire form. |
| affiliateCode | string | No | The Binance referral code that you can use to earn revenue share from registered users. Note: this feature is disabled by default. Please contact us for more detail. |
Response Body
| Field | Type | Remarks |
|---|---|---|
| link | string | The landing page link of Binance Connect. For information on how to use it, please refer to "Landing page and redirection". |
| linkExpireTime | timestamp | The expiration time of link |
Example 1
Request Parameters:
Code
Response:
Code
Example 2
Request Parameters:
Code
Response:
Code
Example - lock crypto amount & NET_RECEIVE
Request Parameters:
Code
Response:
Code
Was this page helpful?
Last modified on