> ## Documentation Index
> Fetch the complete documentation index at: https://docs.maesn.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create transaction

## Field support per integration

> [accordion] DATEV Unternehmen Online
>
> > [!NOTE]
> >
> > 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`](https://docs.maesn.com/async-task) section.
>
> > [!NOTE]
> >
> > If you're not using the [Interactive Authentication Flow](https://docs.maesn.com/authentication.md#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*
>
> **properties**
>
> **id** `string` *required*
>
> The `id` field is the identifier for the transaction.
>
> It must match the pattern: `^[a-zA-Z0-9$%&*\+\-/]{0,36}$`.
>
> **accountNumber** `number`
>
> The `accountNumber` field specifies the general ledger account linked to the transaction.
>
> **amount** `number` *required*
>
> **bookingDate** `string` *required*
>
> **currency** `enum` *required*
>
> The `currency` field supports **ISO 4217** (3-letter codes).
> For details visits the [`Standardized Data`](https://docs.maesn.com/standardization) section.
>
> **description** `string` *required*
>
> The `description` field provides details about the transaction.
>
> It cannot exceed 60 characters in length.
>
> **ledgerName** `string` *required*
>
> The `ledgerName` field represents the name of the correct ledger folder where the data will be sent to.
>
> To get the correct name, you can use the  `GET Accounts` endpoint.
>
> > [!NOTE]
> >
> > The `ledgerName` must be of type `CASH`.
>
> **taxRatePercentage** `number` *required*
>
> The `taxRatePercentage` field represents the tax rate applied to the transaction.
>
> It must be a positive number.
>
> **files** `file[]`

> [accordion] Exact Online
>
> > [!NOTE]
> >
> > If you're not using the [Interactive Authentication Flow](https://docs.maesn.com/authentication.md#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*
>
> **properties**
>
> **accountId** `string` *required*
>
> The `accountId` is the id of the GL account related to the transaction.
>
> You can obtain this value by using the `GET Accounts` endpoint.
>
> **amount** `number` *required*
>
> **bookingDate** `string`
>
> **contact** `string`
>
> **currency** `enum`
>
> The `currency` field supports **ISO 4217** (3-letter codes).
> For details visit the [`Standardized Data`](https://docs.maesn.com/standardization) section.
>
> **description** `string`
>
> **journalCode** `string` *required*
>
> **reference** `string`
>
> **status** `string`
>
> **taxRatePercentage** `string`

> [accordion] Lexware Office
>
> Supported request fields:
>
> **transaction** `string` *required*
>
> **properties**
>
> **accountId** `string` *required*
>
> The `accountId` is the id of the bank account related to the transaction.
>
> **amount** `number` *required*
>
> **bookingDate** `string` *required*
>
> **description** `string` *required*
>
> **reference** `string`
>
> **valueDate** `string` *required*

> [accordion] sevdesk
>
> Supported request fields:
>
> **transaction** `string` *required*
>
> **properties**
>
> **accountId** `string` *required*
>
> The `accountId` is the id of the bank account related to the transaction.
>
> You can obtain this value by using the `GET Bank Accounts` endpoint.
>
> **amount** `number` *required*
>
> **contact** `string` *required*
>
> **description** `string`
>
> **status** `enum` *required*
>
> Available options:
> `CREATED`, `LINKED`, `PRIVATE`, `BOOKED`
>
> **valueDate** `string` *required*


## OpenAPI

````yaml post /accounting/transactions
openapi: 3.0.0
info:
  title: Maesn unified API
  description: The Maesn unified API description
  version: '1.0'
  contact: {}
servers:
  - url: https://api.maesn.dev
security: []
tags:
  - name: maesn
    description: ''
paths:
  /accounting/transactions:
    post:
      tags:
        - accounting
      operationId: createTransaction
      parameters:
        - name: companyId
          required: false
          in: query
          schema:
            type: string
        - name: journalCode
          required: false
          in: query
          schema:
            type: string
        - name: X-API-KEY
          description: API key
          in: header
          schema:
            type: string
          required: true
        - name: X-ACCOUNT-KEY
          description: Account key
          in: header
          schema:
            type: string
          required: true
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                files:
                  type: array
                  items:
                    format: binary
                  description: Array of files to upload
                transaction:
                  $ref: '#/components/schemas/CreateTransactionRequestDto'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/BaseResponseDto'
                  - properties:
                      data:
                        $ref: '#/components/schemas/TransactionResponseDto'
                        type: object
components:
  schemas:
    CreateTransactionRequestDto:
      type: object
      properties:
        accountId:
          type: string
          example: 14a6b5e92-a261-4be9-814d-84dec9636c16
        accountNumber:
          type: number
          example: 4900
        amount:
          type: number
          example: 100
        bookingDate:
          type: string
          example: '2025-07-15T00:00:00Z'
        contact:
          type: string
          example: eaa28f49-6028-4b6e-bb12-d8f6278073fc
        currency:
          type: string
          enum:
            - AED
            - AFN
            - ALL
            - AMD
            - ANG
            - AOA
            - ARS
            - AUD
            - AWG
            - AZN
            - BAM
            - BBD
            - BDT
            - BGN
            - BHD
            - BIF
            - BMD
            - BND
            - BOB
            - BRL
            - BSD
            - BTN
            - BWP
            - BYR
            - BZD
            - CAD
            - CDF
            - CHF
            - CLP
            - CNY
            - COP
            - CRC
            - CUC
            - CVE
            - CZK
            - DJF
            - DKK
            - DOP
            - DZD
            - EEK
            - EGP
            - ERN
            - ETB
            - EUR
            - FJD
            - FKP
            - GBP
            - GEL
            - GHS
            - GIP
            - GMD
            - GNF
            - GQE
            - GTQ
            - GYD
            - HKD
            - HNL
            - HRK
            - HTG
            - HUF
            - IDR
            - ILS
            - INR
            - IQD
            - IRR
            - ISK
            - JMD
            - JOD
            - JPY
            - KES
            - KGS
            - KHR
            - KMF
            - KPW
            - KRW
            - KWD
            - KYD
            - KZT
            - LAK
            - LBP
            - LKR
            - LRD
            - LSL
            - LTL
            - LVL
            - LYD
            - MAD
            - MDL
            - MGA
            - MKD
            - MMK
            - MNT
            - MOP
            - MRO
            - MUR
            - MVR
            - MWK
            - MXN
            - MYR
            - MZM
            - NAD
            - NGN
            - NIO
            - NOK
            - NPR
            - NZD
            - OMR
            - PAB
            - PEN
            - PGK
            - PHP
            - PKR
            - PLN
            - PYG
            - QAR
            - RON
            - RSD
            - RUB
            - SAR
            - SBD
            - SCR
            - SDG
            - SEK
            - SGD
            - SHP
            - SLL
            - SOS
            - SRD
            - SYP
            - SZL
            - THB
            - TJS
            - TMT
            - TND
            - TRY
            - TTD
            - TWD
            - TZS
            - UAH
            - UGX
            - USD
            - UYU
            - UZS
            - VEB
            - VND
            - VUV
            - WST
            - XAF
            - XCD
            - XDR
            - XOF
            - XPF
            - YER
            - ZAR
            - ZMK
            - ZWR
          example: EUR
        description:
          type: string
          example: Hotel for dreamforce
        journalCode:
          type: string
          example: '31'
        ledgerName:
          type: string
          example: Payroll
        reference:
          type: string
          example: RCXF197253F
        status:
          type: string
          enum:
            - CREATED
            - LINKED
            - PRIVATE
            - BOOKED
            - AUTHORISED
            - DELETED
        taxRatePercentage:
          type: number
          example: 19
        type:
          type: string
          enum:
            - RECEIVE
            - RECEIVE-OVERPAYMENT
            - RECEIVE-PREPAYMENT
            - SPEND
            - SPEND-OVERPAYMENT
            - SPEND-PREPAYMENT
            - RECEIVE-TRANSFER
            - SPEND-TRANSFER
          example: SPEND
        valueDate:
          type: string
          example: '2025-07-15T00:00:00Z'
    BaseResponseDto:
      type: object
      properties:
        meta:
          $ref: '#/components/schemas/MetaResponse'
        data:
          oneOf:
            - type: object
            - type: array
    TransactionResponseDto:
      type: object
      properties:
        id:
          type: string
          example: f733a433-9662-4a40-8e36-e38ebda94fe1
        accountId:
          type: string
          example: 14a6b5e92-a261-4be9-814d-84dec9636c16
        accountNumber:
          type: number
          example: 4900
        amount:
          type: number
          example: 100
        bookingDate:
          type: string
          example: '2025-07-15T00:00:00Z'
        contact:
          type: string
          example: eaa28f49-6028-4b6e-bb12-d8f6278073fc
        currency:
          type: string
          enum:
            - AED
            - AFN
            - ALL
            - AMD
            - ANG
            - AOA
            - ARS
            - AUD
            - AWG
            - AZN
            - BAM
            - BBD
            - BDT
            - BGN
            - BHD
            - BIF
            - BMD
            - BND
            - BOB
            - BRL
            - BSD
            - BTN
            - BWP
            - BYR
            - BZD
            - CAD
            - CDF
            - CHF
            - CLP
            - CNY
            - COP
            - CRC
            - CUC
            - CVE
            - CZK
            - DJF
            - DKK
            - DOP
            - DZD
            - EEK
            - EGP
            - ERN
            - ETB
            - EUR
            - FJD
            - FKP
            - GBP
            - GEL
            - GHS
            - GIP
            - GMD
            - GNF
            - GQE
            - GTQ
            - GYD
            - HKD
            - HNL
            - HRK
            - HTG
            - HUF
            - IDR
            - ILS
            - INR
            - IQD
            - IRR
            - ISK
            - JMD
            - JOD
            - JPY
            - KES
            - KGS
            - KHR
            - KMF
            - KPW
            - KRW
            - KWD
            - KYD
            - KZT
            - LAK
            - LBP
            - LKR
            - LRD
            - LSL
            - LTL
            - LVL
            - LYD
            - MAD
            - MDL
            - MGA
            - MKD
            - MMK
            - MNT
            - MOP
            - MRO
            - MUR
            - MVR
            - MWK
            - MXN
            - MYR
            - MZM
            - NAD
            - NGN
            - NIO
            - NOK
            - NPR
            - NZD
            - OMR
            - PAB
            - PEN
            - PGK
            - PHP
            - PKR
            - PLN
            - PYG
            - QAR
            - RON
            - RSD
            - RUB
            - SAR
            - SBD
            - SCR
            - SDG
            - SEK
            - SGD
            - SHP
            - SLL
            - SOS
            - SRD
            - SYP
            - SZL
            - THB
            - TJS
            - TMT
            - TND
            - TRY
            - TTD
            - TWD
            - TZS
            - UAH
            - UGX
            - USD
            - UYU
            - UZS
            - VEB
            - VND
            - VUV
            - WST
            - XAF
            - XCD
            - XDR
            - XOF
            - XPF
            - YER
            - ZAR
            - ZMK
            - ZWR
          example: EUR
        description:
          type: string
          example: Hotel for dreamforce
        files:
          type: array
          items:
            type: string
            example: file1.pdf
        journalCode:
          type: string
          example: '31'
        ledgerName:
          type: string
          example: Payroll
        reference:
          type: string
          example: RCXF197253F
        status:
          type: string
          enum:
            - CREATED
            - LINKED
            - PRIVATE
            - BOOKED
            - AUTHORISED
            - DELETED
          example: CREATED
        taskId:
          type: string
          example: ADB4457839PXTC2220
        taxRatePercentage:
          type: number
          example: 19
        type:
          type: string
          enum:
            - RECEIVE
            - RECEIVE-OVERPAYMENT
            - RECEIVE-PREPAYMENT
            - SPEND
            - SPEND-OVERPAYMENT
            - SPEND-PREPAYMENT
            - RECEIVE-TRANSFER
            - SPEND-TRANSFER
          example: SPEND
        valueDate:
          type: string
          example: '2025-07-15T00:00:00Z'
    MetaResponse:
      type: object
      properties:
        warnings:
          type: array
          items:
            type: string
            example: Field not used by target system
        pagination:
          $ref: '#/components/schemas/PaginationResponse'
        partialErrors:
          type: array
          description: >-
            Secondary operations that failed after the main operation succeeded.
            See [Partial Errors](/guides/partial-errors).
          items:
            type: object
            properties:
              code:
                type: string
                example: FILE_UPLOAD_FAILED
              message:
                type: string
                example: >-
                  Attachment invoice.pdf could not be uploaded to the target
                  system.
    PaginationResponse:
      type: object
      properties:
        total:
          type: number
          example: 125
        perPage:
          type: number
          example: 50
        currentPage:
          type: number
          example: 1
        totalPages:
          type: number
          example: 3

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.