コンテンツにスキップ

開催回の受付表

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

返すのはCSV文字列ではなく、受付表CSV⁠と同じ内容のJSON行です。連絡先の伏せは行のcontact⁠に働くため、ファイルは管理画面で書き出すか取得行から作ってください。

customer・contact・attendance・payment_status・customer_total_yen⁠は顧客ごとの先頭行、booking_id⁠は各予約の先頭行だけに入り、後続行はnull⁠です。連絡先はcustomers:contact⁠の許可がある場合だけcontact⁠に返します。

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

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

必要な範囲: events:read

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

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

開催回の受付表

メディアタイプapplication/json
object
data
必須
Array<object>
object
occurrence_date
必須
string 形式: date
booking_id
必須
string | null 形式: uuid
customer
必須
object
id
必須
string 形式: uuid
name
必須
string
120文字以下
contact
必須
object
email
必須
string | null
320文字以下
phone
必須
string | null
32文字以下
menu_name
必須
string
provider_name
必須
string | null
120文字以下
starts_at
必須
string 形式: date-time
ends_at
必須
string 形式: date-time
status
必須
string
取りうる値: HELD CONFIRMED WAITLISTED OFFERED CANCELLED
attendance
必須
string | null
取りうる値: UNSET ATTENDED NO_SHOW
payment_status
必須
string | null
取りうる値: NOT_APPLICABLE UNPAID PAID PARTIAL
price_yen
必須
integer
customer_total_yen
必須
integer | null
例
{
"data": [
{
"status": "HELD",
"attendance": "UNSET",
"payment_status": "NOT_APPLICABLE"
}
]
}

利用できないヘッダ

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