Инструменты страницы
Request an access code
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 |
The partner identifier you received when registering in the payment gateway. | our_best_merchant |
|
| string |
Customer identifier, length 32. | C2BC84C12AD6438DAA0D87517C7AE187 |
Request format:
POST /api/auth/otp HTTP/1.1
Host: 3dsec.sberbank.ru/sbersafe
Content-Type: application/json
Accept: application/json; version=1.0
Content-Length: <content-lenght>
{
"merchantLogin":"<merchantLogin>",
"uuid":"<clientId>"
}
Response parameters:
| Parameter | Type | Description | Value example |
|---|---|---|---|
|
| string |
Access code generated by the payment gateway. | i1WsRn1uB1ehfbb37 |
|
|
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
{
"accessCode":"<accessCode>",
"requestId":"<requestId>",
"status":"<status>"
}