GET
/
accounting
/
trialBalance
cURL
curl --request GET \
  --url https://api.maesn.dev/accounting/trialBalance \
  --header 'X-ACCOUNT-KEY: <x-account-key>' \
  --header 'X-API-KEY: <x-api-key>'
{
  "meta": {
    "warnings": [
      "Field not used by target system"
    ],
    "pagination": {
      "total": 123,
      "perPage": 123,
      "currentPage": 123,
      "totalPages": 123
    }
  },
  "data": [
    {
      "accountCode": "0005",
      "accountName": "Cash",
      "accountNumber": "120000",
      "balance": {
        "amount": 1000,
        "debitCreditIndicator": "DEBIT"
      },
      "createdDate": "2025-06-12T00:00:00Z",
      "monthlyValues": [
        {
          "month": 1,
          "balance": {
            "amount": 200,
            "debitCreditIndicator": "DEBIT"
          }
        },
        {
          "month": 2,
          "balance": {
            "amount": 300,
            "debitCreditIndicator": "DEBIT"
          }
        }
      ],
      "openingBalance": {
        "amount": 500,
        "debitCreditIndicator": "DEBIT"
      },
      "totalCreditAmount": 0,
      "totalDebitAmount": 500,
      "updatedDate": "2025-06-12T00:00:00Z"
    }
  ]
}

Field support per integration

This endpoint is currently available only during the pilot phase of DATEV Rechnungswesen. For details, see the Pilot phase section
The query parameter fiscalYear is required and must be a valid year.
If you’re not using the Interactive Authentication Flow, make sure the query parameter companyId is correctly populated.
Supported filters:
  • accountNumber
Support pagination: trueSupport rawData: true
Supported Response Fields:
accountName
string
accountNumber
string
balance
Balance
monthlyValues
MonthlyValue[]
openingBalance
Balance
totalCreditAmount
number
totalDebitAmount
number
If you’re not using the Interactive Authentication Flow, make sure the query parameters environmentName and companyId are correctly populated. You can obtain these values by using the GET Companies endpoint available under the Authentication section. Please use the id field as the companyId and the environmentId field as the environmentName.
The query parameter fiscalYear is required and must be a valid year.
Supported filters:
  • accountCode
Support pagination: trueSupport rawData: true
Supported Response Fields:
accountCode
string
accountName
string
balance
Balance
totalCreditAmount
number
totalDebitAmount
number

Headers

X-API-KEY
string
required

API key

X-ACCOUNT-KEY
string
required

Account key

Query Parameters

page
number
limit
enum<number>
Available options:
5,
10,
20,
50,
100
companyId
string
environmentName
string
fiscalYear
number
accountCode
string
accountNumber
string
lastModifiedAt
string
rawData
boolean

Response

200 - application/json
meta
object
data
object[]