跳转到主要内容
GET
/
orders
/
{id}
Get a single order
curl --request GET \
  --url https://csboard.com/v1/orders/{id} \
  --header 'Authorization: Bearer <token>'
{
  "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"
    }
  ]
}
通过 CSBoard 订单 id 获取单个订单。响应包含完整的逐件商品明细,包括交付状态、退货原因以及 Steam 报价详情。 需要身份验证。 请将密钥作为 Authorization: Bearer csb_pub_... 发送。

路径参数

id
string
必填
CSBoard 订单 id,例如 ord_01J9Z3K8Q2

响应字段

响应是一个 Order 对象,其结构与 GET /v1/orders 中的条目相同:
order_id
string
必填
steam_id
string | null
status
string
必填
可选值:completedholddeliveringpendingcancelledfailed 之一。
custom_id
string | null
currency
string
必填
始终为 "USD"
charged_total_usd
number
必填
item_count
integer
必填
hold_until
datetime | null
created_at
datetime
必填
updated_at
datetime | null
items
OrderItem[]
必填
逐件商品明细。每件商品包含 market_hash_nameprice_usdstatushold | delivering | delivered | returned)、tradable_atreturn_reasonsteam_trade_offer_id 以及 steam_trade_offer_finished_at

示例请求

curl https://csboard.com/v1/orders/ord_01J9Z3K8Q2 \
  -H "Authorization: Bearer csb_pub_..."

示例响应

{
  "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"
    }
  ]
}

错误代码

HTTP 状态码代码含义
401missing_api_key / invalid_api_keyAPI 密钥缺失或无效。
404order_not_found该 id 对应的订单不存在。
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.

路径参数

id
string
必填

CSBoard order id.

响应

The order.

order_id
string
必填
status
enum<string>
必填
可用选项:
completed,
hold,
delivering,
pending,
cancelled,
failed
currency
string
必填
示例:

"USD"

charged_total_usd
number
必填
item_count
integer
必填
created_at
string<date-time>
必填
items
object[]
必填
steam_id
string | null
custom_id
string | null

Your own id, if you set one at purchase time.

hold_until
string<date-time> | null
updated_at
string<date-time> | null