HTTP API

Withdrawal

[POST] Create request for automated withdrawal

This request should be executed to initiate automated withdrawal request.

/private-api/{slug}/withdrawal

{slug} – unique instance name defined for the company.

Parameters

NameTypeRequiredDescription
amountstringY amount to withdraw
currencystringN currency for withdraw
walletstringY card number (for fiat currency) or wallet address (for cryptocurrency)
networkstringY, in case if balance is stored in crypto currency cryptocurrency network
memostringY, in case if currencies network requires memo memo tag
external_idstringN external id for withdrawal operation
commentstringN description for withdrawal operation

Request Payload

{
   "amount":"100",
   "currency":"USDT",
   "wallet":"djfhku2h345h43l63jh423j4v2",
   "network":"TRC20",
   "external_id":"123456",
   "comment":"comment for withdrawal"
}

Response Payload

{
  "request_id":"123",
  "transactions":[
    {
      "id":"123",
      "currency":{
        "id":"123",
        "ticker":"USDT",
        "is_fiat":true,
        "is_used_for_order_exchange":true,
        "icon":"https://icon.svg",
        "precision":2,
        "title":"Tether US"
      },
      "value":"77",
      "status":"PENDING_WITHDRAWAL",
      "type":"CRYPTO_WALLET",
      "network":null,
      "fee":"1",
      "created_at":"2022-11-18 14:27:36",
      "completed_at":null
    }
  ]
}

Check out Transaction entity reference for detailed description.

[POST] Create request for IBAN withdrawal

This request should be executed to initiate funds withdrawal to IBAN.

/private-api/withdrawal-iban

Parameters

AttributeTypeRequiredDescription
amountnumberY amount to withdraw
messagestringY data on bank account (IBAN, address etc)
exchange_currencystringY/N currency of exchange after withdrawal. Required in case if main balance is in crypto.
external_idstringN external id for withdrawal operation
commentstringN description for withdrawal operation

Request Payload

{
  "amount":"200",
  "message":"IBAN address",
  "exchange_currency":"EUR",
  "external_id":"1234external123",
  "comment":"comment"
}

Response Payload

{
  "request_id": "baa8c39a-2c95-4967-8437-7920513041a1"
}
Previous
Balance