Skip to main content
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": 125,
      "perPage": 50,
      "currentPage": 1,
      "totalPages": 3
    }
  },
  "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 only available when using the datev-rewe-export target system for DATEV Rechnungswesen. For more details, refer to the Data Retrieval section.
The query parameter fiscalYearStartDate is required and must be a valid date.
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 fiscalYearStartDate is required and must be a valid date.
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
fiscalYearStartDate
string
accountCode
string
accountNumber
string
lastModifiedAt
string
rawData
boolean

Response

200 - application/json
meta
object
data
object[]
Last modified on March 20, 2026