---
title: "Buy a Binance Code (TRADE)"
method: POST
path: "/sapi/v1/giftcard/buyCode"
tags: ["Gift Card"]
---

# Buy a Binance Code (TRADE)

`POST /sapi/v1/giftcard/buyCode`

This API is for buying a fixed-value Binance Code, which means your Binance Code will be redeemable to a token that is different to the token that you are paying in. If the token you’re paying and the redeemable token are the same, please use the Create Binance Code endpoint.
You can use supported crypto currency or fiat token as baseToken to buy Binance Code that is redeemable to your chosen faceToken.
Once successfully purchased, the amount of baseToken would be deducted from your funding wallet.

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

- `baseToken` string, required
- `faceToken` string, required
- `baseTokenAmount` 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

---

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