SBP
How to use SBP to submit a payout in Russia.
Post
https://sandbox.luxtak.com/api/payout
Submit a payout by SBP in Russia
This endpoint allows you to submit a payout by SBP in Russia.
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 |
|---|---|---|
| name* | string | Beneficiary's name - Length between 5 and 100 - |
| bank_code* | string | Bank code. - Get from /bank-account-list api, use "country": "RUS". "method": "SBP" Check here - |
| account_type* | string | Account type - Fixed Value: phone - |
| account* | string | Account |
| fee_bear* | string | One of [beneficiary |
| amount* | number | Payout Amount - Min 1, Max 250,000 - |
| amount_type | string | Specify the amount value is fixed for merchant or beneficiary - One of: source_amount, arrival_amount(default) - |
| source_currency* | string | Merchant Account Currency - supported: USD, GBP, EUR, PEN - |
| arrival_currency* | string | Beneficiary's account currency. Fixed value: RUB |
| notify_url* | string | Where luxtak will send notification to. |
| custom_code* | string | Merchant Payout ID - Max. 50 chars - |
| additional_remark* | string | Additional Remark - Max length: 40 - |
| country* | string | Fixed value: RUS, for Russia |
| method* | string | Fixed value: SBP |
Responses
| 200: OK | submit successfully |
{
"code": 200,
"msg": "success",
"time": 1628580845,
"data": {
"id": "TS202412110734054iRiUZFPXfQM",
"custom_code": "custom_code1005721520372911sPn0",
"arrival_amount": "1.01",
"arrival_currency": "RUB",
"source_amount": "0.01",
"source_currency": "USD",
"status": "IN_PROCESSING"
}
}
| 400: Bad Request | order already existed |
{
"code": 4001020,
"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://api.luxtak.com/api/payout'
\
--header 'AppId: 94FAC**********************68548' \
--header 'Authorization:
d6181db0d6548b94b162e75d095b59147172d914699f83b2bd17951a671b6302'\
--header 'Content-Type: application/json' \
--data-raw '{
"name":"Tatiana Ivanovskay",
"bank_code": "100000000111",
"account_type": "phone",
"account": "79283446260",
"fee_bear": "merchant",
"amount": "1.01",
"source_currency": "USD",
"arrival_currency": "RUB",
"notify_url": "https://api.luxtak.com/api/notify/demo",
"custom_code": "custom_code1005721520372911sPn0",
"additional_remark": "from test",
"country": "RUS",
"method": "SBP"
}
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 SBP account , and EMAIL as account_type for testing REJECTED payout, any other SBP account will be success (PAID).
Example of Document
| Document Type | Document ID | Description |
|---|---|---|
| CPF | 22*******99 | 11 digits |
| CNPJ | 23**********31 | 14 digits |
Third-party CPF/CNPJ Validator
Example of SBP account
| Account Type | Account | Description |
|---|---|---|
| CPF | 22*******99 | 11 digits |
| CNPJ | 23**********31 | 14 digits |
| Phone | +5511987654321 or 11987654321 | country code (+55) is optional |
| merchant@luxtak.com | | |
| EVP | A UUID-like string: a1073db4-a3a0-11ed-a8fc-0242ac120002 | alphanumeric string of 32 digits that is sent from the central bank to the institution |
