Hydrate a business case from a template id for the authenticated company.
This operation remains available until <b>2027-08-14</b> and is removed after that date. Use <code>GET /core/v1/accounting/business-cases</code> instead.<br/><br/>Loads the fully hydrated business-case aggregate the booking form needs: the template id, the company-VAT and fiscal-year context resolved from the optional date filters, the pre-translated display label, and the recursive snippet / field tree. When <code>dateForFilteringFiscalYear</code> is supplied it drives the fiscal-year resolution; otherwise <code>dateForFilteringCompanyVat</code> is used; otherwise the downstream service resolves the fiscal year that covers today. Tenant and company are derived from the bearer-token session — they are never accepted from the URL. 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/latest/accounting/business-cases
- Auth: one of:
- API key in header X-API-KEY
- HTTP bearer
Query parameters
Numeric id of the business-case template to hydrate. Obtain it from <code>GET /core/latest/accounting/companies/current/business-case-templates</code>.
ISO date (<code>yyyy-MM-dd</code>) used to resolve the company-VAT regime applicable to the business case. Used as the fallback for <code>dateForFilteringFiscalYear</code> when that is omitted.
ISO date (<code>yyyy-MM-dd</code>) used to resolve the fiscal year that hydrates the business case. When omitted, falls back to <code>dateForFilteringCompanyVat</code>; when both are omitted the downstream service resolves the fiscal year that covers today.
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 template.
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.