SBP Vault
How to use Vault to submit a payin by SBP in Russia.
Create Vault
https://gateway-test.luxtak.com/vault/create
This endpoint allows you to create a vault.
Parameters
Header
| Name | Type | Description |
|---|---|---|
| Content-Type* | string | application/json; chartset=UTF-8 |
| Authorization* | string | Basic Base($app_id:$security_key) |
Body
| Name | Type | Description |
|---|---|---|
| app_id* | string | created app's id at dashboard - Max. 32 chars - |
| timestamp* | string | yyyy-MM-dd HH:mm:ss - Max. 19 chars - |
| version* | string | Fixed value: 2.0 |
| type* | string | Fixed value: SBP |
| sbp.region* | string | RUS |
| sbp.method* | string | Fixed value: SBP |
| sbp.uid* | string | merchant user's id |
Responses
| 200 | submit successfully |
{
"code": "10000",
"msg": "Success",
"token": "psvt_sbp_***",
"type": "SBP",
"timestamp": "yyyy-MM-dd HH:mm:ss"
}
Example
curl --location --request POST 'https://gateway-test.luxtak.com/vault/create' \
--header 'Authorization: Basic MTYyNTgyOTIxNDUzMTY2Mzg6UGFnc21pbGVfc2tfZDUwMWQ1ZGNkNTI5OGQ5N2MwNmUzYjI4YjA2OWZjZmY3NDU5ZjY2NzNiMjFjMTFlYTY3NDM5MDgzOTZkOTYxNQ==' \
--header 'Content-Type: application/json' \
--data-raw '{
"app_id": "162************38",
"timestamp": "2022-01-01 03:54:01",
"version": "2.0",
"type": "SBP",
"sbp": {
"region": "RUS",
"method": "SBP",
"uid": "buyer_0101_0001"
}
}'
Void Vault
https://gateway-test.luxtak.com/vault/void
This endpoint allows you to void a vault.
Parameters
Header
| Name | Type | Description |
|---|---|---|
| Content-Type* | string | application/json; chartset=UTF-8 |
| Authorization* | string | Basic Base($app_id:$security_key) |
Body
| Name | Type | Description |
|---|---|---|
| app_id* | string | created app's id at dashboard - Max. 32 chars - |
| timestamp* | string | yyyy-MM-dd HH:mm:ss - Max. 19 chars - |
| version* | string | Fixed value: 2.0 |
| type* | string | Fixed value: SBP |
| vault_token* | string |
Responses
| 200 | submit successfully |
{
"code": "10000",
"msg": "Success",
"token": "psvt_sbp_***",
"type": "SBP",
"timestamp": "yyyy-MM-dd HH:mm:ss"
}
Tips
Note: 162********38 is luxtak's test app id for sandbox, and MTYyNTgyOTIxNDUzMTY2Mzg6UGFnc21pbGVfc2tfZDUwMWQ1ZGNkNTI5OGQ5N2MwNmUzYjI4YjA2OWZjZmY3NDU5ZjY2NzNiMjFjMTFlYTY3NDM5MDgzOTZkOTYxNQ== is authorization token associated with the test app id.
Warning
Please use your own app_id and generate your own authorization token when testing.
