Skip to content
Taylorz CRM Developers
Esc
↑↓navigate↵open⌘Jpreview

Read the commercial policy

Every money decision reads from here. The revision is what a write must carry back.

GET/api/v1/settings/commercial
Authorization
AuthorizationOAuth2 access token · headerrequired

Authorization-code grant with PKCE. Clients are public and hold no secret. Discovery is published at /.well-known/oauth-authorization-server/api/auth.

Scopes:api.access
Responses
200

The policy and its revision

policyCommercialPolicyrequired
Show properties
accountingMappingsobjectrequired
default: {}
baseCurrencystringrequired
matches ^[A-Z]{3}$ · default: "JPY"
calculationOrderstringrequired
default: "discount_before_tax"
Allowed:discount_before_taxdiscount_after_tax
currenciesobjectrequired
default: {}
currencyScaleintegerrequired
min 0 · max 4 · default: 0
fiscalYearStartMonthintegerrequired
min 1 · max 12 · default: 4
pricesIncludeTaxbooleanrequired
default: false
roundingstringrequired
default: "half_up"
Allowed:half_uphalf_eventoward_zerofloorceil
taxCalculationstringrequired
default: "per_rate_total"
Allowed:per_lineper_rate_total
taxRoundingstringrequired
default: "floor"
Allowed:half_uphalf_eventoward_zerofloorceil
timezonestringrequired
default: "Asia/Tokyo"
revisionintegerrequired
min 1 · max 2147483647
400

The request body, query or parameters were refused

codestringrequired
Allowed:invalid_inputnot_foundconflictforbidden
detailany
errorstringrequired
reasonstring
401

The access token is missing, invalid or revoked

errorstringrequired
403

The tenant's module is off, or the token's scope or the member's role does not permit the action

codestringrequired
Allowed:invalid_inputnot_foundconflictforbidden
detailany
errorstringrequired
reasonstring
404

No such record, or none the caller may read

codestringrequired
Allowed:invalid_inputnot_foundconflictforbidden
detailany
errorstringrequired
reasonstring
409

The operation conflicts with the current state

codestringrequired
Allowed:invalid_inputnot_foundconflictforbidden
detailany
errorstringrequired
reasonstring
413

The request exceeds the route's body limit

errorstringrequired
500

An unexpected failure

errorstringrequired
Request
curl -X GET '/api/v1/api/v1/settings/commercial' \
  -H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
  -H 'Accept: application/json'
Response
{
  "policy": {
    "accountingMappings": {},
    "baseCurrency": "JPY",
    "calculationOrder": "discount_before_tax",
    "currencies": {},
    "currencyScale": 0,
    "fiscalYearStartMonth": 4,
    "pricesIncludeTax": false,
    "rounding": "half_up",
    "taxCalculation": "per_line",
    "taxRounding": "half_up",
    "timezone": "Asia/Tokyo"
  },
  "revision": 1
}

Was this page helpful?