Коди помилок
У разі помилки під час виконання запиту мерчанта, сервіс повертає http code 400
та опис помилки у наступному форматі:
RESPONSE
HTTP/1.1 400 Bad Request
Content-Type: application/json
{
"status": "error",
"error_code": 20,
"message": "Order not found"
}
Опис параметрів у відповіді:
status
– Загальний статус запитуerror_code
– Код помилкиerror_message
– Текст опису помилки
Перелік кодів помилок
Код помилки | Повідомлення про помилку |
---|---|
10 | Requested method cannot be found |
12 | Invalid user key |
13 | Signature is not valid |
14 | Invalid data format |
15 | Not enough data to complete the request |
18 | User rate not found |
20 | Order not found |
24 | Amount less than allowed |
25 | You do not have enough balance |
26 | User wallet not found |
27 | An error occurred while creating the order |
28 | Service not found |
30 | Service is temporarily unavailable |
31 | Amount greater than allowed |
32 | Order already exists |
38 | Order is already being processed |
112 | Rejected by third party service |
120 | The intended time for the operation was exceeded |