GET /v1/items/{id}/categories
scope
read_items
リクエストパラメーター
| 名前 | 位置 | 型 | 必須 | 説明 |
|---|---|---|---|---|
id | パス | integer | 任意 |
レスポンスの例
{
"data": [
{
"id": "1",
"parent_id": "string",
"name": "string",
"status": "active",
"sort": 0
}
]
}
解説
指定商品が属するカテゴリを配列で返します。
エラーレスポンスの例
{
"error": {
"code": "insufficient_scope",
"message": "requires scope 'read_orders'",
"request_id": "req_01H..."
}
}
返しうるエラー: 401 / 403 / 404