Create a dual-token gift card (fixed value, discount feature)
-
This API is for creating a dual-token ( stablecoin-denominated) Binance Gift Card. You may create a gift card using USDT as baseToken, that is redeemable to another designated token (faceToken). For example, you can create a fixed-value BTC gift card and pay with 100 USDT plus minting fee. This gift card can keep the value fixed at 100 USDT before redemption, and will be redeemable to BTC equivalent to 100 USDT upon redemption.
-
Once successfully created, the amount of baseToken (e.g. USDT) in the fixed-value gift card along with the fee would be deducted from your funding wallet.
- To get started with, please make sure:
- You have a Binance account
- You have passed KYB
- You have a sufficient balance(Gift Card amount and fee amount) in your Binance funding wallet
- You need Enable Withdrawals for the API Key which requests this endpoint.
Create a dual-token gift card (fixed value, discount feature) › Authorization
Create a dual-token gift card (fixed value, discount feature) › Request Weight
This endpoint consumes IP-based request weight. Heavier endpoints consume more of your IP rate limit capacity.
Learn more in the Rate limits section.
Headers
X-MBX-APIKEYAn API Key is required to access this endpoint and must be included in the request headers. To create an API Key, refer to: https://www.binance.com/en/support/faq/detail/360002502072.
Create a dual-token gift card (fixed value, discount feature) › Request Body
baseTokenThe token you want to pay, example: BUSD
faceTokenThe token you want to buy, example: BNB. If faceToken = baseToken, it's the same as createCode endpoint.
baseTokenAmountThe base token asset quantity, example : 1.002
timestampUnix timestamp in milliseconds used to sign the request. The value must reflect the current client time and is validated by the server for signed endpoints.
recvWindowCreate a dual-token gift card (fixed value, discount feature) › Responses
Create a dual-token gift card
codemessagesuccessCreate a single-token gift card
This API is for creating a Binance Gift Card.
To get started with, please make sure:
- You have a Binance account
- You have passed KYB
- You have a sufficient balance(Gift Card amount and fee amount) in your Binance funding wallet
- You need
Enable Withdrawalsfor the API Key which requests this endpoint.
Create a single-token gift card › Authorization
Create a single-token gift card › Request Weight
This endpoint consumes IP-based request weight. Heavier endpoints consume more of your IP rate limit capacity.
Learn more in the Rate limits section.
Headers
X-MBX-APIKEYAn API Key is required to access this endpoint and must be included in the request headers. To create an API Key, refer to: https://www.binance.com/en/support/faq/detail/360002502072.
Create a single-token gift card › Request Body
tokenThe token type contained in the Binance Gift Card
amountThe amount of the token contained in the Binance Gift Card
timestampUnix timestamp in milliseconds used to sign the request. The value must reflect the current client time and is validated by the server for signed endpoints.
recvWindowCreate a single-token gift card › Responses
Create a single-token gift card
codemessagesuccessFetch RSA Public Key
This API is for fetching the RSA Public Key. This RSA Public key will be used to encrypt the card code.
Please note that the RSA Public key fetched is valid only for the current day.
Fetch RSA Public Key › Authorization
Fetch RSA Public Key › Request Weight
This endpoint consumes IP-based request weight. Heavier endpoints consume more of your IP rate limit capacity.
Learn more in the Rate limits section.
Headers
X-MBX-APIKEYAn API Key is required to access this endpoint and must be included in the request headers. To create an API Key, refer to: https://www.binance.com/en/support/faq/detail/360002502072.
Query Parameters
timestampUnix timestamp in milliseconds used to sign the request. The value must reflect the current client time and is validated by the server for signed endpoints.
recvWindowFetch RSA Public Key › Responses
Fetch RSA Public Key
codemessagedatasuccessFetch Token Limit
This API is to help you verify which tokens are available for you to create Stablecoin-Denominated gift cards as mentioned in section 2 and its’ limitation.
Fetch Token Limit › Authorization
Fetch Token Limit › Request Weight
This endpoint consumes IP-based request weight. Heavier endpoints consume more of your IP rate limit capacity.
Learn more in the Rate limits section.
Headers
X-MBX-APIKEYAn API Key is required to access this endpoint and must be included in the request headers. To create an API Key, refer to: https://www.binance.com/en/support/faq/detail/360002502072.
Query Parameters
baseTokenThe token you want to pay, example: BUSD
timestampUnix timestamp in milliseconds used to sign the request. The value must reflect the current client time and is validated by the server for signed endpoints.
recvWindowFetch Token Limit › Responses
Fetch Token Limit
codemessagesuccessRedeem a Binance Gift Card
This API is for redeeming a Binance Gift Card. Once redeemed, the coins will be deposited in your funding wallet.
Redeem a Binance Gift Card › Authorization
Redeem a Binance Gift Card › Request Weight
This endpoint consumes IP-based request weight. Heavier endpoints consume more of your IP rate limit capacity.
Learn more in the Rate limits section.
Headers
X-MBX-APIKEYAn API Key is required to access this endpoint and must be included in the request headers. To create an API Key, refer to: https://www.binance.com/en/support/faq/detail/360002502072.
Redeem a Binance Gift Card › Request Body
codeRedemption code of Binance Gift Card to be redeemed, supports both Plaintext & Encrypted code.
timestampUnix timestamp in milliseconds used to sign the request. The value must reflect the current client time and is validated by the server for signed endpoints.
externalUidEach external unique ID represents a unique user on the partner platform. The function helps you to identify the redemption behavior of different users, such as redemption frequency and amount. It also helps risk and limit control of a single account, such as daily limit on redemption volume, frequency, and incorrect number of entries. This will also prevent a single user account reach the partner's daily redemption limits. We strongly recommend you to use this feature and transfer us the User ID of your users if you have different users redeeming Binance Gift Cards on your platform. To protect user data privacy, you may choose to transfer the user id in any desired format (max. 400 characters).
recvWindowRedeem a Binance Gift Card › Responses
Redeem a Binance Gift Card
codemessagesuccessVerify Binance Gift Card by Gift Card Number
This API is for verifying whether the Binance Gift Card is valid or not by entering Gift Card Number.
Please note that if you enter the wrong Gift Card Number 5 times within an hour, you will no longer be able to verify any Gift Card Number for that hour.
Verify Binance Gift Card by Gift Card Number › Authorization
Verify Binance Gift Card by Gift Card Number › Request Weight
This endpoint consumes IP-based request weight. Heavier endpoints consume more of your IP rate limit capacity.
Learn more in the Rate limits section.
Headers
X-MBX-APIKEYAn API Key is required to access this endpoint and must be included in the request headers. To create an API Key, refer to: https://www.binance.com/en/support/faq/detail/360002502072.
Query Parameters
referenceNoEnter the Gift Card Number
timestampUnix timestamp in milliseconds used to sign the request. The value must reflect the current client time and is validated by the server for signed endpoints.
recvWindowVerify Binance Gift Card by Gift Card Number › Responses
Verify Binance Gift Card by Gift Card Number
codemessagesuccess