Crypto
How to use Crypto to submit a payout in Global.
Post
https://sandbox.luxtak.com/api/payout
Submit a payout by Crypto in Global
This endpoint allows you to submit a payout by Crypto in Global.
Parameters
Header
| Name | Type | Description |
|---|---|---|
| Content-Type* | string | application/json; chartset=UTF-8 |
| AppId* | string | Your App ID in payout platform |
| Authorization* | string | SHA256($sorted_params + $app_key) |
Body
| Name | Type | Description |
|---|---|---|
| source_currency* | string | Merchant Account Currency - One of: USD - |
| arrival_currency* | string | Fixed value: USD |
| fee_bear* | string | Processing fee charges to merchant or beneficiary. - One of: merchant beneficiary - |
| phone* | string | Beneficiary's phone - 0 ~ 15 digits - |
| name* | string | Beneficiary's name - Length between 5 and 100 - |
| document_type* | string | Beneficiary's personal identification type |
| document_id* | string | Beneficiary's personal identification number |
| email* | string | Beneficiary's email |
| custom_code* | string | Merchant Payout ID - Max. 50 chars - |
| notify_url* | string | Where luxtak will send notification to. |
| method* | string | Fixed value: Crypto |
| additional_remark* | string | Descriptor on the user's bank bill - Max length: 40 - |
| country* | string | Global |
| account_type* | string | Beneficiary's Crypto account type - One of: USDT-TRC20 |
| amount* | string | Payout Amount, 2 decimal numbers - 0.01 ~ 10000 - |
| account* | string | Beneficiary's Crypto account |
| amount_type | string | Specify the amount value is fixed for merchant or beneficiary - One of: source_amount, arrival_amount(default) - |
Responses
| 200: OK | submit successfully |
{
"code":200,
"msg":"success",
"time":1749544977,
"data":{
"id":"LT2025061008********jWjdfdhCRG",
"custom_code":"custom_code4491666*****1251iWAS",
"arrival_amount":"0.05",
"arrival_currency":"USD",
"source_amount":"0.07",
"source_currency":"USD",
"status":"IN_PROCESSING"
}
}
| 400: Bad Request | order already existed |
{
"code": 4001010,
"msg": "order already existed",
"time": 1628580940,
"data": {}
}
| 401: Unauthorized | unauthorized |
{
"code": 4004003,
"msg": "permission denied",
"time": 1637224716,
"data": {}
}
| 500: Internal Server Error | fee not configured |
{
"code": 5001003,
"msg": "fee not configured",
"time": 1637224716,
"data": {
... ...
}
}
| 500: Internal Server Error | balance insufficient |
// system error
{
"code": 5001102,
"msg": "balance insufficient",
"time": 1637224716,
"data": {
... ...
}
}
| 500: Internal Server Error | system error |
{
"code": 5001000,
"msg": "system error",
"time": 1637224716,
"data": {}
}
Example
curl --location --request POST 'https://sandbox.luxtak.com/api/payout' \
--header 'AppId: 94FAC**********************68548' \
--header 'Authorization: d6181db0d6548b94b162e75d095b59147172d914699f83b2bd17951a671b6302' \
--header 'Content-Type: application/json' \
--data-raw '{
* "amount": 0.05,
* "source_currency": "USD",
* "arrival_currency": "USD", // fixed value: USD
* "fee_bear": "merchant",
* "phone": "+55119*****119",
* "name": "ab",
* "document_type": "CPF",
* "document_id": "110*****882",
* "email": "test@test.com",
* "account_type": "USDT-TRC20",
* "account": "TXyQ1tVRBnhpZV*******PmyUZfT6vFxUu",
* "custom_code": "custom_code4491666809941251iWAS",
* "notify_url": "https://7b7a-74-226-216-127.ngrok-free.app",
* "method": "crypto", // fixed value: Crypto
* "additional_remark": "CryptoTest001",
* "country": "GLOBAL",
"amount_type": ""
}'
Tips
Note: 94FAC*****************68548 is luxtak's test App ID for sandbox, and d6181db0d6548b94b162e75d095b59147172d914699f83b2bd17951a671b6302 is authorization token associated with the test App ID.
Tips
In sandbox environment, please use **_luxtak_test_reject@luxtak.com_** as Crypto account , and EMAIL as account_type for testing REJECTED payout, any other Crypto account will be success (PAID).
