交易
GET /v1/orders — 列出您的购买历史
使用键集分页翻阅您的 CSBoard 购买历史。可按时间区间和状态过滤;每个订单包含逐件商品的交付详情。
GET
List purchase history
orders 端点返回您的购买历史,按时间倒序排列,使用键集分页。可按时间窗口和状态过滤,然后通过将
meta.next_cursor 作为 cursor 传回,遍历更早的页面。每个订单都附带逐件商品明细及其交付状态。
需要身份验证。 请将密钥作为 Authorization: Bearer csb_pub_... 发送。
查询参数
每页结果数。最小
1,最大 100。仅返回在该 Unix 时间戳(秒)当时或之后创建的订单。
仅返回在该 Unix 时间戳(秒)当时或之前创建的订单。
按订单状态过滤。可选值:
completed、hold、delivering、pending、cancelled、failed 之一。来自上次响应中
meta.next_cursor 的键集游标。传入以获取下一页。响应字段
本页订单数组。
示例请求
示例响应
错误代码
| HTTP 状态码 | 代码 | 含义 |
|---|---|---|
| 401 | missing_api_key / invalid_api_key | API 密钥缺失或无效。 |
| 422 | invalid_request | 查询参数无效(例如 limit 超出范围)。 |
| 429 | rate_limit_exceeded | 请求过多。请按照 Retry-After 响应头中的秒数退避。 |
授权
Send your key as a Bearer token on every request: Authorization: Bearer csb_pub_.... Generate keys in your CSBoard profile.
查询参数
Results per page. 1–100. Default 50.
必填范围:
1 <= x <= 100Only orders created at or after this Unix timestamp (seconds).
Only orders created at or before this Unix timestamp (seconds).
Filter by order status.
可用选项:
completed, hold, delivering, pending, cancelled, failed Keyset cursor from a previous response's meta.next_cursor.