コンテンツにスキップ

トッピングの販売状態・残数一覧取得

GET
/topping_conditions/stores/{store_id}

店舗で取り扱うトッピングの販売状態・残数一覧を取得します。

store_id
required
string

店舗ID

Example
1
topping_ids
Array<string>
<= 100 items

トッピングID
カンマ区切りで複数のパラメータを指定できます。

Example
?topping_ids=11,12,13
category_id
string

カテゴリーID

Example
1
updated_from
string format: date-time

更新日時(RFC3339の日付形式)[YYYY-MM-DDThh:mm:ssTZD]
指定日時以降に販売状態・残数が更新されたトッピングを取得します。

Example
2023-10-01T00:00:00+09:00
limit
integer
default: 20 >= 1 <= 100

取得件数

Example
20
sort
string
default: topping_id

ソート順

  • topping_id: トッピングID
  • category_id: カテゴリーID
Example
topping_id
page
integer
default: 1 >= 1

ページ番号

Example
1

OK

Array
ToppingCondition
object
toppingId

トッピングID

string
condition

販売状態

  • orderable: 販売可
  • soldout: 売切
string
Allowed values: orderable soldout
quantity

残数

integer
nullable
Examples
[
{
"toppingId": "1",
"condition": "orderable",
"quantity": 3
},
{
"toppingId": "2",
"condition": "orderable",
"quantity": null
},
{
"toppingId": "3",
"condition": "soldout",
"quantity": 0
},
{
"toppingId": "4",
"condition": "soldout",
"quantity": 2
}
]
Link
string

<前のURI>; rel="prev", <次のURI>; rel="next"

店舗が休止中の場合

object
title
required
string
type
required
string
status
integer
detail
string

指定した店舗が存在しない場合

object
title
required
string
type
required
string
status
integer
detail
string