コンテンツにスキップ

予約1件

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

他のお店の ID は 404。

必要な範囲: booking:read

id
必須
string 形式: uuid

予約1件

メディアタイプapplication/json
object
data
必須
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
pending_change
必須
object
expires_at
必須
string 形式: date-time
kind
必須
string
取りうる値: TIME_CHANGE PROVIDER_CHANGE
before
必須
object
starts_at
必須
string 形式: date-time
ends_at
必須
string 形式: date-time
provider_id
必須
string | null 形式: uuid
after
必須
object
starts_at
必須
string 形式: date-time
ends_at
必須
string 形式: date-time
provider_id
必須
string | null 形式: uuid
delivery
必須
string | null
例
{
"data": {
"id": "0191f1c0-8d4e-7a3c-9b1e-2f6d1a3b4c5d",
"status": "PENDING",
"kind": "SESSION",
"start_at": "2026-10-01T10:00:00+09:00",
"pending_change": {
"kind": "TIME_CHANGE"
}
}
}

利用できないヘッダ

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