予約規約の下書きを保存する
const url = 'https://app.goyoka.com/api/v1/settings/legal/booking-terms';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"free_cancel_value":1,"free_cancel_unit":"example","late_cancel_fee_kind":"example","late_cancel_percentage":1,"late_cancel_fixed_yen":1,"no_show_fee_kind":"example","no_show_percentage":1,"no_show_fixed_yen":1,"event_cancel_separate":true,"event_free_cancel_value":1,"event_free_cancel_unit":"example","event_late_cancel_fee_kind":"example","event_late_cancel_percentage":1,"event_late_cancel_fixed_yen":1,"event_no_show_fee_kind":"example","event_no_show_percentage":1,"event_no_show_fixed_yen":1,"reschedule_deadline_hours":1,"reschedule_max_count":1,"application_note":"example","cancellation_note":"example","no_show_note":"example","salon_cancellation_note":"example","lateness_note":"example","refund_note":"example","custom_notes":"example","disclaimer_industries":["example"]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://app.goyoka.com/api/v1/settings/legal/booking-terms \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "free_cancel_value": 1, "free_cancel_unit": "example", "late_cancel_fee_kind": "example", "late_cancel_percentage": 1, "late_cancel_fixed_yen": 1, "no_show_fee_kind": "example", "no_show_percentage": 1, "no_show_fixed_yen": 1, "event_cancel_separate": true, "event_free_cancel_value": 1, "event_free_cancel_unit": "example", "event_late_cancel_fee_kind": "example", "event_late_cancel_percentage": 1, "event_late_cancel_fixed_yen": 1, "event_no_show_fee_kind": "example", "event_no_show_percentage": 1, "event_no_show_fixed_yen": 1, "reschedule_deadline_hours": 1, "reschedule_max_count": 1, "application_note": "example", "cancellation_note": "example", "no_show_note": "example", "salon_cancellation_note": "example", "lateness_note": "example", "refund_note": "example", "custom_notes": "example", "disclaimer_industries": [ "example" ] }'省略した欄は
予約確認メールの
必要なsalon-settings:write
必要な認証
「必要なパラメータ
「 パラメータ 」のヘッダーのパラメータ
「ヘッダーの同じ
リクエスト本文必須
「リクエスト本文必須」のobject
例自動生成
{ "free_cancel_value": 1, "free_cancel_unit": "example", "late_cancel_fee_kind": "example", "late_cancel_percentage": 1, "late_cancel_fixed_yen": 1, "no_show_fee_kind": "example", "no_show_percentage": 1, "no_show_fixed_yen": 1, "event_cancel_separate": true, "event_free_cancel_value": 1, "event_free_cancel_unit": "example", "event_late_cancel_fee_kind": "example", "event_late_cancel_percentage": 1, "event_late_cancel_fixed_yen": 1, "event_no_show_fee_kind": "example", "event_no_show_percentage": 1, "event_no_show_fixed_yen": 1, "reschedule_deadline_hours": 1, "reschedule_max_count": 1, "application_note": "example", "cancellation_note": "example", "no_show_note": "example", "salon_cancellation_note": "example", "lateness_note": "example", "refund_note": "example", "custom_notes": "example", "disclaimer_industries": [ "example" ]}レスポンス
「 レスポンス 」の200
「200」の予約規約の
object
object
例
{ "data": { "kind": "SALON_PRIVACY" }}400
「400」の利用できない
object
object
object
例自動生成
{ "error": { "code": "example", "message": "example", "details": { "additionalProperty": "example" }, "request_id": "example" }}401
「401」の鍵が
object
object
object
例自動生成
{ "error": { "code": "example", "message": "example", "details": { "additionalProperty": "example" }, "request_id": "example" }}403
「403」の範囲不足
object
object
object
例自動生成
{ "error": { "code": "example", "message": "example", "details": { "additionalProperty": "example" }, "request_id": "example" }}404
「404」の見つからない
object
object
object
例自動生成
{ "error": { "code": "example", "message": "example", "details": { "additionalProperty": "example" }, "request_id": "example" }}409
「409」の予約・冪等キーの
object
object
object
例自動生成
{ "error": { "code": "example", "message": "example", "details": { "additionalProperty": "example" }, "request_id": "example" }}413
「413」の本文が
object
object
object
例自動生成
{ "error": { "code": "example", "message": "example", "details": { "additionalProperty": "example" }, "request_id": "example" }}422
「422」の入力の
object
object
object
例自動生成
{ "error": { "code": "example", "message": "example", "details": { "additionalProperty": "example" }, "request_id": "example" }}429
「429」の回数の
object
object
object
例自動生成
{ "error": { "code": "example", "message": "example", "details": { "additionalProperty": "example" }, "request_id": "example" }}ヘッダー
「ヘッダー」の固定窓内の
固定窓内の
窓終了までの
再試行までの
500
「500」の内部エラー
object
object
object
例自動生成
{ "error": { "code": "example", "message": "example", "details": { "additionalProperty": "example" }, "request_id": "example" }}