API Gift Card Endpoints

Methods

giftCardCreateCode(token, amount, optionsopt)

Create a Binance Code (USER_DATA)

POST /sapi/v1/giftcard/createCode

https://binance-docs.github.io/apidocs/spot/en/#create-a-binance-code-user_data

Parameters:
NameTypeAttributesDescription
tokenstring

The coin type contained in the Binance Code

amountnumber

The amount of the coin

optionsobject<optional>
Properties
NameTypeAttributesDescription
recvWindownumber<optional>

The value cannot be greater than 60000

giftCardRedeemCode(code, optionsopt)

Redeem a Binance Code (USER_DATA)

POST /sapi/v1/giftcard/redeemCode

https://binance-docs.github.io/apidocs/spot/en/#redeem-a-binance-code-user_data

Parameters:
NameTypeAttributesDescription
codestring

Binance Code

optionsobject<optional>
Properties
NameTypeAttributesDescription
externalUidstring<optional>

Each 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 codes on your platform. To protect user data privacy, you may choose to transfer the user id in any desired format (max. 400 characters).

recvWindownumber<optional>

The value cannot be greater than 60000

giftCardRsaPublicKey(optionsopt)

Fetch RSA Public Key (USER_DATA)

GET /sapi/v1/giftcard/cryptography/rsa-public-key

https://binance-docs.github.io/apidocs/spot/en/#fetch-rsa-public-key-user_data

Parameters:
NameTypeAttributesDescription
optionsobject<optional>
Properties
NameTypeAttributesDescription
recvWindownumber<optional>

The value cannot be greater than 60000

giftCardVerifyCode(referenceNo, optionsopt)

Verify a Binance Code (USER_DATA)

GET /sapi/v1/giftcard/verify

https://binance-docs.github.io/apidocs/spot/en/#verify-a-binance-code-user_data

Parameters:
NameTypeAttributesDescription
referenceNostring

reference number

optionsobject<optional>
Properties
NameTypeAttributesDescription
recvWindownumber<optional>

The value cannot be greater than 60000