POST
/
accounting
/
journalEntries
curl --request POST \
  --url https://api.maesn.dev/accounting/journalEntries \
  --header 'Content-Type: multipart/form-data' \
  --header 'X-ACCOUNT-KEY: <x-account-key>' \
  --header 'X-API-KEY: <x-api-key>' \
  --form 'files=[
  null
]' \
  --form 'metadata=[
  {
    "documentType": "<string>",
    "integrationSource": "<string>",
    "note": "<string>"
  }
]' \
  --form 'journal_entry={
  "accountId": "accounting period id",
  "accountingPeriodId": "accounting period id",
  "chartOfAccount": "SKR03",
  "companyId": "company id",
  "currency": "EUR",
  "journalLineItems": [
    {
      "accountId": "account id",
      "currency": "EUR",
      "customerId": "customer id",
      "description": "description",
      "exchangeRate": "19",
      "supplierId": "supplier id",
      "taxRate": {
        "id": "tax rate id",
        "code": "code",
        "name": "name",
        "taxRatePercentage": "tax rate percentage"
      },
      "thirdPartyCode": "112233",
      "totalGrossAmount": "100",
      "totalNetAmount": "100",
      "totalTaxAmount": "19",
      "trackingCategories": [
        {
          "id": "tracking category id",
          "name": "name"
        }
      ]
    }
  ],
  "journalType": "FIN",
  "memo": "memo",
  "number ": "number",
  "transactionDate": "2021-01-01T00:00:00Z"
}'
{
  "meta": {
    "warnings": [
      "Field not used by target system"
    ],
    "pagination": {
      "total": 123,
      "perPage": 123,
      "currentPage": 123,
      "totalPages": 123
    }
  },
  "data": [
    {
      "id": "1",
      "accountId": "account id",
      "accountingPeriodId": "accounting period id",
      "chartOfAccount": "SKR03",
      "companyId": "company id",
      "createdDate": "2021-01-01T00:00:00Z",
      "currency": "EUR",
      "files": [
        "file1.pdf"
      ],
      "journalLineItems": [
        {
          "id": "line item id",
          "accountId": "account id",
          "createdDate ": "2021-01-01T00:00:00Z",
          "currency": "EUR",
          "customerId": "customer id",
          "description": "description",
          "exchangeRate": "19",
          "supplierId": "supplier id",
          "taxRate": {
            "id": "tax rate id",
            "code": "code",
            "name": "name",
            "taxRatePercentage": "tax rate percentage"
          },
          "thirdPartyCode": "112233",
          "totalGrossAmount": "119",
          "totalNetAmount": "100",
          "totalTaxAmount": "19",
          "trackingCategories": [
            {
              "id": "tracking category id",
              "name": "name"
            }
          ],
          "updatedDate": "2021-01-01T00:00:00Z"
        }
      ],
      "journalType": "FIN",
      "memo": "memo",
      "number ": "number",
      "taskId ": "ADB4457839PXTC2220",
      "transactionDate": "2021-01-01T00:00:00Z",
      "updatedDate": "2021-01-01T00:00:00Z"
    }
  ]
}

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

environmentName
string
companyId
string

Body

multipart/form-data
files
file[]

Array of files to upload

metadata
object[]

Array of metadata

journal_entry
object

Response

200 - application/json
meta
object
data
object[]