Инструменты страницы
Request for a security token
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).
List of the request parameters:
| Parameter | Type | Description | Value example |
|---|---|---|---|
|
| string |
Access code generated by the payment gateway. | 0DF3343A8D9C7B005B1952D9B933F415696E1CF07676EE8D |
|
| string |
One-time password value received by the customer. | 111111 |
Request format:
POST /api/auth/token HTTP/1.1
Host: 3dsec.sberbank.ru/sbersafe
Content-Type: application/json
Accept: application/json; version=1.0
Content-Length: <content-length>
{
"accessCode":"<accessCode>",
"otp":"<otp>"
}
Response parameters:
| Parameter | Type | Description | Value example |
|---|---|---|---|
|
| string |
Security token. Present in case of success. | 410012345678901.0123456789ABCDEFGHIJKLMNOFGGHIJKLMNOPQRSTUVX |
|
|
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
{
"accessToken":"<accessToken>",
"requestId":"<requestId>",
"status":"<status>"
}