メインコンテンツまでスキップ

GET /v1/customers/{id}/orders

scope

read_customers

リクエストパラメーター

名前位置必須説明
idパスstring必須対象のリソース ID
limitクエリinteger任意1 回に返す件数(1〜100)。既定 20
offsetクエリinteger任意取得を開始する位置(0 始まり)。⚠️ 走査の途中でデータが更新されると取りこぼす。注文の増分取得には after_idupdated_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