Generate Payment
Generates a payment in the USDT cryptocurrency.
Making a Request
The call should be made using the POST method.
URL
/v1/crypto/payments
HTTP Request Body
{
"value": 1.47,
"crypto_currency": "usdt",
"receiver_address": "TLyxu5on2Jdkcn5Y9TBfoTCXaQR4gG8rAL",
"sender_wallet_id": "39dd6455-f071-4922-a4ed-c6f3e879fb12",
}
Attributes Description
ATTRIBUTE | DESCRIPTION | TYPE |
---|---|---|
value (Required) | Amount to be transferred | DECIMAL greater than 0 |
crypto_currency (Required) | Cryptocurrency code | STRING (only "usdt" is supported) |
receiver_address (Required) | Address of the recipient | STRING |
sender_wallet_id (Required) | ID of the sender's wallet (pre-registered via the Generate Wallet endpoint) | STRING |
Success
If the operation is successful, a JSON response with the status 201 - Created is returned.
HTTP 201 Response Body - Example
{
"crypto_payment": {
"value": "1.49",
"crypto_currency": "usdt",
"reference_code": "CE202408180000000057",
"status": "pending"
}
}
Errors
In case of errors, a JSON response is returned with the error attribute specifying the reason for the failure.
HTTP 400 Response Body - Example
{
"msg": "Invalid crypto currency"
}
HTTP 500 Response Body - Example
{
"error": "Operation failed! Please try again or contact our support team"
}