Create payout
Creates payout from user wallet for defined crypto-currency
POST https://app.thedex.cloud/api/v1/payouts/create
Headers
X-EX-APIKEY*
String
Your API key
X-EX-PAYLOAD*
String
Body to base64
X-EX-SIGNATURE*
String
Encrypted body with the secret key
Request Body
{
"amountInPayCurrency": "Number",
"payCurrency": "String",
"address": "String",
"memo": "Number", // optional
"description": "String", // optional
"callbackUrl": "String" // optional
}Request JSON attributes
payCurrency*
String
Reach out accessed values to define attribute by link: /api/v1/info/currencies
attribute "payCurrencies"
amountInPayCurrency*
BigDecimal
Amount in cryptocurrency that will be transferred to the address. Please ensure the value respects the precision limits for each currency and blockchain (see Precision Limits
for details).
address*
String
Address of crypto wallet
memo
Integer
An additional TON or Ripple specific field to define the intended recipient or destination.
description
String
max size = 300
callbackUrl
String
Custom callbackUrl for a payout, that can be differ from user settings
Response body
General validation error: missing or malformed parameters.
Field-level validation error: if amountInPayCurrency exceeds allowed decimal precision for the given currency.
Insufficient funds to perform payout.
Invalid or incorrectly formatted address.
Transaction exceeds daily limits.
Specific field validation error. (Minimal limits, etc)
Blockchain related errors.
In case of not existing parameters, incorrect headers, etc..
Similar for not whitelisted address in merchant settings
In case of incorrect signature, api key or payload header
Response JSON attributes:
"id"
String
Payout id
"payCurrency"
String
Cryptocurrency
"address"
String
Address is used to widthrawal
"memo"
Integer
Additional destination info
"createDate"
String
Creation date
"modifiedDate"
String
Modification date
"transactionId"
String
Could be ignored for this API.
"withdrawalAmount"
String
Withdrawal amount
"transferAmount"
String
Transfer amount
"blockchainFee"
String
Blockchain fee
"payoutCommissionPercentage"
String
Payout commission in percentage
"isApiCalled"
Boolean
Always true for this API
"fiatAmount"
String
Fiat amount of payout
"description"
String
Description
"merchantId"
String
Merchant id
"fiatCurrency"
String
Fiat currency of payout
Request curl
Example Curl
Amount Precision Limits
For payout operations, the amountInPayCurrency field is subject to precision (decimal scale) limits that depend on the selected blockchain and cryptocurrency.
Each cryptocurrency supports a maximum number of decimal places. Values with a scale greater than the allowed limit will be rejected.
Below is the list of supported currencies and their maximum allowed decimal scale:
Precision by Currency and Blockchain
Bitcoin Network
BTC_BITCOIN
8
Ethereum Network
ETH_ETHEREUM
18
USDT_ETHEREUM
6
USDC_ETHEREUM
6
DAI_ETHEREUM
18
Litecoin Network
LTC_LITECOIN
8
Tron Network
TRX_TRON
6
USDT_TRON
6
Ripple Network
XRP_RIPPLE
6
The Open Network
TON_TON
9
USDT_TON
6
Doge Network
DOGE_DOGECOIN
8
Polygon Network
POL_POLYGON
18
USDT_POLYGON
6
USDC_POLYGON
6
Arbitrum Network
ARB_ARBITRUM
18
ETH_ARBITRUM
18
USDT_ARBITRUM
6
USDC_ARBITRUM
6
Optimism Network
OP_OPTIMISM
18
ETH_OPTIMISM
18
USDT_OPTIMISM
6
USDC_OPTIMISM
6
BSC Network
BNB_BSC
18
USDT_BSC
18
USDC_BSC
18
Solana Network
SOL_SOLANA
9
USDT_SOLANA
6
USDC_SOLANA
6
Base Network
ETH_BASE
18
USDC_BASE
6
Notes
The precision limit applies only to the number of decimal places, not to the total amount.
If the provided
amountInPayCurrencyexceeds the allowed decimal scale for the selected currency and blockchain, the request will fail validation.Clients should round or truncate values to the supported precision before submitting payout requests.
Last updated