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

GET /v1/orders/{id}/items

scope

read_orders

リクエストパラメーター

名前位置必須説明
idパスinteger任意

レスポンスの例

{
"data": [
{
"id": "5001",
"item_id": "1",
"name": "string",
"sku": "string",
"quantity": 2,
"unit_price": {
"amount": 3200,
"currency": "JPY"
},
"total_price": {
"amount": 3200,
"currency": "JPY"
}
}
]
}

解説

注文の明細行(商品名・数量・単価・小計)を取得します。個人情報は含みません。

エラーレスポンスの例

{
"error": {
"code": "insufficient_scope",
"message": "requires scope 'read_orders'",
"request_id": "req_01H..."
}
}

返しうるエラー: 401 / 403 / 404