---
title: "Create a Binance Code (USER_DATA)"
method: POST
path: "/sapi/v1/giftcard/createCode"
tags: ["Gift Card"]
---

# Create a Binance Code (USER_DATA)

`POST /sapi/v1/giftcard/createCode`

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

## Query parameters

- `token` string, required
- `amount` number, double, required
- `recvWindow` integer
- `timestamp` integer, required
- `signature` string, required

## Response `200`

Code creation

- object
  - `code` string, required
  - `message` string, required
  - `data` object, required
    - `referenceNo` string, required
    - `code` string, required
    - `expiredTime` integer, required
  - `success` boolean, required

## Other responses

- `400` — Bad Request
- `401` — Unauthorized Request

## Changes

- **2024-06-06** `6c02ecd56d37` — 1 info
  - added the required property `data/expiredTime` to the response with the `200` status
- **2022-03-04** `f1d8926e955a` — 1 breaking
  - the `query` request parameter `amount` became required
- **2022-02-17** `9f8e6c752c15` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/binance/apis/binance-public-spot-api/changes/sapi/v1/giftcard/createCode/post.md)

---

[API](https://skmtc.dev/binance/apis/binance-public-spot-api.md) · [All operations](https://skmtc.dev/binance/apis/binance-public-spot-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/binance/binance-public-spot-api/revisions/0dd2f133e12d/schema)
