コンテンツにスキップ

開催回の待機一覧

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

開催回の待機一覧をcreated_at・entry_id⁠の昇順で返します。全6状態をそのまま返し、mode⁠は待機登録時の方式です。繰り上げ応答のoffered_mode⁠は呼び出した時点の設定なので、mode⁠とは異なる場合があります。連絡先はcustomers:contact⁠の許可がある場合だけcontact⁠に返します。

アーカイブ済み・他店・指定イベントや開催回や予約への帰属違いは404 NOT_FOUND⁠で、EVENT_EDIT_BLOCKED⁠は返しません。

全行をdata⁠に返し、cursor・limit・next_cursor⁠はありません。

SEQUENTIAL⁠は案内時に席を押さえ、BROADCAST⁠は一斉に案内して席を押さえず、受諾時の先着順で確保します。

必要な範囲: events:read

customers:contact があるとメール・電話が入る(会話はメールのみ)。

id
必須
string 形式: uuid
occId
必須
string 形式: uuid

開催回の待機一覧

メディアタイプapplication/json
object
data
必須
Array<object>
object
entry_id
必須
string 形式: uuid
booking_item_id
必須
string 形式: uuid
occurrence_menu_id
必須
string 形式: uuid
status
必須
string
取りうる値: PENDING_CONFIRMATION WAITING OFFERED ACCEPTED EXPIRED CANCELLED
mode
必須

この人が待機登録した時点のEventWaitlistEntry.mode。現在のイベントの設定とは異なる場合がある。

string
取りうる値: SEQUENTIAL BROADCAST
offered_at
必須
string | null 形式: date-time
offer_expires_at
必須
string | null 形式: date-time
created_at
必須
string 形式: date-time
customer
必須
object
id
必須
string 形式: uuid
name
必須
string
120文字以下
contact
必須
object
email
必須
string | null
320文字以下
phone
必須
string | null
32文字以下
例
{
"data": [
{
"status": "PENDING_CONFIRMATION",
"mode": "SEQUENTIAL"
}
]
}

利用できないヘッダ

メディアタイプ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"
}
}