予約規約の下書きと公開前の本文を読む
GET
/api/v1/settings/legal/booking-terms
const url = 'https://app.goyoka.com/api/v1/settings/legal/booking-terms';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/settings/legal/booking-terms \ --header 'Authorization: Bearer <token>'現在の
必要なsalon-settings:read
必要な認証
「必要なレスポンス
「 レスポンス 」の200
「200」の予約規約の
メディアタイプ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
published_version
必須
integer | null
published_at
必須
string | null 形式: date-time
has_unpublished_changes
必須
boolean
missing_fields
必須
Array<string>
preview
必須
object
body
必須
string
content_hash
必須
string
例
{ "data": { "status": { "kind": "SALON_PRIVACY" } }}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" }}