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

GET /v1/items

scope

read_items

リクエストパラメーター

名前位置必須説明
limitクエリinteger任意
offsetクエリinteger任意
category_idクエリinteger任意
qクエリstring任意keyword on item name

レスポンスの例

{
"data": [
{
"id": "1",
"sku": "string",
"name": "string",
"status": "active",
"kind": "normal",
"price": {
"amount": 3200,
"currency": "JPY"
},
"inventory": 0,
"category_id": "string",
"main_image": "string",
"created_at": "string",
"updated_at": "string"
}
],
"pagination": {
"limit": 0,
"offset": 0,
"total": 0
}
}

解説

自ショップの公開商品を一覧取得します。q(商品名の部分一致)・category_idlimit/offset で絞り込めます。

エラーレスポンスの例

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

返しうるエラー: 401 / 403