コンテンツにスキップ

店舗別商品SKU紐づけ取得

GET
/products/{product_id}/shops/{shop_id}/product_classes/{product_class_id}/sku_sets/{product_sku_code}
curl --request GET \
--url 'https://api.smaregi.dev/TARGET-CONTRACT-ID/ec-oms/products/example/shops/example/product_classes/example/sku_sets/example?fields=productClassId%2CshopId%2Cquantity' \
--header 'Authorization: Bearer <token>'

店舗別商品SKU紐づけを取得します。

product_id
required
string
>= 1 characters

商品ID

shop_id
required
string
>= 1 characters

店舗ID

product_class_id
required
string
>= 1 characters

店舗別商品規格ID

product_sku_code
required
string
>= 1 characters

商品SKUコード

fields
Array<string>
>= 1 items unique items
Allowed values: productClassId shopId productId productSkuCode quantity optionCond

取得するフィールドをカンマ区切りで指定します。 指定がない場合すべてのフィールドを取得します。

Example
?fields=productClassId,shopId,quantity

取得成功

Media typeapplication/json
object
productClassId

店舗別商品規格ID

string
>= 1 characters <= 9 characters
shopId

店舗ID

string
>= 1 characters <= 9 characters
productId

商品ID

string
>= 1 characters <= 9 characters
productSkuCode

商品SKUコード

string
>= 1 characters <= 50 characters
quantity

数量

string
>= 1 characters <= 9 characters
optionCond

引き当て条件

string
nullable 0 <= 3000 characters
Examples
Exampledefault
{
"productClassId": "3001",
"shopId": "10",
"productId": "1001",
"productSkuCode": "SKU-001",
"quantity": "2",
"optionCond": "定期購入のみ"
}

Fieldsに指定外の値が設定されている場合

Media typeapplication/json
object
type
required
string
title
required
string
detail
One of:
string
status
integer
Examples
Examplefieldsに指定外の値が設定されている場合
{
"type": "about:blank",
"title": "BadRequest",
"detail": "指定されたfields項目が不正です: {invalid_field}",
"status": 400
}

指定されたIDのリソースが存在しない場合

Media typeapplication/json
object
type
required
string
title
required
string
detail
One of:
string
status
integer
Examples
Example指定したリソースが存在しない場合
{
"type": "about:blank",
"title": "NotFound",
"detail": "指定されたIDのリソースが見つかりません",
"status": 404
}

サーバー内部エラー

Media typeapplication/json
object
type
required
string
title
required
string
detail
One of:
string
status
integer
Examples
Exampledefault
{
"type": "about:blank",
"title": "InternalServerError",
"status": 500
}