WITHDRAWALS Endpoints

Create a new crypto withdrawal

post
Authorizations
Body
addressstringRequired

The withdrawal destination address

Example: bc1q42lja79elem0anu8q8s3h2n687re9jax556pcc
currencystring · enumRequired

The currency of funds to be withdrawn

Possible values:
amountfloatRequired

The amount of funds to be withdrawn

Example: 0.001
amountTypestring · enumRequired

Allows to specify if amount value represents actual 'gross' amount (before service fee deductions) or 'net' amount (after service fee deductions and what actually recipient will recieve)

Example: grossPossible values:
referenceIdstringOptional

The external identifier of the withdrawal

Responses
200Success
application/json
post
POST /withdrawals HTTP/1.1
Host: tunell-gateway.ecng.digital
X-API-KEY: YOUR_API_KEY
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 132

"address='bc1q42lja79elem0anu8q8s3h2n687re9jax556pcc'&currency='BTC'&amount='0.001'&amountType='gross'&referenceId='text'"
{
  "transactionId": "00000000-0000-0000-0000-000000000000"
}

Create a new crypto withdrawal with auto-exchange from fiat or another crypto

post
Authorizations
Body
addressstringRequired

The withdrawal destination address

Example: bc1q42lja79elem0anu8q8s3h2n687re9jax556pcc
currencystring · enumRequired

The currency of funds to be withdrawn

Possible values:
amountfloatRequired

The amount of funds to be withdrawn

Example: 0.001
amountTypestring · enumRequired

Allows to specify if amount value represents actual 'gross' amount (a FIAT/stablecoin amount before service fee deductions), 'net' amount (a crypto amount after service fee deductions and what actually recipient will recieve) or 'purchase' amount (a crypto amount to be purchased)

Possible values:
exchangeFromstring · enumRequired

The FIAT/stablecoin currency name to exchange crypto from

Possible values:
referenceIdstringOptional

The external identifier of the withdrawal

Responses
200Success
application/json
post
POST /outgoings HTTP/1.1
Host: tunell-gateway.ecng.digital
X-API-KEY: YOUR_API_KEY
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 153

"address='bc1q42lja79elem0anu8q8s3h2n687re9jax556pcc'&currency='BTC'&amount='0.001'&amountType='gross'&exchangeFrom='EUR'&referenceId='text'"
{
  "transactionId": "00000000-0000-0000-0000-000000000000"
}

Last updated