コンテンツにスキップ

イベントの公開までの次の一歩

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

イベントを会話で立ち上げるときの道案内です。公開に足りないもの(blockers、events_publish と同じ判定)と、次にお店の人へ聞くこと(next_step の ask・tools・done_when)を返します。

tools のツールで保存してから読み直すと、次の next_step が返ります。公開の準備ができると next_step は公開(events_publish)になります。

optional_checks は公開を止めない見直し(このイベントのメール・申し込みの質問・受付の決め方)です。emails は4種類のメールが標準のままか専用かを示します(中身は events_emails_get)。

アーカイブ済み・他店・不明なイベントは404⁠です。

必要な範囲: events:read

id
必須
string 形式: uuid

イベントの公開までの次の一歩

メディアタイプapplication/json
object
data
必須
object
event_id
必須
string 形式: uuid
title
必須
string
status
必須
string
取りうる値: DRAFT PUBLISHED ENDED CANCELLED
publishable
必須

下書きで、公開に足りないものが無い(events_publish を呼べる)

boolean
blockers
必須

公開に足りないもの。events_publish の 409 EVENT_NOT_PUBLISHABLE と同じ判定です。

Array<object>
object
code
必須
string
取りうる値: NO_MENUS NO_OCCURRENCES ALL_PAST NO_PROVIDER_FOR_INDIVIDUAL
message
必須
string
tools
必須
Array<string>
next_step
必須

次にお店の人へ聞くこと・使うツール・済んだと言える条件。null は足りないものが無く、公開済みのとき。

object
key
必須
string
title
必須
string
ask
必須
string
tools
必須
Array<string>
done_when
必須
string
optional_checks
必須

公開を止めないが、立ち上げのときに見直せること(メール・質問・受付の決め方)。

Array<object | null>

次にお店の人へ聞くこと・使うツール・済んだと言える条件。null は足りないものが無く、公開済みのとき。

object
key
必須
string
title
必須
string
ask
必須
string
tools
必須
Array<string>
done_when
必須
string
public_url
必須

お客様が申し込むページの URL(公開するまでは開けません)

string 形式: uri
listing_note
必須

お客様のイベント一覧に出ない・開催日が無いなどの理由。出ていれば null。

string | null
emails
必須

このイベントのメールが、お店の標準のままか(STANDARD)、このイベント専用か(CUSTOM)。

Array<object>
object
kind
必須
string
取りうる値: BOOKING_CONFIRMATION BOOKING_REMINDER THANK_YOU FOLLOW_UP
mode
必須
string
取りうる値: STANDARD CUSTOM
例
{
"data": {
"status": "DRAFT",
"blockers": [
{
"code": "NO_MENUS"
}
],
"emails": [
{
"kind": "BOOKING_CONFIRMATION",
"mode": "STANDARD"
}
]
}
}

利用できないヘッダ

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