Save the commercial policy
Carries the revision the policy was read at; a stale one is refused.
PUT
/api/v1/settings/commercialAuthorization
AuthorizationOAuth2 access token · headerrequiredAuthorization-code grant with PKCE. Clients are public and hold no secret. Discovery is published at /.well-known/oauth-authorization-server/api/auth.
Scopes:
api.accessHeader parameters
Idempotency-KeystringrequiredReplays the first answer for a repeated request
min length 8 · max length 128
Request body
requiredapplication/jsonpolicyobjectrequiredShow propertiesHide properties
accountingMappingsobjectdefault: {}
baseCurrencystringmatches ^[A-Z]{3}$ · default: "JPY"
calculationOrderstringdefault: "discount_before_tax"
Allowed:
discount_before_taxdiscount_after_taxcurrenciesobjectdefault: {}
currencyScaleintegermin 0 · max 4 · default: 0
fiscalYearStartMonthintegermin 1 · max 12 · default: 4
pricesIncludeTaxbooleandefault: false
roundingstringdefault: "half_up"
Allowed:
half_uphalf_eventoward_zerofloorceiltaxCalculationstringdefault: "per_rate_total"
Allowed:
per_lineper_rate_totaltaxRoundingstringdefault: "floor"
Allowed:
half_uphalf_eventoward_zerofloorceiltimezonestringdefault: "Asia/Tokyo"
revisionintegerrequiredmin 1 · max 2147483647
Responses
200
The policy as it now stands
idstringrequiredmin length 1 · max length 255
policyCommercialPolicyrequiredShow propertiesHide properties
accountingMappingsobjectrequireddefault: {}
baseCurrencystringrequiredmatches ^[A-Z]{3}$ · default: "JPY"
calculationOrderstringrequireddefault: "discount_before_tax"
Allowed:
discount_before_taxdiscount_after_taxcurrenciesobjectrequireddefault: {}
currencyScaleintegerrequiredmin 0 · max 4 · default: 0
fiscalYearStartMonthintegerrequiredmin 1 · max 12 · default: 4
pricesIncludeTaxbooleanrequireddefault: false
roundingstringrequireddefault: "half_up"
Allowed:
half_uphalf_eventoward_zerofloorceiltaxCalculationstringrequireddefault: "per_rate_total"
Allowed:
per_lineper_rate_totaltaxRoundingstringrequireddefault: "floor"
Allowed:
half_uphalf_eventoward_zerofloorceiltimezonestringrequireddefault: "Asia/Tokyo"
revisionintegerrequiredmin 1 · max 2147483647
400
The request body, query or parameters were refused
codestringrequiredAllowed:
invalid_inputnot_foundconflictforbiddendetailanyerrorstringrequiredreasonstring401
The access token is missing, invalid or revoked
errorstringrequired403
The tenant's module is off, or the token's scope or the member's role does not permit the action
codestringrequiredAllowed:
invalid_inputnot_foundconflictforbiddendetailanyerrorstringrequiredreasonstring404
No such record, or none the caller may read
codestringrequiredAllowed:
invalid_inputnot_foundconflictforbiddendetailanyerrorstringrequiredreasonstring409
The operation conflicts with the current state
codestringrequiredAllowed:
invalid_inputnot_foundconflictforbiddendetailanyerrorstringrequiredreasonstring413
The request exceeds the route's body limit
errorstringrequired500
An unexpected failure
errorstringrequired