Skip to main content

Withdrawal create

POST /api/merchant/withdrawals

Request params

NameTypeDescription
accountIdstringAccount ID for withdrawal
amountstringAmount for withdrawal, for example: 1000.00
addressstringDestination address for the transfer
code2FAstringTwo-factor authentication code
substractFeeFromAmountbooleanIf true, the commission will be charged from the withdrawal amount. Default is false.

Request example

curl --request POST \
--url https://{{domain}}/api/merchant/withdrawals \
--header 'Content-Type: application/json' \
--header 'X-Identity: {{api_key}}' \
--header 'X-Signature: {{sign}}' \
-d '{
"accountId": "your_account_id",
"amount": "1000.00",
"address": "destination_address",
"code2FA": "123456",
"substractFeeFromAmount": false
}'

Response structure

The response is returned as an array of WithdrawalDTO objects.

Response example

{
"id": "5b5c9dc4-9833-44d1-859a-0743807f8b30",
"createdAt": "2024-10-23T09:11:12+00:00",
"updatedAt": "2024-10-23T09:11:12+00:00",
"sum": {
"amount": "10.00000000",
"currency": "USDT",
"subunit": 8
},
"fee": {
"amount": "5.00000000",
"currency": "USDT",
"subunit": 8
},
"address": "TNPXDJcnLqNwPbTB6ux7k1fSgM2v7jetP9",
"txId": null,
"status": 2,
"accountId": "df2b175e-0aef-45e3-8d03-80881389901c"
}