WITHDRAWALS Endpoints

Create a new crypto withdrawal

post
Authorizations
Body
currencystring · enumRequired

The currency of funds to be withdrawn

Possible values:
addressstringRequired

The withdrawal destination address

Example: bc1q42lja79elem0anu8q8s3h2n687re9jax556pcc
amountnumberRequired

The amount of funds to be withdrawn

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
200

Success

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: 126

"currency='BTC'&address='bc1q42lja79elem0anu8q8s3h2n687re9jax556pcc'&amount=1&amountType='gross'&referenceId='text'"
{
  "transactionId": "3de41215-a8c6-41bf-aac3-90f825a3f666"
}

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

post
Authorizations
Body
currencystring · enumRequired

The currency of funds to be withdrawn

Possible values:
exchangeFromstring · enumRequired

The FIAT/stablecoin currency name to exchange crypto from

Possible values:
addressstringRequired

The withdrawal destination address

Example: bc1q42lja79elem0anu8q8s3h2n687re9jax556pcc
amountnumberRequired

The amount of funds to be withdrawn

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)

Example: grossPossible values:
referenceIdstringOptional

The external identifier of the withdrawal

Responses
200

Success

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: 147

"currency='BTC'&exchangeFrom='EUR'&address='bc1q42lja79elem0anu8q8s3h2n687re9jax556pcc'&amount=1&amountType='gross'&referenceId='text'"
{
  "transactionId": "9107587a-8b87-4fc9-8a49-37cc868ce94a"
}

Create a new fiat manual withdrawal

post
Authorizations
Body
currencystring · enumRequired

The currency of funds to be withdrawn

Possible values:
ibanTostringRequired

The withdrawal destination address

Example: LT663080020000000366
amountnumberRequired

The amount of funds to be withdrawn

Responses
200

Success

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

"currency='EUR'&ibanTo='LT663080020000000366'&amount=1"
{
  "id": "d45d287f-d5be-469e-bdba-27e9db0e008a",
  "status": "new"
}

Last updated