Accounting

Get the accounting configuration of the authenticated company.

Returns the dunning waiting periods configured for the authenticated caller's company together with the canonical compensation-side company URI. Tenant and company are derived from the bearer token — there are no path or query parameters to override them. When the company has no accounting configuration row persisted yet, the downstream service synthesises a default record (<code>id</code> = <code>null</code>, <code>waitingDunningTime</code> = <code>5</code>, <code>dunningWaitingTimeLevelOne</code> / <code>Two</code> / <code>Three</code> = <code>10</code>) so the response shape stays the same. The endpoint is a pure read — idempotent, no side effects. The caller must hold the <code>ACCOUNTING</code> permission on the company in scope.

get/core/v1/accounting/companies/current

Request

  • Base URL: https://api.klara.ch
  • URL: https://api.klara.ch/core/v1/accounting/companies/current
  • Auth: one of:
    • API key in header X-API-KEY
    • HTTP bearer

Response

Accounting configuration of the caller's company.

idinteger

Internal id of the accounting-configuration row. Null when no configuration has been persisted yet for the company.

companyUristring

Canonical compensation-side URI of the company, of the form /luz_compensation/api/{tenant}/companies/{companyId}.

waitingDunningTimeinteger

Number of days to wait after the invoice due date before starting the dunning cycle. Defaults to 5 when no configuration exists yet.

dunningWaitingTimeLevelOneinteger

Days to wait between the level-1 dunning notice and the level-2 escalation. Defaults to 10 when no configuration exists yet.

dunningWaitingTimeLevelTwointeger

Days to wait between the level-2 dunning notice and the level-3 escalation. Defaults to 10 when no configuration exists yet.

dunningWaitingTimeLevelThreeinteger

Days to wait between the level-3 dunning notice and the final escalation. Defaults to 10 when no configuration exists yet.

Example response

{
  "id": 17,
  "companyUri": "/luz_compensation/api/c60d31fa-f335-4957-872a-90b035632081/companies/1",
  "waitingDunningTime": 5,
  "dunningWaitingTimeLevelOne": 10,
  "dunningWaitingTimeLevelTwo": 10,
  "dunningWaitingTimeLevelThree": 10
}

Changes

No recorded changes to this operation across all 1 revision of this API.