予約の一覧
GET
/api/v1/bookings
const url = 'https://app.goyoka.com/api/v1/bookings?from=2026-10-01&status=open&limit=50';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://app.goyoka.com/api/v1/bookings?from=2026-10-01&status=open&limit=50' \ --header 'Authorization: Bearer <token>'開始日時の
必要なbooking:read
必要な認証
「必要なパラメータ
「 パラメータ 」のクエリのパラメータ
「クエリのfrom
string 形式: date
例
2026-10-01to
string 形式: date
status
string
cursor
string
limit
integer
レスポンス
「 レスポンス 」の200
「200」の予約の
メディアタイプapplication/json
object
data
必須
Array<object>
object
id
必須
string
status
必須
string
kind
必須
string
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" } ]}400
「400」の利用できない
メディアタイプ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" }}401
「401」の鍵が
メディアタイプ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" }}403
「403」の範囲不足
メディアタイプ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" }}404
「404」の見つからない
メディアタイプ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" }}409
「409」の予約・冪等キーの
メディアタイプ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" }}413
「413」の本文が
メディアタイプ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" }}422
「422」の入力の
メディアタイプ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" }}429
「429」の回数の
メディアタイプ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
固定窓内の
RateLimit-Remaining
integer
固定窓内の
RateLimit-Reset
integer
窓終了までの
Retry-After
integer
再試行までの
500
「500」の内部エラー
メディアタイプ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" }}