GET /v1/customers/{id}/orders
scope
read_customers
リクエストパラメーター
| 名前 | 位置 | 型 | 必須 | 説明 |
|---|---|---|---|---|
id | パス | string | 必須 | 対象のリソース ID |
limit | クエリ | integer | 任意 | 1 回に返す件数(1〜100)。既定 20 |
offset | クエリ | integer | 任意 | 取得を開始する位置(0 始まり)。⚠️ 走査の途中でデータが更新されると取りこぼす。注文の増分取得には after_id と updated_since を使ってください |
レスポンスの例
{
"data": [
{
"id": "1001",
"ordered_at": "2026-06-01T03:00:00Z",
"updated_at": "2026-06-01T03:30:00Z",
"status": "init",
"payment_method": "card",
"total": {
"amount": 3200,
"currency": "JPY"
},
"is_subscription": true,
"inflow_route": {
"id": "12",
"code": "gift-quick",
"name": "ギフトクイックURL"
},
"gift_status": "none",
"gift_source_order_id": "1000"
}
],
"pagination": {
"limit": 0,
"offset": 0,
"total": 0
}
}
解説
指定顧客の注文ヘッダを一覧取得します。
エラーレスポンスの例
{
"error": {
"code": "insufficient_scope",
"message": "requires scope 'read_customers'",
"request_id": "req_01H..."
}
}
返しうるエラー: 401 / 403 / 404