Перейти к основному содержанию
GET
/
orders
List purchase history
curl --request GET \
  --url https://csboard.com/v1/orders \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "order_id": "ord_01J9Z3K8Q2",
      "steam_id": "76561198000000000",
      "status": "completed",
      "custom_id": "batch-2026-06-29-01",
      "currency": "USD",
      "charged_total_usd": 26.47,
      "item_count": 2,
      "hold_until": null,
      "created_at": "2026-06-29T17:12:04Z",
      "updated_at": "2026-06-29T17:15:40Z",
      "items": [
        {
          "market_hash_name": "AK-47 | Redline (Minimal Wear)",
          "price_usd": 14.37,
          "status": "delivered",
          "tradable_at": "2026-07-06T12:00:00Z",
          "return_reason": null,
          "steam_trade_offer_id": "5512345678",
          "steam_trade_offer_finished_at": "2026-06-29T17:15:40Z"
        }
      ]
    }
  ],
  "meta": {
    "next_cursor": "eyJpZCI6Im9yZF8wMUo5WjNLOFEyIn0=",
    "per_page": 50
  }
}
Эндпоинт orders возвращает историю ваших покупок, сначала самые новые, с keyset-пагинацией. Фильтруйте по временному окну и по статусу, затем переходите к более старым страницам, передавая meta.next_cursor обратно как cursor. Каждый заказ содержит разбивку по предметам со статусом доставки. Требуется аутентификация. Отправьте ключ как Authorization: Bearer csb_pub_....

Query-параметры

limit
integer
по умолчанию:"50"
Результатов на странице. Минимум 1, максимум 100.
start_unix_time
integer
Возвращать только заказы, созданные не раньше этого Unix-таймстампа (в секундах).
end_unix_time
integer
Возвращать только заказы, созданные не позже этого Unix-таймстампа (в секундах).
status
string
Фильтр по статусу заказа. Одно из: completed, hold, delivering, pending, cancelled, failed.
cursor
string
Keyset-курсор из meta.next_cursor предыдущего ответа. Передайте его, чтобы получить следующую страницу.

Поля ответа

data
Order[]
обязательно
Массив заказов для этой страницы.
meta
object
обязательно

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

curl "https://csboard.com/v1/orders?status=completed&limit=50" \
  -H "Authorization: Bearer csb_pub_..."

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

{
  "data": [
    {
      "order_id": "ord_01J9Z3K8Q2",
      "steam_id": "76561198000000000",
      "status": "completed",
      "custom_id": "batch-2026-06-29-01",
      "currency": "USD",
      "charged_total_usd": 26.47,
      "item_count": 2,
      "hold_until": null,
      "created_at": "2026-06-29T17:12:04Z",
      "updated_at": "2026-06-29T17:15:40Z",
      "items": [
        {
          "market_hash_name": "AK-47 | Redline (Minimal Wear)",
          "price_usd": 14.37,
          "status": "delivered",
          "tradable_at": "2026-07-06T12:00:00Z",
          "return_reason": null,
          "steam_trade_offer_id": "5512345678",
          "steam_trade_offer_finished_at": "2026-06-29T17:15:40Z"
        }
      ]
    }
  ],
  "meta": { "next_cursor": "eyJpZCI6Im9yZF8wMUo5WjNLOFEyIn0=", "per_page": 50 }
}

Коды ошибок

HTTP-статусКодЗначение
401missing_api_key / invalid_api_keyОтсутствует или некорректный API-ключ.
422invalid_requestНекорректные query-параметры (например, limit вне допустимого диапазона).
429rate_limit_exceededСлишком много запросов. Подождите время, указанное в заголовке Retry-After.

Авторизации

Authorization
string
header
обязательно

Send your key as a Bearer token on every request: Authorization: Bearer csb_pub_.... Generate keys in your CSBoard profile.

Параметры запроса

limit
integer
по умолчанию:50

Results per page. 1–100. Default 50.

Требуемый диапазон: 1 <= x <= 100
start_unix_time
integer

Only orders created at or after this Unix timestamp (seconds).

end_unix_time
integer

Only orders created at or before this Unix timestamp (seconds).

status
enum<string>

Filter by order status.

Доступные опции:
completed,
hold,
delivering,
pending,
cancelled,
failed
cursor
string

Keyset cursor from a previous response's meta.next_cursor.

Ответ

A page of orders.

data
object[]
обязательно
meta
object
обязательно