# Получить возврат

`GET /returns/{returnId}` · право ключа `returns:read`

Базовый адрес: https://api.tiluna.ru/v1 (песочница: https://sandbox-api.tiluna.ru/v1).

Заявка на возврат по позиции юрлица ключа: статус, сроки ответа, сумма
возврата и отправление возврата. Фото претензии не выдаются.

## Параметры

| Имя | Где | Тип | Обязательный | Описание |
|---|---|---|---|---|
| `returnId` | path | string (uuid) | да | Идентификатор заявки на возврат. |

## Пример запроса

```bash
curl 'https://api.tiluna.ru/v1/returns/5f0c2b7e-4d6a-4f1e-9a57-0d3c8e1b2a44' \
  -H "Authorization: Bearer $TILUNA_API_KEY"
```

## Ответы

- `200` — Заявка на возврат.
- `400` — Некорректный запрос — параметры, заголовки или тело не прошли проверку. Коды: `invalid_request`, `invalid_json`, `idempotency_key_required`, `invalid_cursor`, `cursor_mismatch`, `batch_too_large`, `validation_failed`, `external_tracking_number_invalid`, `unsafe_link`, `cancellation_failed`, `catalog_inventory_plan_denied`, `returns_disputes_plan_denied`, `review_plan_denied`.
- `401` — Ключ не передан, неверен, отозван, истёк или не подходит к окружению. Коды: `missing_token`, `invalid_token`, `token_revoked`, `token_expired`, `test_key_on_live_environment`, `live_key_on_sandbox_environment`, `key_creator_lost_access`.
- `403` — Ключу не хватает прав или кабинет и юрлицо ключа не допускают операцию. Коды: `insufficient_scope`, `seller_api_disabled`, `legal_entity_unavailable`, `legal_entity_not_verified`, `legal_entity_sales_paused`, `feature_not_enabled`, `brand_not_authorized`, `plan_denied`, `forbidden`, `legal_entity_required`, `legal_entity_not_found`, `brand_already_active`.
- `404` — Объект не найден или не принадлежит кабинету и юрлицу ключа. Коды: `not_found`.
- `429` — Превышен лимит запросов. Повторите запрос через Retry-After секунд. Коды: `rate_limited`, `auth_rate_limited`, `concurrency_limited`.
- `500` — Внутренняя ошибка. Повторите запрос позже с тем же Idempotency-Key. Коды: `internal_error`.
- `503` — API временно недоступен. Повторите запрос через Retry-After секунд. Коды: `rate_limit_unavailable`, `server_misconfigured`, `maintenance`, `spec_unavailable`.

### Пример ответа 200

```json
{
  "return": {
    "object": "return",
    "id": "8e0a2c4e-6a8c-4e1a-b3c5-d7e9f1a3b5c7",
    "order_id": "6d1f3a5b-7c9e-4b2d-8f0a-1c3e5a7b9d2f",
    "order_item_id": "2b4d6f8a-0c1e-4a3b-9d5f-7e9a1b3c5d7f",
    "kind": "defect",
    "public_status": "requested",
    "seller_response_deadline": null,
    "currency": "RUB",
    "refund": {
      "amount": null,
      "goods": null,
      "delivery": null,
      "commission_reversal": null,
      "refunded_at": null
    },
    "return_shipment": {
      "method": null,
      "payer": null,
      "cost": null,
      "tracking_number": null,
      "tracking_url": null
    },
    "reason": "defective",
    "reason_text": "Скол на ручке кружки",
    "photos": [],
    "status": "pending",
    "seller_response": null,
    "seller_responded_at": null,
    "admin_response": null,
    "admin_responded_at": null,
    "refund_amount": null,
    "refunded_at": null,
    "return_tracking_number": null,
    "return_tracking_url": null,
    "order_number": "TL-2026-00001234",
    "product_name": "Кружка керамическая 350 мл",
    "product_image": null,
    "created_at": "2026-10-02T09:00:00.000Z",
    "updated_at": "2026-10-02T09:00:00.000Z"
  }
}
```

### Пример ответа 400

```json
{
  "error": {
    "type": "invalid_request_error",
    "code": "invalid_request",
    "message": "Параметр limit должен быть от 1 до 100",
    "param": "limit",
    "request_id": "V1StGXR8_Z5j",
    "doc_url": "https://docs.tiluna.ru/docs/errors#invalid_request",
    "details": [
      {
        "path": "limit",
        "message": "Параметр limit должен быть от 1 до 100"
      }
    ]
  }
}
```
