Save the commercial policy
Carries the revision the policy was read at; a stale one is refused.
PUT
/api/v1/settings/commercial認証
AuthorizationOAuth2 アクセストークン · header必須Authorization-code grant with PKCE. Clients are public and hold no secret. Discovery is published at /.well-known/oauth-authorization-server/api/auth.
スコープ:
api.accessヘッダーパラメーター
Idempotency-Keystring必須Replays the first answer for a repeated request
最小長 8 · 最大長 128
リクエストボディ
必須application/jsonpolicyobject必須プロパティを表示プロパティを非表示
accountingMappingsobjectデフォルト: {}
baseCurrencystring^[A-Z]{3}$ に一致 · デフォルト: "JPY"
calculationOrderstringデフォルト: "discount_before_tax"
許可される値:
discount_before_taxdiscount_after_taxcurrenciesobjectデフォルト: {}
currencyScaleinteger最小 0 · 最大 4 · デフォルト: 0
fiscalYearStartMonthinteger最小 1 · 最大 12 · デフォルト: 4
pricesIncludeTaxbooleanデフォルト: false
roundingstringデフォルト: "half_up"
許可される値:
half_uphalf_eventoward_zerofloorceiltaxCalculationstringデフォルト: "per_rate_total"
許可される値:
per_lineper_rate_totaltaxRoundingstringデフォルト: "floor"
許可される値:
half_uphalf_eventoward_zerofloorceiltimezonestringデフォルト: "Asia/Tokyo"
revisioninteger必須最小 1 · 最大 2147483647
レスポンス
200
The policy as it now stands
idstring必須最小長 1 · 最大長 255
policyCommercialPolicy必須プロパティを表示プロパティを非表示
accountingMappingsobject必須デフォルト: {}
baseCurrencystring必須^[A-Z]{3}$ に一致 · デフォルト: "JPY"
calculationOrderstring必須デフォルト: "discount_before_tax"
許可される値:
discount_before_taxdiscount_after_taxcurrenciesobject必須デフォルト: {}
currencyScaleinteger必須最小 0 · 最大 4 · デフォルト: 0
fiscalYearStartMonthinteger必須最小 1 · 最大 12 · デフォルト: 4
pricesIncludeTaxboolean必須デフォルト: false
roundingstring必須デフォルト: "half_up"
許可される値:
half_uphalf_eventoward_zerofloorceiltaxCalculationstring必須デフォルト: "per_rate_total"
許可される値:
per_lineper_rate_totaltaxRoundingstring必須デフォルト: "floor"
許可される値:
half_uphalf_eventoward_zerofloorceiltimezonestring必須デフォルト: "Asia/Tokyo"
revisioninteger必須最小 1 · 最大 2147483647
400
The request body, query or parameters were refused
codestring必須許可される値:
invalid_inputnot_foundconflictforbiddendetailanyerrorstring必須reasonstring401
The access token is missing, invalid or revoked
errorstring必須403
The tenant's module is off, or the token's scope or the member's role does not permit the action
codestring必須許可される値:
invalid_inputnot_foundconflictforbiddendetailanyerrorstring必須reasonstring404
No such record, or none the caller may read
codestring必須許可される値:
invalid_inputnot_foundconflictforbiddendetailanyerrorstring必須reasonstring409
The operation conflicts with the current state
codestring必須許可される値:
invalid_inputnot_foundconflictforbiddendetailanyerrorstring必須reasonstring413
The request exceeds the route's body limit
errorstring必須500
An unexpected failure
errorstring必須