特定商取引法に基づく表記の下書きを保存する
PATCH
/api/v1/settings/legal/commerce
const url = 'https://app.goyoka.com/api/v1/settings/legal/commerce';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"seller_name":"example","representative_name":"example","address":"example","address_display_mode":"example","phone":"example","phone_display_mode":"example","email":"example","additional_costs":"example","payment_methods":["example"],"payment_timing":"example","service_timing":"example","application_period":"example","cancellation_policy":"example","refund_policy":"example","disclosure_request_email":"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/commerce \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "seller_name": "example", "representative_name": "example", "address": "example", "address_display_mode": "example", "phone": "example", "phone_display_mode": "example", "email": "example", "additional_costs": "example", "payment_methods": [ "example" ], "payment_timing": "example", "service_timing": "example", "application_period": "example", "cancellation_policy": "example", "refund_policy": "example", "disclosure_request_email": "example" }'省略した欄は
予約確認メールの
必要なsalon-settings:write
必要な認証
「必要なパラメータ
「 パラメータ 」のヘッダーのパラメータ
「ヘッダーのIdempotency-Key
string
同じ
リクエスト本文必須
「リクエスト本文必須」のメディアタイプapplication/json
object
seller_name
string | null
representative_name
string | null
address
string | null
address_display_mode
string
phone
string | null
phone_display_mode
string
email
string | null
additional_costs
string | null
payment_methods
Array<string>
payment_timing
string | null
service_timing
string | null
application_period
string | null
cancellation_policy
string | null
refund_policy
string | null
disclosure_request_email
string | null
例自動生成
{ "seller_name": "example", "representative_name": "example", "address": "example", "address_display_mode": "example", "phone": "example", "phone_display_mode": "example", "email": "example", "additional_costs": "example", "payment_methods": [ "example" ], "payment_timing": "example", "service_timing": "example", "application_period": "example", "cancellation_policy": "example", "refund_policy": "example", "disclosure_request_email": "example"}レスポンス
「 レスポンス 」の200
「200」の特定商取引法に
メディアタイプapplication/json
object
data
必須
object
kind
必須
string
changed
必須
boolean
published
必須
boolean
revision_id
必須
string | null 形式: uuid
published_version
必須
integer | null
published_at
必須
string | null 形式: date-time
例
{ "data": { "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" }}