📜 Получение данных по платежу
Code samples
GET /v2/payments/{id}
Example responses
200 Response
{
"success": true,
"payment": {
"id": 1,
"uuid": "string",
"amount": "string",
"currency": "string",
"description": "string",
"status": 3
}
}
401 Response
{
"error": "unauthorized",
"status": 401
}
422 Response
{
"error": "param is missing or the value is empty: article",
"status": 422
}
🔁 Ответы
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Платеж | Inline |
| 401 | Unauthorized | Unauthorized | None |
| 422 | Unprocessable Entity | Ошибка валидации данных | None |
Response Schema
Status Code 200
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| » success | boolean | false | none | Флаг успеха |
| » payment | Payment | false | none | Платеж |
| »» id | integer | false | none | ID платежа |
| »» uuid | string | false | none | none |
| »» amount | string | false | none | none |
| »» currency | string | false | none | none |
| »» description | string | false | none | none |
| »» status | integer | false | none | Статус платежа: - 0: Создан - 1: В обработке - 2: Отменен - 3: Обработан - 4: Ошибка - 5: Холд - 6: Холд |
Enumerated Values
| Property | Value |
|---|---|
| status | 0 |
| status | 1 |
| status | 2 |
| status | 3 |
| status | 4 |
| status | 5 |
| status | 6 |