# Simplified identification testing
Testing the SMZ service is only possible in sandbox mode. To enable this mode, please contact Support Service (opens new window).
**Data for simplified identification queries on test (sandbox) environment.
In this case, the SMS message with the code to confirm the phone number is not sent. You must use the code from the table below.
| Parameter | Value | Comment |
|---|---|---|
| firstName | Полиграф | |
| patronymic | Полиграфович | |
| lastName | Шариков | |
| smsCode | 000000 | All digits are zeros. The number of digits in the smsCode is set in the merchant settings |
The rest of the parameters can be any.
Example of a request for identification by SNILS:
POST https://secure.mandarinpay.com/api/personidentification
{
"firstName": "Полиграф",
"lastName": "Шариков",
"patronymic": "Полиграфович",
"passportSeries": "1111",
"passportNumber": "111111",
"snils": "",
"inn": "501716749325",
"phone": "+79001234567"
}
An example of a request with an SMS code for verification:
PUT https://secure.mandarinpay.com/api/personidentification/{id}
{
"smsCode": "000000"
}
Example Response:
{
"id": "794d3cc7-a2b4-4579-9173-bafc7d7dc29d"
}
Request for identification status:
GET https://secure.mandarinpay.com/api/personidentification/{id}
Example Response:
The data of Шариков Полиграф Полиграфович is indicated. A request has not yet been made to send the code for verification.
{
"id": "485fc237-a8b8-45f9-816d-fb7de3715e2b",
"phoneVerified": null,
"phoneVerificationFinished": false,
"personVerified": true,
"personVerificationFinished": true,
"personVerificationError": "Sandbox mode"
}
The data of Шариков Полиграф Полиграфович is indicated. The code has been sent for verification.
{
"id": "485fc237-a8b8-45f9-816d-fb7de3715e2b",
"phoneVerified": true,
"phoneVerificationFinished": true,
"personVerified": true,
"personVerificationFinished": true,
"personVerificationError": "Sandbox mode"
}
The data is different from the Шариков Полиграф Полиграфович. The code has been sent for verification.
{
"id": "d3552b7c-80a6-4e0e-bf1f-ad0c7ff2d705",
"phoneVerified": true,
"phoneVerificationFinished": true,
"personVerified": false,
"personVerificationFinished": true,
"personVerificationError": "Sandbox mode"
}
# Possible errors
error code 401 - The authorization of the request was not completed, check the correctness of the authorization.
{
"error": "Authentication error: "
}
error code 400 - The id value is not specified for requesting the identification status.
{
"sessionId": [
"The value '{id}\n' is not valid."
]
}
error code 400 - The snils parameter is not specified in the identification request.
{
"snils": [
"Required property 'snils' not found in JSON. Path '', line 9, position 1."
]
}
error code 400 - The snils parameter contains invalid characters or exceeds the field size.
{
"snils": [
"The field Snils must match the regular expression '[0-9]{11}'."
]
}
Errors 5xx - An error on the server side. (Extremely rare)