コンテンツにスキップ

予約の一覧

GET
/api/v1/bookings
curl --request GET \
--url 'https://app.goyoka.com/api/v1/bookings?from=2026-10-01&status=open&limit=50' \
--header 'Authorization: Bearer <token>'

開始日時の昇順。from/to はお店のタイムゾーンで解釈し、status は open(進行中)・cancelled・done・all。provider_id⁠とprovider_chosen_by_customer⁠を返し、担当者の公開名はproviders_list⁠で引けます。

必要な範囲: booking:read

from
string 形式: date
例
2026-10-01
to
string 形式: date
status
string
既定値: open
取りうる値: open cancelled done all
cursor
string
limit
integer
既定値: 50 >= 1 <= 200

予約の一覧

メディアタイプapplication/json
object
data
必須
Array<object>
object
id
必須
string
status
必須
string
取りうる値: PENDING AWAITING_APPROVAL APPROVED_PENDING_NOTICE CONFIRMED COMPLETED CANCELLED WITHDRAWN DECLINED EXPIRED
kind
必須
string
取りうる値: SESSION EVENT
start_at
必須

ISO 8601、オフセット付き

string 形式: date-time
end_at
必須
string 形式: date-time
total_minutes
必須
integer
total_price_yen
必須
integer
source
必須
string
provider_id
必須
string | null 形式: uuid
provider_chosen_by_customer
必須
boolean
customer
必須
object
id
必須
string
name
必須
string
items
必須
Array<object>
object
service_name
必須
string
quantity
必須
integer
created_at
必須
string 形式: date-time
next_cursor
必須
string | null
例
{
"data": [
{
"id": "0191f1c0-8d4e-7a3c-9b1e-2f6d1a3b4c5d",
"status": "PENDING",
"kind": "SESSION",
"start_at": "2026-10-01T10:00:00+09:00"
}
]
}

利用できないヘッダ

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