Skip to main content
POST
/
exchanges
/
{exchangeId}
/
accounts
/
{accountId}
/
withdrawals
Create Exchange Withdrawal
curl --request POST \
  --url https://api.dfns.io/exchanges/{exchangeId}/accounts/{accountId}/withdrawals \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'X-DFNS-USERACTION: <api-key>' \
  --data '{
  "kind": "Native",
  "amount": "<string>",
  "priority": "Slow",
  "createDestinationAccount": true,
  "offer": true,
  "expiresAt": "2023-11-07T05:31:56Z",
  "externalId": "<string>",
  "travelRule": {
    "kind": "Notabene",
    "beneficiaryVASPdid": "<string>",
    "beneficiaryProof": {},
    "originator": {},
    "beneficiary": {}
  },
  "feeSponsorId": "<string>",
  "walletId": "<string>",
  "otp": "<string>"
}'
{
  "id": "<string>",
  "exchangeId": "<string>",
  "accountId": "<string>",
  "transferId": "<string>",
  "exchangeReference": "<string>",
  "kind": "Withdrawal",
  "walletId": "<string>",
  "requester": {
    "userId": "<string>",
    "tokenId": "<string>"
  },
  "requestBody": {
    "kind": "Native",
    "amount": "<string>",
    "priority": "Slow",
    "createDestinationAccount": true,
    "offer": true,
    "expiresAt": "2023-11-07T05:31:56Z",
    "externalId": "<string>",
    "travelRule": {
      "kind": "Notabene",
      "beneficiaryVASPdid": "<string>",
      "beneficiaryProof": {},
      "originator": {},
      "beneficiary": {}
    },
    "feeSponsorId": "<string>",
    "walletId": "<string>",
    "otp": "<string>"
  },
  "dateCreated": "<string>"
}

Authentication

✅ Organization User (CustomerEmployee)
❌ Delegated User (EndUser)
✅ Service Account

Required Permissions

Exchanges:Withdrawals:Create: Always required.

Authorizations

Authorization
string
header
required
X-DFNS-USERACTION
string
header
required

Path Parameters

exchangeId
string
required
Minimum length: 1
accountId
string
required
Minimum length: 1

Body

application/json
  • Native Assets
  • EVM Fungible Token (ERC-20)
  • TRON Native Fungible Token (TRC-10)
  • TRON Smart Contract Fungible Token (TRC-20)
  • Algorand Standard Asset
  • Stellar Classic Assets (SEP-41)
  • Solana Program Library Token (SPL and SPL 2022)
  • TON Jetton (TEP-74)
kind
enum<string>
required
Available options:
Native
amount
string
required
walletId
string
required
Minimum length: 1
priority
enum<string>
Available options:
Slow,
Standard,
Fast
createDestinationAccount
boolean
offer
boolean
expiresAt
string<date-time>
externalId
string
Required string length: 1 - 50
travelRule
object
feeSponsorId
string
Required string length: 1 - 50
otp
string
Required string length: 6

Response

200 - application/json
id
string
required
exchangeId
string
required
accountId
string
required
kind
enum<string>
required
Available options:
Withdrawal,
Deposit
walletId
string
required
requester
object
required
requestBody
object
required
  • Native Assets
  • EVM Fungible Token (ERC-20)
  • TRON Native Fungible Token (TRC-10)
  • TRON Smart Contract Fungible Token (TRC-20)
  • Algorand Standard Asset
  • Stellar Classic Assets (SEP-41)
  • Solana Program Library Token (SPL and SPL 2022)
  • TON Jetton (TEP-74)
dateCreated
string
required
transferId
string
exchangeReference
string