Skip to content

API reference

Update the DATEV settings

Settings API

PUT/v1/datev-settings

Saves the DATEV settings as a new, immutable version. Earlier versions are never edited. The body has the same shape the export uses. Only a signed-in person may call this, as for /v1/validation-policy. An API key is refused with 401 session_required. The new version records the person as createdBy.

Request body

application/json, required

  • beraterNummerintegerRequired

    The tax advisor number (Beraternummer), from 1001 to 9999999. Field 11 of the EXTF header.

  • mandantenNummerintegerRequired

    The client number (Mandantennummer), from 1 to 99999. Field 12 of the EXTF header.

  • fiscalYearStartstringRequired

    The first day of the fiscal year, as MM-DD. It must be a day that exists in every year, so 02-29 is not allowed. The year comes from each invoice's date: the fiscal year that contains it. Used for field 13 of the EXTF header.

  • sachkontenlaengeintegerRequired

    The length of general ledger account numbers (Sachkontenlänge), from 4 to 8. Field 14 of the EXTF header. It must match the client's setting in DATEV.

  • kontenrahmenstringRequired

    The chart of accounts the customer's accounts belong to: SKR03 or SKR04. Field 27 of the EXTF header. It does not choose any account.

    One of SKR03, SKR04.
  • roundingAccountstring

    The account for a rounding difference of one cent between an invoice's total and its VAT breakdown. When it is not set, the export refuses such an invoice. A difference of more than one cent is always refused.

  • sentobject

    Accounts for sent invoices: the debtor account, and the revenue account for each VAT category and rate.

    Show 2 child fields
    • partnerAccountstringRequired

      A DATEV account number: 1 to 9 digits, not all zeros.

    • accountsarray of objectRequired
      Show 4 child fields
      • categoryCodestringRequired

        The VAT category code (BT-118), exactly as the invoice states it.

      • percentstringRequired

        The VAT category rate (BT-119), as the invoice states it, with at most two decimal places. Use 0 for a category that has no rate.

      • accountstringRequired

        A DATEV account number: 1 to 9 digits, not all zeros.

      • buSchluesselstringRequired

        The DATEV tax key (BU-Schlüssel), 1 to 4 digits. Leave it empty when the account itself carries the tax treatment. The customer sets this value; it is never assumed.

  • receivedobject

    Accounts for received invoices: the creditor account, and the expense account for each VAT category and rate.

    Show 2 child fields
    • partnerAccountstringRequired

      A DATEV account number: 1 to 9 digits, not all zeros.

    • accountsarray of objectRequired
      Show 4 child fields
      • categoryCodestringRequired

        The VAT category code (BT-118), exactly as the invoice states it.

      • percentstringRequired

        The VAT category rate (BT-119), as the invoice states it, with at most two decimal places. Use 0 for a category that has no rate.

      • accountstringRequired

        A DATEV account number: 1 to 9 digits, not all zeros.

      • buSchluesselstringRequired

        The DATEV tax key (BU-Schlüssel), 1 to 4 digits. Leave it empty when the account itself carries the tax treatment. The customer sets this value; it is never assumed.

Response

A 200 answer carries these fields.

  • versionintegerRequired

    Starts at 1 and counts up per company.

  • settingsobjectRequired

    A company's DATEV settings, saved in the console. The API checks them when they are saved, and the engine uses them for DATEV exports. Every account belongs to the customer, so no field has a default. Value ranges follow DATEV's own description of the EXTF format.

    Show 8 child fields
    • beraterNummerintegerRequired

      The tax advisor number (Beraternummer), from 1001 to 9999999. Field 11 of the EXTF header.

    • mandantenNummerintegerRequired

      The client number (Mandantennummer), from 1 to 99999. Field 12 of the EXTF header.

    • fiscalYearStartstringRequired

      The first day of the fiscal year, as MM-DD. It must be a day that exists in every year, so 02-29 is not allowed. The year comes from each invoice's date: the fiscal year that contains it. Used for field 13 of the EXTF header.

    • sachkontenlaengeintegerRequired

      The length of general ledger account numbers (Sachkontenlänge), from 4 to 8. Field 14 of the EXTF header. It must match the client's setting in DATEV.

    • kontenrahmenstringRequired

      The chart of accounts the customer's accounts belong to: SKR03 or SKR04. Field 27 of the EXTF header. It does not choose any account.

      One of SKR03, SKR04.
    • roundingAccountstring

      The account for a rounding difference of one cent between an invoice's total and its VAT breakdown. When it is not set, the export refuses such an invoice. A difference of more than one cent is always refused.

    • sentobject

      Accounts for sent invoices: the debtor account, and the revenue account for each VAT category and rate.

      Show 2 child fields
      • partnerAccountstringRequired

        A DATEV account number: 1 to 9 digits, not all zeros.

      • accountsarray of objectRequired
        Show 4 child fields
        • categoryCodestringRequired

          The VAT category code (BT-118), exactly as the invoice states it.

        • percentstringRequired

          The VAT category rate (BT-119), as the invoice states it, with at most two decimal places. Use 0 for a category that has no rate.

        • accountstringRequired

          A DATEV account number: 1 to 9 digits, not all zeros.

        • buSchluesselstringRequired

          The DATEV tax key (BU-Schlüssel), 1 to 4 digits. Leave it empty when the account itself carries the tax treatment. The customer sets this value; it is never assumed.

    • receivedobject

      Accounts for received invoices: the creditor account, and the expense account for each VAT category and rate.

      Show 2 child fields
      • partnerAccountstringRequired

        A DATEV account number: 1 to 9 digits, not all zeros.

      • accountsarray of objectRequired
        Show 4 child fields
        • categoryCodestringRequired

          The VAT category code (BT-118), exactly as the invoice states it.

        • percentstringRequired

          The VAT category rate (BT-119), as the invoice states it, with at most two decimal places. Use 0 for a category that has no rate.

        • accountstringRequired

          A DATEV account number: 1 to 9 digits, not all zeros.

        • buSchluesselstringRequired

          The DATEV tax key (BU-Schlüssel), 1 to 4 digits. Leave it empty when the account itself carries the tax treatment. The customer sets this value; it is never assumed.

  • createdAtstring (date-time)Required
  • createdBystring (uuid)Required

    The signed-in person who saved it. Never null, because there are no default settings.

Status codes

Status Meaning
200 The new version, which is now current.
400 The settings were refused (invalid_datev_settings). The message names the field. Nothing was changed.
401 No usable credential was sent (invalid_credentials), or an API key was used (session_required).
PUT/v1/datev-settings
Example
curl -X PUT https://api.certinvo.com/v1/datev-settings \
  -H "Authorization: Bearer $CERTINVO_API_KEY" \
  -H "Content-Type: application/json" \
  --data-binary @body.json
import { readFile } from 'node:fs/promises'

const response = await fetch(`https://api.certinvo.com/v1/datev-settings`, {
  method: 'PUT',
  headers: {
    Authorization: `Bearer ${process.env.CERTINVO_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: await readFile('body.json'),
})
console.log(response.status, await response.json())
import os

import requests

response = requests.put(
    "https://api.certinvo.com/v1/datev-settings",
    headers={"Authorization": f"Bearer {os.environ['CERTINVO_API_KEY']}", "Content-Type": "application/json"},
    data=open("body.json", "rb"),
)
print(response.status_code, response.text)
200
application/json
{
  "version": 0,
  "settings": {
    "beraterNummer": 0,
    "mandantenNummer": 0,
    "fiscalYearStart": "string",
    "sachkontenlaenge": 0,
    "kontenrahmen": "SKR03",
    "roundingAccount": "string",
    "sent": {
      "partnerAccount": "string",
      "accounts": [
        {
          "categoryCode": "string",
          "percent": "string",
          "account": "string",
          "buSchluessel": "string"
        }
      ]
    },
    "received": {
      "partnerAccount": "string",
      "accounts": [
        {
          "categoryCode": "string",
          "percent": "string",
          "account": "string",
          "buSchluessel": "string"
        }
      ]
    }
  },
  "createdAt": "2026-09-17T09:30:00Z",
  "createdBy": "3f0c2a5e-8d1b-4c7a-9e2f-6b5d4a3c2b1a"
}
Success response
PUT
/v1/datev-settings
Update the DATEV settings
All
›AuthenticationRequiredBearerAuth

Provide your API key in the Authorization: Bearer <key> header. Keys are stored locally in your browser.

›Headers2
›Bodyapplication/json
›Code Snippet
curl -X PUT "https://api.certinvo.com/v1/datev-settings" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "beraterNummer": 0,
  "mandantenNummer": 0,
  "fiscalYearStart": "string",
  "sachkontenlaenge": 0,
  "kontenrahmen": "SKR03",
  "roundingAccount": "string",
  "sent": {
    "partnerAccount": "str...'
Response

No request sent yet

Configure parameters and click Send to view the response.

Navigation

Type to search…

↑↓ navigate↵ selectEsc close