# Получить заказ

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

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

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

## Параметры

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

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

```bash
curl 'https://api.tiluna.ru/v1/orders/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
{
  "order": {
    "object": "order",
    "id": "6d1f3a5b-7c9e-4b2d-8f0a-1c3e5a7b9d2f",
    "number": "TL-2026-00001234",
    "order_number": "TL-2026-00001234",
    "legal_entity_id": "1c3e5a7b-9d2f-4b6d-8f1a-3c5e7a9b1d3f",
    "fulfillment_status": "awaiting_acceptance",
    "status": "paid_pending_release",
    "has_cancelled_items": false,
    "created_at": "2026-09-24T08:00:00.000Z",
    "paid_at": "2026-10-01T09:00:00.000Z",
    "accepted_at": null,
    "updated_at": "2026-09-24T08:02:00.000Z",
    "acceptance_deadline": null,
    "currency": "RUB",
    "amounts": {
      "items_total": 158000,
      "seller_discount": 0,
      "platform_discount": 0,
      "commission": 15800,
      "delivery_share": 0,
      "pay_on_receipt": 0
    },
    "items_total": 158000,
    "commission": 15800,
    "payout": 142200,
    "items": [
      {
        "object": "order_item",
        "id": "2b4d6f8a-0c1e-4a3b-9d5f-7e9a1b3c5d7f",
        "product_id": "3f6b1c2a-8d4e-4f7a-9b21-5c0e7d9a1b34",
        "variant_id": null,
        "external_id": "1C-000482",
        "product_code": "100482",
        "seller_sku": "MUG-350",
        "variant_article": null,
        "barcode": "4600000000482",
        "name": "Кружка керамическая 350 мл",
        "variant": null,
        "quantity": 2,
        "unit_price": 79000,
        "total": 158000,
        "seller_discount": 0,
        "platform_discount": 0,
        "commission": 15800,
        "commission_bps": 1000,
        "status": "pending",
        "shipped_at": null,
        "delivered_at": null,
        "cancelled_at": null,
        "marking": {
          "required": false,
          "status": null,
          "codes": []
        },
        "addons": [],
        "option_variant_ids": [],
        "price": 79000,
        "product_snapshot": {
          "name": "Кружка керамическая 350 мл",
          "slug": "kruzhka-keramicheskaya-350-ml",
          "image_url": null,
          "sku": "100482",
          "variant_value": null
        },
        "tracking_number": null,
        "tracking_url": null,
        "carrier": null,
        "created_at": "2026-09-24T08:00:00.000Z"
      }
    ],
    "delivery": {
      "method": "cdek",
      "label": "СДЭК, пункт выдачи",
      "city": "Казань",
      "pickup_point": {
        "code": "KZN12",
        "address": "Казань, ул. Баумана, 15"
      },
      "carrier": null,
      "tracking_number": null,
      "tracking_url": null,
      "shipments": []
    },
    "cancellation": null,
    "delivery_method": "строка",
    "tracking_number": "строка",
    "carrier": "строка",
    "cancel_reason": "строка",
    "payout_status": "строка",
    "payout_date": "строка",
    "status_history": [
      {
        "status": "confirmed",
        "at": "2026-09-24T09:15:00.000Z",
        "actor": "seller"
      }
    ]
  }
}
```

### Пример ответа 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"
      }
    ]
  }
}
```
