v1

latestOpenAPI 3.0.32026-07-2613529376.3 KB
Codes

Apply code

The endpoint applies WhiteBIT code.

<Warning> Rate limit: 60 requests/1 sec. </Warning> <Note> The API does not cache the response. </Note> <Note> To avoid leaking whether a code exists, most failure modes — invalid format, expired, non-existent, or wrong passphrase — collapse to one generic rejection on field `code`. Only two cases are distinguishable at the API surface: a code that has already been applied, and a code created by the same account. </Note>
post/api/v4/main-account/codes/apply

Request body

codestring required

Code that will be applied.

passphrasestring

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

requeststring required

Request signature

nonceinteger required

Unique request identifier

Example request

{
  "code": "WBe11f4fce-2a53-4edc-b195-66b693bd77e3ETH",
  "passphrase": "some passphrase",
  "request": "{{request}}",
  "nonce": 1594297865000
}

Response

All validations succeeded and creating transaction is started

messagestring
tickerstring
amountstring
external_idstring
All 135 operations