Read a persisted business-case instance by its id for the authenticated company.
Loads the fully hydrated business-case aggregate that was previously persisted for the authenticated company: the template id, the company-VAT and fiscal-year context that were in force when the case was booked, the pre-translated display label, the recursive snippet / field tree with the persisted scripted values overlaid, and the comma-separated list of booking numbers already generated for it. Tenant and company are derived from the bearer-token session — they are never accepted from the URL; the supplied <code>businessCaseId</code> is matched against the caller's company so that an id owned by another company surfaces as <code>404</code>. The endpoint is a pure read — idempotent, no side effects. The caller must hold the <code>ACCOUNTING</code> permission on the company in scope.
Request
- Base URL: https://api.klara.ch
- URL: https://api.klara.ch/core/v1/accounting/business-cases/{businessCaseId}
- Auth: one of:
- API key in header X-API-KEY
- HTTP bearer
Path parameters
Numeric primary-key id of the persisted business-case instance to hydrate. Obtain it from a prior booking response (for example <code>POST /core/v1/accounting/bookings</code>) or from a journal listing.
Headers
IETF language tag used to translate the snippet labels and field captions. Examples: <code>de-CH</code>, <code>fr-CH</code>, <code>it-CH</code>, <code>en</code>.
Response
Hydrated business-case aggregate for the requested id.
Example response
{
"businessCaseTemplateId": 101,
"documentId": "null",
"display": "Bürobedarf",
"effectiveCompanyVatDate": "2024-06-15",
"documentDate": "2024-06-15",
"effectiveFiscalYearDate": "2024-06-15",
"fields": {
"PAYMENT": {
"snippetId": 42,
"nestedFields": {}
}
}
}Changes
No recorded changes to this operation across all 1 revision of this API.