コンテンツにスキップ

イベントのメニュー一覧

GET
/api/v1/events/{id}/menus
curl --request GET \
--url https://app.goyoka.com/api/v1/events/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/menus \
--header 'Authorization: Bearer <token>'

全メニューと箱の出どころを返します。cursor・limit⁠はありません。空箱は行に現れません。書き戻すときにboxes⁠を省略すると空箱と所属を保持します。アーカイブ済みは404⁠です。

必要な範囲: events:read

id
必須
string 形式: uuid

イベントのメニュー一覧

メディアタイプapplication/json
object
data
必須
Array<object>
object
id
必須
string 形式: uuid
service_id
必須
string | null 形式: uuid
name
必須
string
1文字以上 120文字以下
price_yen
必須
integer
<= 2147483647
duration_minutes
必須
integer
>= 1 <= 2147483647
timing_mode
必須
string
取りうる値: FIXED INDIVIDUAL
required
必須
boolean
display_order
必須
integer
>= -2147483648 <= 2147483647
buffer_before_minutes
必須
integer
<= 2147483647
buffer_after_minutes
必須
integer
<= 2147483647
menu_category
必須
object
id
必須
string 形式: uuid
name
必須
string
60文字以下
open_by_default
必須
boolean
sort_order
必須
integer
>= -2147483648 <= 2147483647
parent_id
string | null 形式: uuid
selection_group_id
必須
string | null 形式: uuid
menu_category_source
必須
string
取りうる値: LEDGER EVENT
例
{
"data": [
{
"timing_mode": "FIXED"
}
],
"menu_category_source": "LEDGER"
}

利用できないヘッダ

メディアタイプapplication/json
object
error
必須
object
code
必須
string
message
必須
string
details
object
任意のキー
追加の項目
request_id
必須
string
例自動生成
{
"error": {
"code": "example",
"message": "example",
"details": {
"additionalProperty": "example"
},
"request_id": "example"
}
}

鍵が無い・無効

メディアタイプapplication/json
object
error
必須
object
code
必須
string
message
必須
string
details
object
任意のキー
追加の項目
request_id
必須
string
例自動生成
{
"error": {
"code": "example",
"message": "example",
"details": {
"additionalProperty": "example"
},
"request_id": "example"
}
}

範囲不足

メディアタイプapplication/json
object
error
必須
object
code
必須
string
message
必須
string
details
object
任意のキー
追加の項目
request_id
必須
string
例自動生成
{
"error": {
"code": "example",
"message": "example",
"details": {
"additionalProperty": "example"
},
"request_id": "example"
}
}

見つからない

メディアタイプapplication/json
object
error
必須
object
code
必須
string
message
必須
string
details
object
任意のキー
追加の項目
request_id
必須
string
例自動生成
{
"error": {
"code": "example",
"message": "example",
"details": {
"additionalProperty": "example"
},
"request_id": "example"
}
}

予約・冪等キーの競合

メディアタイプapplication/json
object
error
必須
object
code
必須
string
message
必須
string
details
object
任意のキー
追加の項目
request_id
必須
string
例自動生成
{
"error": {
"code": "example",
"message": "example",
"details": {
"additionalProperty": "example"
},
"request_id": "example"
}
}

本文が1 MiB⁠を超えている

メディアタイプapplication/json
object
error
必須
object
code
必須
string
message
必須
string
details
object
任意のキー
追加の項目
request_id
必須
string
例自動生成
{
"error": {
"code": "example",
"message": "example",
"details": {
"additionalProperty": "example"
},
"request_id": "example"
}
}

入力の検証失敗

メディアタイプapplication/json
object
error
必須
object
code
必須
string
message
必須
string
details
object
任意のキー
追加の項目
request_id
必須
string
例自動生成
{
"error": {
"code": "example",
"message": "example",
"details": {
"additionalProperty": "example"
},
"request_id": "example"
}
}

回数の上限

メディアタイプapplication/json
object
error
必須
object
code
必須
string
message
必須
string
details
object
任意のキー
追加の項目
request_id
必須
string
例自動生成
{
"error": {
"code": "example",
"message": "example",
"details": {
"additionalProperty": "example"
},
"request_id": "example"
}
}
RateLimit-Limit
integer
>= 1

固定窓内の回数上限

RateLimit-Remaining
integer

固定窓内の残り回数

RateLimit-Reset
integer

窓終了までの秒数

Retry-After
integer
>= 1

再試行までの待機秒数

内部エラー

メディアタイプapplication/json
object
error
必須
object
code
必須
string
message
必須
string
details
object
任意のキー
追加の項目
request_id
必須
string
例自動生成
{
"error": {
"code": "example",
"message": "example",
"details": {
"additionalProperty": "example"
},
"request_id": "example"
}
}