Skip to main content
Version: 1.0.0

Retention Policy


Read the GoBD retention rule the archive applies to this company. The rule is fixed by German law and cannot be changed through the API.

GoBD archive availability

These endpoints are available only for companies archived under the German GoBD rules.

Endpoint​

PropertyValue
URLGET /germany/archive/{companyId}/retention-policy
MethodGET
AuthR-Auth: <company-jwt>
Base URLStage Environment https://api-stage.docnova.ai/
Production Environment https://api.docnova.ai/

Example Request​

curl --location '{{baseUrl}}/germany/archive/{{companyId}}/retention-policy' \
--header 'R-Auth: {{companyJwt}}'

Path parameters​

ParameterTypeRequiredDescription
companyIdUUIDYesCompany UUID

Response​

{
"retentionYears": 8,
"rule": "8 Jahre ab Ende des Kalenderjahres der Rechnungsausstellung bzw. des Zugangs, wenn dieses später liegt; Ende am 31.12. des Jahres (Ausstellungs- bzw. Zugangsjahr + 8). Eine gesetzliche Aufbewahrungssperre (Legal Hold) verlängert die Aufbewahrung.",
"legalBasis": "§ 147 Abs. 1 Nr. 4, Abs. 3 AO; § 14b UStG; GoBD",
"changeable": false
}

Response fields​

FieldDescription
retentionYearsStatutory retention period in years, currently 8
ruleHuman-readable rule text (German), as shown to the company
legalBasisStatutory references the rule is based on
changeableAlways false — the rule cannot be edited through the API

Error responses​

HTTPerrorTypeMeaning
400GERMANY_ARCHIVE_NOT_AVAILABLEThe company is not archived under the German GoBD rules
403GERMANY_AUDITOR_ACCESS_EXPIREDCaller's time-limited auditor access (Z1) has ended

See also the general Error Reference for standard authentication and authorization errors shared by every partner endpoint.

Auditor access (Z1)

A time-limited auditor granted direct access to a company (§ 147 Abs. 6 AO) uses the same endpoints as any other company user; access ends automatically at the configured limit, even before the auditor's company membership is removed.