Get started
Integrations
Use cases
API reference
- Accounting
- Overview
- Accounts
- Async Task
- Bills
- Bill Lines
- Bookings
- Booking Proposals
- Contacts
- Customers
- Dimensions
- Expenses
- Files
- Invoices
- Invoice Lines
- Items
- Journals
- Journal Entries
- Offers
- Offer Lines
- Payments
- Payment Terms
- Projects
- Sales Orders
- Sales Order Lines
- Suppliers
- Tax Rates
- Transactions
- Vendor Credits
- Authentication
- Tenant Management
- User
Create bookings
curl --request POST \
--url https://api.maesn.dev/accounting/bookings \
--header 'Content-Type: application/json' \
--header 'X-ACCOUNT-KEY: <x-account-key>' \
--header 'X-API-KEY: <x-api-key>' \
--data '{
"accountLength": "4",
"chartOfAccount": "SKR03",
"entries": [
{
"accountNumber": "1400",
"amount": "1000",
"bookingDate": "2021-01-01T00:00:00Z",
"bookingTaxCode": "9",
"bookingType": "PARTIAL_INVOICE",
"contraAccountNumber": "70000",
"costCenter1": "Cost Center1",
"costCenter2": "Cost Center2",
"currency": "EUR",
"debitCreditIndicator": "DEBIT",
"documentNumber": "1234567890",
"dueDate": "2021-01-01T00:00:00Z",
"fileId": "AA7N4ICJ0SJIU38",
"purpose": "payment"
}
],
"fiscalYearStartDate": "2021-01-01T00:00:00Z"
}'
{
"meta": {
"warnings": [
"Field not used by target system"
],
"pagination": {
"total": 123,
"perPage": 123,
"currentPage": 123,
"totalPages": 123
}
},
"data": {
"id": "433445",
"accountLength": "4",
"chartOfAccount": "SKR03",
"entries": [
{
"accountNumber": "1400",
"amount": "1000",
"bookingDate": "2021-01-01T00:00:00Z",
"bookingTaxCode": "9",
"bookingType": "PARTIAL_INVOICE",
"contraAccountNumber": "70000",
"costCenter1": "Cost Center1",
"costCenter2": "Cost Center2",
"currency": "EUR",
"debitCreditIndicator": "DEBIT",
"documentNumber": "1234567890",
"dueDate": "2021-01-01T00:00:00Z",
"fileId": "AA7N4ICJ0SJIU38",
"purpose": "payment"
}
],
"createdDate": "2021-01-01T00:00:00Z",
"fiscalYearStartDate": "2021-01-01T00:00:00Z",
"taskId": "ABBDU8834993NND"
}
}
Field support per integration
This endpoints is asynchronous. To check the status of the request, use the GET asyncTask
endpoint.
For more info about asynchronous tasks visit the Asynchronous Task
section.
Please ensure the query parameter 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.
Supported Request Parameters:
Available options: SKR03
, SKR04
, SKR42
, SKR51
, SKR14
ISO-8601 date format, e.g., 2024-01-01T00:00:00Z
Available options: PARTIAL_INVOICE
, ADVANCED_PAYMENT_RECEIVED
, FINAL_INVOICE
, OTHER
Available options: EUR
Available options: DEBIT
, CREDIT
ISO-8601 date format, e.g., 2024-01-01T00:00:00Z
ISO-8601 date format, e.g., 2024-01-01T00:00:00Z
Headers
API key
"example value"
Account key
"example value"
Query Parameters
Body
Response
The response is of type object
.
Was this page helpful?
curl --request POST \
--url https://api.maesn.dev/accounting/bookings \
--header 'Content-Type: application/json' \
--header 'X-ACCOUNT-KEY: <x-account-key>' \
--header 'X-API-KEY: <x-api-key>' \
--data '{
"accountLength": "4",
"chartOfAccount": "SKR03",
"entries": [
{
"accountNumber": "1400",
"amount": "1000",
"bookingDate": "2021-01-01T00:00:00Z",
"bookingTaxCode": "9",
"bookingType": "PARTIAL_INVOICE",
"contraAccountNumber": "70000",
"costCenter1": "Cost Center1",
"costCenter2": "Cost Center2",
"currency": "EUR",
"debitCreditIndicator": "DEBIT",
"documentNumber": "1234567890",
"dueDate": "2021-01-01T00:00:00Z",
"fileId": "AA7N4ICJ0SJIU38",
"purpose": "payment"
}
],
"fiscalYearStartDate": "2021-01-01T00:00:00Z"
}'
{
"meta": {
"warnings": [
"Field not used by target system"
],
"pagination": {
"total": 123,
"perPage": 123,
"currentPage": 123,
"totalPages": 123
}
},
"data": {
"id": "433445",
"accountLength": "4",
"chartOfAccount": "SKR03",
"entries": [
{
"accountNumber": "1400",
"amount": "1000",
"bookingDate": "2021-01-01T00:00:00Z",
"bookingTaxCode": "9",
"bookingType": "PARTIAL_INVOICE",
"contraAccountNumber": "70000",
"costCenter1": "Cost Center1",
"costCenter2": "Cost Center2",
"currency": "EUR",
"debitCreditIndicator": "DEBIT",
"documentNumber": "1234567890",
"dueDate": "2021-01-01T00:00:00Z",
"fileId": "AA7N4ICJ0SJIU38",
"purpose": "payment"
}
],
"createdDate": "2021-01-01T00:00:00Z",
"fiscalYearStartDate": "2021-01-01T00:00:00Z",
"taskId": "ABBDU8834993NND"
}
}