Skip to main content
POST
/
api
/
v4
/
main-account
/
codes
/
apply
Apply code
curl --request POST \
  --url https://whitebit.com/api/v4/main-account/codes/apply \
  --header 'Content-Type: application/json' \
  --header 'X-TXC-APIKEY: <api-key>' \
  --data '
{
  "code": "WBe11f4fce-2a53-4edc-b195-66b693bd77e3ETH",
  "passphrase": "some passphrase",
  "request": "{{request}}",
  "nonce": "{{nonce}}"
}
'
{
"message": "Code was successfully applied",
"ticker": "ETH",
"amount": "0.002",
"external_id": "be08a482-5faf-11ed-9b6a-0242ac120002"
}

Authorizations

X-TXC-APIKEY
string
header
required

API key authentication using signed requests

Body

application/json
code
string
required

Code that will be applied.

request
string
required

Request signature

nonce
string
required

Unique request identifier

passphrase
string

Passphrase that will be used if WhiteBIT codes was created with passphrase.

Maximum string length: 25

Response

All validations succeeded and creating transaction is started

message
string
ticker
string
amount
string
external_id
string