POST
/
accounting
/
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"
  }
}

Test Api token:

663222ee

Test Account token:

85b30b51

Field support per integration

Headers

X-API-KEY
string
required

API key

Example:

"example value"

X-ACCOUNT-KEY
string
required

Account key

Example:

"example value"

Query Parameters

companyId
string

Body

application/json
accountLength
number
Example:

"4"

chartOfAccount
enum<string>
Available options:
SKR03,
SKR04,
SKR42,
SKR51,
SKR14
Example:

"SKR03"

entries
object[]
fiscalYearStartDate
string
Example:

"2021-01-01T00:00:00Z"

Response

200 - application/json
meta
object
data
object