Skip to main content
POST
/
accounting
/
transactions
cURL
curl --request POST \
  --url https://api.maesn.dev/accounting/transactions \
  --header 'Content-Type: multipart/form-data' \
  --header 'X-ACCOUNT-KEY: <x-account-key>' \
  --header 'X-API-KEY: <x-api-key>' \
  --form 'transaction={
  "id": "f733a433-9662-4a40-8e36-e38ebda94fe1",
  "accountId": "14a6b5e92-a261-4be9-814d-84dec9636c16",
  "accountNumber": 4900,
  "amount": 100,
  "bookingDate": "2025-07-15T00:00:00Z",
  "contact": "eaa28f49-6028-4b6e-bb12-d8f6278073fc",
  "currency": "EUR",
  "description": "Hotel for dreamforce",
  "journalCode": "31",
  "ledgerName": "Payroll",
  "reference": "RCXF197253F",
  "status": "CREATED",
  "taxRatePercentage": 19,
  "type": "SPEND",
  "valueDate": "2025-07-15T00:00:00Z"
}'
{
  "meta": {
    "warnings": [
      "Field not used by target system"
    ],
    "pagination": {
      "total": 123,
      "perPage": 123,
      "currentPage": 123,
      "totalPages": 123
    }
  },
  "data": {
    "id": "f733a433-9662-4a40-8e36-e38ebda94fe1",
    "accountId": "14a6b5e92-a261-4be9-814d-84dec9636c16",
    "accountNumber": 4900,
    "amount": 100,
    "bookingDate": "2025-07-15T00:00:00Z",
    "contact": "eaa28f49-6028-4b6e-bb12-d8f6278073fc",
    "currency": "EUR",
    "description": "Hotel for dreamforce",
    "files": [
      "file1.pdf"
    ],
    "journalCode": "31",
    "ledgerName": "Payroll",
    "reference": "RCXF197253F",
    "status": "CREATED",
    "taskId": "ADB4457839PXTC2220",
    "taxRatePercentage": 19,
    "type": "SPEND",
    "valueDate": "2025-07-15T00:00:00Z"
  }
}

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.
If you’re not using the Interactive Authentication Flow, make sure 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:
transaction
string
required
files
file[]
If you’re not using the Interactive Authentication Flow, make sure the query parameter companyId is correctly populated. You can obtain this value by using the GET Companies endpoint available under the Authentication section.
Supported Request Parameters:
transaction
string
required
Supported Request Fields:
transaction
string
required
Supported Request Fields:
transaction
string
required

Headers

X-API-KEY
string
required

API key

X-ACCOUNT-KEY
string
required

Account key

Query Parameters

companyId
string
journalCode
string

Body

multipart/form-data
files
file[]

Array of files to upload

transaction
object

Response

200 - application/json
meta
object
data
object
I