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.

Example:

"WBe11f4fce-2a53-4edc-b195-66b693bd77e3ETH"

request
string
required

Request signature

Example:

"{{request}}"

nonce
string
required

Unique request identifier

Example:

"{{nonce}}"

passphrase
string

Should be provided if the code was created with passphrase. Max: 25 symbols.

Maximum string length: 25
Example:

"some passphrase"

Response

All validations succeeded and creating transaction is started

message
string
ticker
string
amount
string
external_id
string