curl --request POST \
--url https://api.maesn.dev/accounting/journalEntries/bulk \
--header 'Content-Type: application/json' \
--header 'X-ACCOUNT-KEY: <x-account-key>' \
--header 'X-API-KEY: <x-api-key>' \
--data '
{
"accountNumberLength": "4",
"chartOfAccount": "SKR03",
"entries": [
{
"accountId": "d1bfd23-517d-4ec6-b7d4-56f86c7cf246",
"accountingPeriodId": "2025-06",
"currency": "EUR",
"debitCreditIndicator": "DEBIT",
"description": "Invoice-3486 payment for services",
"documentId": "b5e624e5-fb9e-4836-a443-87a3820f5b48",
"dueDate": "2021-01-01T00:00:00Z",
"exchangeRate": "1,2045",
"journalLineItems": [
{
"accountId": "94fdb7fd-13ae-47a6-8a2a-000e6ddc60d9",
"accountNumber": 70001,
"currency": "EUR",
"customerId": "782d89b56-13ae-47a6-8a2a-45e6ddc50d9",
"description": "Uitgesteld 21600001 Kantoor 06-2025",
"dimensions": [
{
"id": "efa82f42-fd85-11e1-a21f-0800200c9a33",
"categoryName": "CostCenter",
"name": "Material/Waren"
}
],
"discountAmount": 12.12,
"documentNumber": "123456789",
"exchangeRate": 1,
"supplierId": "998933b56-13ae-47a6-8a32a-45e6ddc50d9",
"taxRate": {
"id": "1895b05b-38a6-4a6a-9653-166389894350",
"code": "03",
"name": "Tax19",
"taxRatePercentage": "19"
},
"thirdPartyCode": "112233",
"totalGrossAmount": 1190,
"totalNetAmount": 1000,
"totalTaxAmount": 190
},
{
"accountId": "94fdb7fd-13ae-47a6-8a2a-000e6ddc60d9",
"accountNumber": 1200,
"currency": "EUR",
"customerId": "782d89b56-13ae-47a6-8a2a-45e6ddc50d9",
"description": "Uitgesteld 21600001 Kantoor 06-2025",
"dimensions": [
{
"id": "efa82f42-fd85-11e1-a21f-0800200c9a33",
"categoryName": "CostCenter",
"name": "Material/Waren"
}
],
"discountAmount": 12.12,
"documentNumber": "123456789",
"exchangeRate": 1,
"supplierId": "998933b56-13ae-47a6-8a32a-45e6ddc50d9",
"taxRate": {
"id": "1895b05b-38a6-4a6a-9653-166389894350",
"code": "03",
"name": "Tax19",
"taxRatePercentage": "19"
},
"thirdPartyCode": "112233",
"totalGrossAmount": -1190,
"totalNetAmount": -1000,
"totalTaxAmount": -190
}
],
"journalCode": "60",
"journalType": "FIN",
"number ": "21900030",
"transactionDate": "2025-06-01T00:00:00Z"
}
],
"fiscalYearStartDate": "2025-01-01"
}
'{
"accountNumberLength": "4",
"chartOfAccount": "SKR03",
"createdDate": "2025-06-01T00:00:00Z",
"entries": [
{
"accountId": "d1bfd23-517d-4ec6-b7d4-56f86c7cf246",
"accountingPeriodId": "2025-06",
"currency": "EUR",
"createdDate": "2025-06-01T00:00:00Z",
"debitCreditIndicator": "DEBIT",
"description": "Invoice-3486 payment for services",
"documentId": "b5e624e5-fb9e-4836-a443-87a3820f5b48",
"dueDate": "2021-01-01T00:00:00Z",
"exchangeRate": "1,2045",
"journalLineItems": [
{
"accountId": "94fdb7fd-13ae-47a6-8a2a-000e6ddc60d9",
"accountNumber": 70001,
"currency": "EUR",
"createdDate": "2025-06-01T00:00:00Z",
"customerId": "782d89b56-13ae-47a6-8a2a-45e6ddc50d9",
"description": "Uitgesteld 21600001 Kantoor 06-2025",
"dimensions": [
{
"id": "efa82f42-fd85-11e1-a21f-0800200c9a33",
"categoryName": "CostCenter",
"name": "Material/Waren"
}
],
"discountAmount": 12.12,
"documentNumber": "123456789",
"exchangeRate": 1,
"supplierId": "998933b56-13ae-47a6-8a32a-45e6ddc50d9",
"taxRate": {
"id": "1895b05b-38a6-4a6a-9653-166389894350",
"code": "03",
"name": "Tax19",
"taxRatePercentage": "19"
},
"thirdPartyCode": "112233",
"totalGrossAmount": 1190,
"totalNetAmount": 1000,
"totalTaxAmount": 190,
"updatedDate": "2025-06-01T00:00:00Z"
},
{
"accountId": "94fdb7fd-13ae-47a6-8a2a-000e6ddc60d9",
"accountNumber": 1200,
"currency": "EUR",
"createdDate": "2025-06-01T00:00:00Z",
"customerId": "782d89b56-13ae-47a6-8a2a-45e6ddc50d9",
"description": "Uitgesteld 21600001 Kantoor 06-2025",
"dimensions": [
{
"id": "efa82f42-fd85-11e1-a21f-0800200c9a33",
"categoryName": "CostCenter",
"name": "Material/Waren"
}
],
"discountAmount": 12.12,
"documentNumber": "123456789",
"exchangeRate": 1,
"supplierId": "998933b56-13ae-47a6-8a32a-45e6ddc50d9",
"taxRate": {
"id": "1895b05b-38a6-4a6a-9653-166389894350",
"code": "03",
"name": "Tax19",
"taxRatePercentage": "19"
},
"thirdPartyCode": "112233",
"totalGrossAmount": -1190,
"totalNetAmount": -1000,
"totalTaxAmount": -190,
"updatedDate": "2025-06-01T00:00:00Z"
}
],
"journalCode": "60",
"journalType": "FIN",
"number ": "21900030",
"transactionDate": "2025-06-01T00:00:00Z",
"updatedDate": "2025-06-01T00:00:00Z"
}
],
"fiscalYearStartDate": "2025-01-01",
"taskId": "ABBDU8834993NND"
}curl --request POST \
--url https://api.maesn.dev/accounting/journalEntries/bulk \
--header 'Content-Type: application/json' \
--header 'X-ACCOUNT-KEY: <x-account-key>' \
--header 'X-API-KEY: <x-api-key>' \
--data '
{
"accountNumberLength": "4",
"chartOfAccount": "SKR03",
"entries": [
{
"accountId": "d1bfd23-517d-4ec6-b7d4-56f86c7cf246",
"accountingPeriodId": "2025-06",
"currency": "EUR",
"debitCreditIndicator": "DEBIT",
"description": "Invoice-3486 payment for services",
"documentId": "b5e624e5-fb9e-4836-a443-87a3820f5b48",
"dueDate": "2021-01-01T00:00:00Z",
"exchangeRate": "1,2045",
"journalLineItems": [
{
"accountId": "94fdb7fd-13ae-47a6-8a2a-000e6ddc60d9",
"accountNumber": 70001,
"currency": "EUR",
"customerId": "782d89b56-13ae-47a6-8a2a-45e6ddc50d9",
"description": "Uitgesteld 21600001 Kantoor 06-2025",
"dimensions": [
{
"id": "efa82f42-fd85-11e1-a21f-0800200c9a33",
"categoryName": "CostCenter",
"name": "Material/Waren"
}
],
"discountAmount": 12.12,
"documentNumber": "123456789",
"exchangeRate": 1,
"supplierId": "998933b56-13ae-47a6-8a32a-45e6ddc50d9",
"taxRate": {
"id": "1895b05b-38a6-4a6a-9653-166389894350",
"code": "03",
"name": "Tax19",
"taxRatePercentage": "19"
},
"thirdPartyCode": "112233",
"totalGrossAmount": 1190,
"totalNetAmount": 1000,
"totalTaxAmount": 190
},
{
"accountId": "94fdb7fd-13ae-47a6-8a2a-000e6ddc60d9",
"accountNumber": 1200,
"currency": "EUR",
"customerId": "782d89b56-13ae-47a6-8a2a-45e6ddc50d9",
"description": "Uitgesteld 21600001 Kantoor 06-2025",
"dimensions": [
{
"id": "efa82f42-fd85-11e1-a21f-0800200c9a33",
"categoryName": "CostCenter",
"name": "Material/Waren"
}
],
"discountAmount": 12.12,
"documentNumber": "123456789",
"exchangeRate": 1,
"supplierId": "998933b56-13ae-47a6-8a32a-45e6ddc50d9",
"taxRate": {
"id": "1895b05b-38a6-4a6a-9653-166389894350",
"code": "03",
"name": "Tax19",
"taxRatePercentage": "19"
},
"thirdPartyCode": "112233",
"totalGrossAmount": -1190,
"totalNetAmount": -1000,
"totalTaxAmount": -190
}
],
"journalCode": "60",
"journalType": "FIN",
"number ": "21900030",
"transactionDate": "2025-06-01T00:00:00Z"
}
],
"fiscalYearStartDate": "2025-01-01"
}
'{
"accountNumberLength": "4",
"chartOfAccount": "SKR03",
"createdDate": "2025-06-01T00:00:00Z",
"entries": [
{
"accountId": "d1bfd23-517d-4ec6-b7d4-56f86c7cf246",
"accountingPeriodId": "2025-06",
"currency": "EUR",
"createdDate": "2025-06-01T00:00:00Z",
"debitCreditIndicator": "DEBIT",
"description": "Invoice-3486 payment for services",
"documentId": "b5e624e5-fb9e-4836-a443-87a3820f5b48",
"dueDate": "2021-01-01T00:00:00Z",
"exchangeRate": "1,2045",
"journalLineItems": [
{
"accountId": "94fdb7fd-13ae-47a6-8a2a-000e6ddc60d9",
"accountNumber": 70001,
"currency": "EUR",
"createdDate": "2025-06-01T00:00:00Z",
"customerId": "782d89b56-13ae-47a6-8a2a-45e6ddc50d9",
"description": "Uitgesteld 21600001 Kantoor 06-2025",
"dimensions": [
{
"id": "efa82f42-fd85-11e1-a21f-0800200c9a33",
"categoryName": "CostCenter",
"name": "Material/Waren"
}
],
"discountAmount": 12.12,
"documentNumber": "123456789",
"exchangeRate": 1,
"supplierId": "998933b56-13ae-47a6-8a32a-45e6ddc50d9",
"taxRate": {
"id": "1895b05b-38a6-4a6a-9653-166389894350",
"code": "03",
"name": "Tax19",
"taxRatePercentage": "19"
},
"thirdPartyCode": "112233",
"totalGrossAmount": 1190,
"totalNetAmount": 1000,
"totalTaxAmount": 190,
"updatedDate": "2025-06-01T00:00:00Z"
},
{
"accountId": "94fdb7fd-13ae-47a6-8a2a-000e6ddc60d9",
"accountNumber": 1200,
"currency": "EUR",
"createdDate": "2025-06-01T00:00:00Z",
"customerId": "782d89b56-13ae-47a6-8a2a-45e6ddc50d9",
"description": "Uitgesteld 21600001 Kantoor 06-2025",
"dimensions": [
{
"id": "efa82f42-fd85-11e1-a21f-0800200c9a33",
"categoryName": "CostCenter",
"name": "Material/Waren"
}
],
"discountAmount": 12.12,
"documentNumber": "123456789",
"exchangeRate": 1,
"supplierId": "998933b56-13ae-47a6-8a32a-45e6ddc50d9",
"taxRate": {
"id": "1895b05b-38a6-4a6a-9653-166389894350",
"code": "03",
"name": "Tax19",
"taxRatePercentage": "19"
},
"thirdPartyCode": "112233",
"totalGrossAmount": -1190,
"totalNetAmount": -1000,
"totalTaxAmount": -190,
"updatedDate": "2025-06-01T00:00:00Z"
}
],
"journalCode": "60",
"journalType": "FIN",
"number ": "21900030",
"transactionDate": "2025-06-01T00:00:00Z",
"updatedDate": "2025-06-01T00:00:00Z"
}
],
"fiscalYearStartDate": "2025-01-01",
"taskId": "ABBDU8834993NND"
}DATEV Rechnungswesen
GET asyncTask endpoint.For more info about asynchronous tasks visit the Asynchronous Task section.companyId is accurately populated with the appropriate company ID. You can obtain this value by using the GET Companies endpoint available under the Authentication section.accountNumberLength field specifies the length of the G/L accounts.
The value must match the configuration defined in the end user’s mandate settings within the DATEV application.SKR03, SKR04, SKR42, SKR51, SKR14Show properties
currency field supports ISO 3166-1 alpha-2 (2-letter codes).
For details visits the Standardized Data section.DEBIT, CREDITDEBIT indicates a debit on the accountNumber associated with the positive journal line amount.CREDIT indicates a credit on the accountNumber associated with the positive journal line amount.description field provides details about the specific journal entry.It cannot exceed 60 characters in length.documentId field is used to attach a document to the journal entry.
This is the ID of the document that have been previously uploaded using the POST Files endpoint.exchangeRate must be up to 4 digits, comma, 2 to 6 digits (e.g., 1234,567890)currency field is set to a currency other than EUR.Show properties
accountNumber field should be the customer/supplier account if totalGrossAmount is positive; otherwise, a G/L account.It must be a valid number. The length must be equal to accountNumberLength for G/L accounts, or accountNumberLength + 1 for customer/supplier accounts.dimensions field is used to categorize the journal entry with additional info such as cost centers, departments, projects.Show properties
^([\S][\S ]{0,34}[\S]|[\S]{0,1})$.Example: Marketing.discountAmount field can only be used for EUR payments. It indicates a payment discount.It must be a positive number with max 8 digits before decimal and max 2 decimal places allowed.Show properties
code field represents the BU code associated with the journal entry.It must be max 4 characters long. Only numbers are allowed.totalGrossAmount field represents the total gross amount for the specific journal entry.It must be a number with up to 10 digits before the decimal point and up to 2 digits after.It cannot be zero.number field represents the document number. Only numbers, upper and lower case letters and the following special characters: $ & % * + - / are supportedfiscalYearStartDate field should be set to the first day of the fiscal year, which is usually January 1st.
If your fiscal year begins on a different date, please adjust this field accordingly.API key
"example value"
Account key
"example value"
Was this page helpful?