コンテンツにスキップ

予約規約の下書きと公開前の本文を読む

GET
/api/v1/settings/legal/booking-terms
curl --request GET \
--url https://app.goyoka.com/api/v1/settings/legal/booking-terms \
--header 'Authorization: Bearer <token>'

現在のお店の保存値を読みます。下書き行や初版を自動作成しません。status⁠は公開版番号・公開日時・未公開の変更・公開に足りない欄を表します。既存の同意記録と予約確認メールの版固定URL⁠は変えません。 draft⁠は保存値、preview⁠は公開予定本文と本文+構造化データのcanonical content_hash⁠です。構造化データ自体は返しません。公開前にGET⁠で本文を確認し、そのhash⁠をexpected_content_hash⁠へ渡してください。公開にはlegal:publish⁠が要ります。

必要な範囲: salon-settings:read

予約規約の下書きと公開前の本文を読む

メディアタイプapplication/json
object
data
必須
object
draft
必須
object
free_cancel_value
必須
number | null
free_cancel_unit
必須
string | null
late_cancel_fee_kind
必須
string
late_cancel_percentage
必須
number | null
late_cancel_fixed_yen
必須
number | null
no_show_fee_kind
必須
string
no_show_percentage
必須
number | null
no_show_fixed_yen
必須
number | null
event_cancel_separate
必須
boolean
event_free_cancel_value
必須
number | null
event_free_cancel_unit
必須
string | null
event_late_cancel_fee_kind
必須
string
event_late_cancel_percentage
必須
number | null
event_late_cancel_fixed_yen
必須
number | null
event_no_show_fee_kind
必須
string
event_no_show_percentage
必須
number | null
event_no_show_fixed_yen
必須
number | null
reschedule_deadline_hours
必須
number | null
reschedule_max_count
必須
number | null
application_note
必須
string | null
cancellation_note
必須
string | null
no_show_note
必須
string | null
salon_cancellation_note
必須
string | null
lateness_note
必須
string | null
refund_note
必須
string | null
custom_notes
必須
string | null
disclaimer_industries
必須
Array<string>
status
必須
object
kind
必須
string
取りうる値: SALON_PRIVACY BOOKING_TERMS TOKUSHO
published_version
必須
integer | null
> 0
published_at
必須
string | null 形式: date-time
has_unpublished_changes
必須
boolean
missing_fields
必須
Array<string>
preview
必須
object
body
必須
string
content_hash
必須
string
/^[0-9a-f]{64}$/
例
{
"data": {
"status": {
"kind": "SALON_PRIVACY"
}
}
}

利用できないヘッダ

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