v26

latestOpenAPI 3.0.2raw.githubusercontent.com2024-10-0834042975.6 KB
Gift Card

Create a Binance Code (USER_DATA)

This API is for creating a Binance Code. To get started with, please make sure:

  • You have a Binance account
  • You have passed kyc
  • You have a sufficient balance in your Binance funding wallet
  • You need Enable Withdrawals for the API Key which requests this endpoint.

Daily creation volume: 2 BTC / 24H Daily creation times: 200 Codes / 24H

Weight(IP): 1

post/sapi/v1/giftcard/createCode

Query parameters

tokenstring required

The coin type contained in the Binance Code

amountnumber double required

The amount of the coin

recvWindowinteger
Example:5000

The value cannot be greater than 60000

timestampinteger required

UTC timestamp in ms

signaturestring required

Signature

Response

Code creation

codestring required
messagestring required
successboolean required

Example response

{
  "code": "000000",
  "message": "success",
  "data": {
    "referenceNo": "0033002327977405",
    "code": "AOGANK3NB4GIT3C6",
    "expiredTime": 1727417154000
  }
}