Инструменты страницы



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

uuid

string

Binding identifier, 32 bytes length.

87414E0F13AB4542AA9D10E81F74A6E3

responseType

string

Type of information requested. The possible values are:

  • balance – balance information (only for prepayments);
  • loyalty – information about the loyalty program.
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

balance

string

Data object on the card balance.

amount

amount Card balance in minimum currency units (2312.78 rubles = 231278). 231278

currency

string

Balance currency.

643

loyalty

object

Information object about «Spasibo bonuses».

amountMin

amount

The minimum amount of «Spasibo » bonuses to be debited (in units of bonuses).

10

amountMax

amount

The maximum amount of «Spasibo » bonuses to be debited (in units of bonuses)..

100

requestId

string

Request identifier.

gbhjnkme-rdcfgv-hbjnkm-7689ui-okp3ew

status

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>"
}