Инструменты страницы
Request for the extended information about the binding
In this document, the following data type conventions are used when describing request and response parameters:
- string – string;
- array – data array;
- object – data object;
- data – date;
- boolean – boolean (logical) data type;
- int. (integer) – integer data type;
- amount – a numeric data type (amount).
Request parameters:
| Parameter | Type | Description | Value example |
|---|---|---|---|
|
| string |
Binding identifier, 32 bytes length. | 87414E0F13AB4542AA9D10E81F74A6E3 |
|
| string |
Type of information requested. The possible values are:
| balance,loyalty |
Request format:
POST /api/bindings/ HTTP/1.1
Host: 3dsec.sberbank.ru/sbersafe
Authorization: <accessToken>
Content-Type: application/json
Accept: application/json; version=1.0
Content-Length: <content-lenght>
{
"uuid":"<uuid>",
"responseType":"<responseType>"
}
Response parameters:
| Parameter | Type | Description | Value example |
|---|---|---|---|
|
| string |
Data object on the card balance. |
|
|
| amount | Card balance in minimum currency units (2312.78 rubles = 231278). | 231278 |
|
| string |
Balance currency. | 643 |
|
| object |
Information object about «Spasibo bonuses». |
|
|
| amount |
The minimum amount of «Spasibo » bonuses to be debited (in units of bonuses). | 10 |
|
| amount |
The maximum amount of «Spasibo » bonuses to be debited (in units of bonuses).. | 100 |
|
| string |
Request identifier. | gbhjnkme-rdcfgv-hbjnkm-7689ui-okp3ew |
|
| string |
Indication of the status of the request processing result | SUCCESS |
Response format:
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: <content-lenght>
Cache-Control: no-store
{
"balance": {
"amount":"<amount>",
"currency":"<currency>"
},
"loyalty": {
"amountMin": <amountMin>,
"amountMax": <amountMax>
},
"requestId":"<requestId>",
"status": "<status>"
}