Create a Payout
Create a Payout
POST
https://api.sandbox.coindirect.com/api/v1/pay/summary
This endpoint allows you to create payouts.
Headers
Name | Type | Description |
---|---|---|
Authorization | string | HAWK Token. See API Authentication page |
Request Body
Name | Type | Description |
---|---|---|
payOutDetails | object | In this object you will want to specify such payout details as destination |
payOutDetails.protocol | string | Only applicable when |
payOutDetails.code | string | Always |
payOutDetails.currency | string | Cryptocurrency code e.g. |
payOutDetails.address | string | Payout destination address e.g. When sending XRP, please append |
merchantId | string | Merchant ID. You can find it on the "Merchant Details" page in your business account |
type | string | Use |
amount | number | Payment price |
currency | string | Payment price currency. Can be any of supported by Coindirect currencies e.g. |
expiryMinutes | number | Indicates the payment window - for how long a payment will be valid. Once it is expired e.g. no transaction has been received during the payment window, the payment will update its status to |
reference | string | Payment external ID |
When creating USDT payouts, please always specify a relevant protocol in a "payOutDetails.protocol"
field in your POST /api/v1/pay/summary
call.
The field value can be either "ERC20"
or "TRC20"
depending on what destination address you submit in an "address" field.
When sending USDT to the Ethereum network, specify ERC20.
When sending USDT to the Tron network, specify TRC20.
SENDING FUNDS TO THE WRONG NETWORK WILL RESULT IN THE TOTAL LOSS OF YOUR FUNDS.
Before you submit your request to create a payout transaction, we recommend validating a destination wallet address that the funds are supposed to be sent to. This will reduce a number of errors due to end-users who submit incomplete, incorrect or wrong addresses when requesting a withdrawal on your platform.
See https://developers.coindirect.com/api/payouts/validate-address.
Response parameters
| string | Payment UUID |
| string | Merchant ID |
| long | Payment creation date and time |
| long | Payment expiry date |
| long | Quote expiry date |
| string | Payment external ID |
| string |
|
| string | Payment status. See the list of payment statuses in Payments How-Tos on the left |
| object | Contains data about the payment price currency and amount |
| string | Payment price currency e.g. |
| big decimal | Payment price amount |
| big decimal | The actual payment amount in price currency that the payment resulted in |
| object | Contain data about both the payment's target wallet currency and the amount |
| string | The merchant's target wallet currency that the cryptocurrency payment will be converted and credited to |
| big decimal | The amount that will be received into the merchant's wallet if the customer sends the exact amount of cryptocurrency that they are supposed to send (see |
| big decimal | The actual amount that the merchant receives into their wallet after Coindirect converts cryptocurrency |
| object | Contains data about the |
| string | Cryptocurrency code e.g. |
| big decimal | The amount of cryptocurrency that is supposed to be sent to the payment address |
| big decimal | The actual amount of received cryptocurrency |
| object | Contains data about payment fees |
| string | Fee currency code |
| big decimal | Fee amount that will be debited from the merchant's wallet balance if the customer sends the exact amount of cryptocurrency that they are supposed to send |
| big decimal | The actual fee amount that Coindirect debited from the merchant's wallet balance after processing the payment |
| object | An object that contain data about the display rate. |
| string | Base currency type |
| string | Couter currency type |
| big decmal | Rate |
| object | An object that contains data about the paymen exchange rate |
| string | Base currency code |
| string | Counter currency code |
| big decimal | Rate |
| object | Contains data about the cryptocurrency address and destination tag (in case of XRP) |
| string | The protocol type supported by the payment. If there are multiple protocols supported, see the |
| string | The payment address. This is the address that a customer needs to send their cryptocurrency to |
| string | This is a payment destination tag. This fields isn't |
| string | The destination address URI |
| array | Fields are the same as in the case of the |
| string | URL to the payment page that you can redirect your customers to |
| string | URL that the customer will be redirected to if they click a "Back to Merchant" button on the payment page |
| array | Contains data about received cryptocurrency transactions and exchange rates. If no transaction is received, it is empty |
| long | Cryptocurrency transaction detection timestamp |
| long | Cryptocurrency transaction confirmation timestamp |
| string | Cryptocurrency transaction hash |
| big decimal | Cryptocurrency transaction amount |
| object | Cryptocurrency transaction risk details |
| string | Cryptocurrency transaction risk levl. Can |
| string | Cryptocurrency transaction resource name |
| string | Cryptocurrency transaction resource category |
| string | Cryptocurrency transaction network fee details |
| big decimal | Cryptocurrency transaction |
| array, string | The wallet addresses that the cryptocurrency transaction was sent from |
| object | The exchange rate that was used to convert cryptocurrency to the wallet currency |
| string | Base currency |
| string | Counter currency |
| big decimal | Exhange rate |
| object | The display rate |
| string | Base currency |
| string | Counter currency |
| big decimal | Rate |
Last updated