> ## 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 payment

## Field support per integration

<AccordionGroup>
  <Accordion title="Exact Online" icon={<div dangerouslySetInnerHTML={{__html: `<svg width="24" height="24" viewBox="0 0 842 179" transform="translate(-7,-4)" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><path id="a" d="M.06.529h841.83V178.94H.06z"/></defs><g fill="none" fill-rule="evenodd"><mask id="b" fill="#fff"><use xlink:href="#a"/></mask><path fill="#D9252A" mask="url(https://mintlify.s3.us-west-1.amazonaws.com/maesn/api-reference/accounting-endpoints/payments#b)" d="M112.97 58.348H0v33.794h128.574V58.348H112.97M111.616 116.693H0v33.794h16.958v-.001h94.658v.001h16.958v-33.794h-16.958M566.017 146.261h-50.69c-8.447 0-13.465-4.492-13.465-12.677 0-8.181 5.018-12.668 13.465-12.668h50.69v25.345zM542.521 29.045h-46.878v-.001h-20.734v33.791h20.734v-.001h44.761c20.032 0 25.448 7.694 25.603 25.346H513.74c-30.887 0-47.784 15.84-47.784 45.404 0 29.31 16.897 45.414 47.784 45.414h82.11l.032-.002h6.566v-92.13c0-39.079-14.785-57.821-59.927-57.821zM732.45 145.204h-42.503c-22.97 0-31.424-11.086-31.424-41.181 0-30.094 8.454-41.185 31.424-41.185h41.973l.065-.003h6.556V29.044h-52.293c-46.724 0-64.681 23.233-64.681 74.979 0 51.742 17.957 74.973 64.681 74.973h52.796v-33.791h-6.562l-.032-.001M269.888 145.205h-39.992c-19.092 0-27.963-6.758-30.417-23.753h59.03v.022h20.732v-6.021c.014-.2.026-.401.026-.609V94.253c0-.207-.012-.409-.026-.609v-5.961h-5.827a8.685 8.685 0 0 0-.747-.033h-73.324c2.254-17.607 11.101-24.815 30.553-24.815h60.194V29.044h-18.099v.003h-45.789c-46.733 0-64.677 23.228-64.677 74.973 0 51.741 17.944 74.979 64.677 74.979h57.819c.022 0 .043-.002.065-.003h6.535v-33.791h-20.733M835.286 145.205H805.98c-7.125 0-11.358-5.012-11.358-13.99v-68.38h44.091V29.047h-44.091V.529h-36.426v133.323c0 30.894 14.521 45.147 44.616 45.147h32.474l.066-.003h6.538v-33.791h-6.604M456.904 172.136l-53.323-70.381 49.893-65.848v-.001l5.199-6.862h-42.787l-3.597 4.749-.001.001-30.095 39.725-30.1-39.725-.001-.002-3.598-4.748h-44.367l55.879 73.758-57.729 76.197 14.575-.003h28.211l3.598-4.747.002-.002 32.737-43.209 32.738 43.209v.001l3.598 4.748h44.367l-5.199-6.86"/></g></svg>`,}}/>}>
    <Note>
      If you're not using the [Interactive Authentication Flow](/authentication#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.
    </Note>

    <br />

    Supported Request Fields:

    <ResponseField name="currency" type="string" />

    <ResponseField name="exchangeRate" type="number" />

    <ResponseField name="journalCode" type="string" required />

    <ResponseField name="paymentLines" type="PaymentLine[]">
      <Expandable title="properties">
        <ResponseField name="amount" type="number" required />

        <ResponseField name="accountId" type="string" required />

        <ResponseField name="contactId" type="string" />

        <ResponseField name="description" type="string" />

        <ResponseField name="invoiceId" type="string" />

        <ResponseField name="paymentDate" type="string" />
      </Expandable>
    </ResponseField>
  </Accordion>

  <Accordion title="Sevdesk" icon={<svg width="24" height="24" transform="translate(-7,-4)" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"> <g clip-path="url(https://mintlify.s3.us-west-1.amazonaws.com/maesn/api-reference/accounting-endpoints/payments#clip0_515_31)"> <g clip-path="url(https://mintlify.s3.us-west-1.amazonaws.com/maesn/api-reference/accounting-endpoints/payments#clip1_515_31)"> <path d="M10.3995 32C3.46576 32 0 28.5345 0 21.6012V10.401C0 3.46552 3.46576 0 10.3995 0H21.6005C28.5342 0 32 3.46552 32 10.3988V21.599C32 28.5323 28.5342 31.9978 21.6005 31.9978H10.3995V32Z" fill="#FB523B"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M22.4444 7.55556C21.524 7.55556 20.7778 8.30175 20.7778 9.22222V21.6667C20.7778 22.5871 21.524 23.3333 22.4444 23.3333C23.3649 23.3333 24.1111 22.5871 24.1111 21.6667V9.22222C24.1111 8.30175 23.3649 7.55556 22.4444 7.55556ZM14.3333 13.8889C14.3333 12.9684 15.0795 12.2222 16 12.2222C16.9205 12.2222 17.6667 12.9684 17.6667 13.8889V21.6667C17.6667 22.5871 16.9205 23.3333 16 23.3333C15.0795 23.3333 14.3333 22.5871 14.3333 21.6667V13.8889ZM7.88889 17.8889C7.88889 16.9684 8.63508 16.2222 9.55555 16.2222C10.476 16.2222 11.2222 16.9684 11.2222 17.8889V21.6667C11.2222 22.5871 10.476 23.3333 9.55555 23.3333C8.63508 23.3333 7.88889 22.5871 7.88889 21.6667V17.8889Z" fill="white"/> </g> </g> <defs> <clipPath id="clip0_515_31"> <rect width="32" height="32" fill="white"/> </clipPath> <clipPath id="clip1_515_31"> <rect width="32" height="32" fill="white"/> </clipPath> </defs> </svg>}>
    Supported Request Fields:

    <ResponseField name="paymentLines" type="PaymentLine[]" required>
      <Expandable title="properties">
        <ResponseField name="accountId" type="string" required />

        <ResponseField name="amount" type="number" required />

        <ResponseField name="contactName" type="string" required />

        <ResponseField name="invoiceId" type="string" required />

        <ResponseField name="paymentDate" type="string" required />
      </Expandable>
    </ResponseField>
  </Accordion>

  <Accordion title="Visma e-conomic" icon={<svg width="24" height="24" viewBox="0 0 400.000000 400.000000" transform="translate(-7, -4)" preserveAspectRatio="xMidYMid meet"><g transform="translate(0.000000,400.000000) scale(0.100000,-0.100000)" fill="#e80d4b" stroke="none"><path d="M1640 2962 c0 -6 67 -113 150 -239 582 -889 797 -1218 794 -1221 -1 -2 -206 146 -456 330 -249 183 -645 475 -881 648 -235 173 -431 316 -436 318 -5 2 -38 -26 -74 -61 -146 -144 -191 -342 -126 -552 150 -485 835 -963 1554 -1084 214 -36 256 -41 355 -41 188 0 405 47 557 121 355 171 433 525 197 891 -241 375 -725 686 -1284 828 -63 16 -161 36 -216 45 -56 8 -109 17 -118 21 -9 3 -16 2 -16 -4z"/></g></svg>}>
    Supported Request Fields:

    <ResponseField name="currency" type="string" required />

    <ResponseField name="journalCode" type="string" required />

    <ResponseField name="paymentLines" type="PaymentLine[]" required>
      <Expandable title="properties">
        <ResponseField name="accountId" type="string" required />

        <ResponseField name="amount" type="number" required />

        <ResponseField name="customerId" type="string" required />

        <ResponseField name="description" type="string" />

        <ResponseField name="invoiceId" type="string" required />

        <ResponseField name="paymentDate" type="string" required />
      </Expandable>
    </ResponseField>
  </Accordion>

  <Accordion title="Xero" icon={<svg width="24" height="24" viewBox="0 0 45 46" xmlns="http://www.w3.org/2000/svg" transform="translate(-7,-4)"><path fill="#13B5EA" d="M22.457 45.49c12.402 0 22.456-10.072 22.456-22.495C44.913 10.57 34.86.5 22.457.5 10.054.5 0 10.57 0 22.995 0 35.418 10.054 45.49 22.457 45.49"/><path class="logo-xero-blue__text" fill="#fff" d="M10.75 22.935l3.832-3.85a.688.688 0 0 0-.977-.965l-3.83 3.833-3.845-3.84a.687.687 0 0 0-.966.979l3.832 3.837-3.83 3.84a.688.688 0 1 0 .964.981l3.84-3.842 3.825 3.827a.685.685 0 0 0 1.184-.473.68.68 0 0 0-.2-.485l-3.83-3.846m22.782.003c0 .69.56 1.25 1.25 1.25a1.25 1.25 0 0 0-.001-2.5c-.687 0-1.246.56-1.246 1.25m-2.368 0c0-1.995 1.62-3.62 3.614-3.62 1.99 0 3.613 1.625 3.613 3.62s-1.622 3.62-3.613 3.62a3.62 3.62 0 0 1-3.614-3.62m-1.422 0c0 2.78 2.26 5.044 5.036 5.044s5.036-2.262 5.036-5.043c0-2.78-2.26-5.044-5.036-5.044a5.046 5.046 0 0 0-5.036 5.044m-.357-4.958h-.21c-.635 0-1.247.2-1.758.595a.696.696 0 0 0-.674-.54.68.68 0 0 0-.68.684l.002 8.495a.687.687 0 0 0 1.372-.002v-5.224c0-1.74.16-2.444 1.648-2.63.14-.017.288-.014.29-.014.406-.015.696-.296.696-.675a.69.69 0 0 0-.69-.688m-13.182 4.127c0-.02.002-.04.003-.058a3.637 3.637 0 0 1 7.065.055H16.2zm8.473-.13c-.296-1.403-1.063-2.556-2.23-3.296a5.064 5.064 0 0 0-5.61.15 5.098 5.098 0 0 0-1.973 5.357 5.08 5.08 0 0 0 4.274 3.767c.608.074 1.2.04 1.81-.12a4.965 4.965 0 0 0 1.506-.644c.487-.313.894-.727 1.29-1.222.006-.01.014-.017.022-.027.274-.34.223-.826-.077-1.056-.254-.195-.68-.274-1.014.156-.072.104-.153.21-.24.315-.267.295-.598.58-.994.802-.506.27-1.08.423-1.69.427-1.998-.023-3.066-1.42-3.447-2.416a3.716 3.716 0 0 1-.153-.58l-.01-.105h7.17c.982-.022 1.51-.717 1.364-1.51z"/></svg>}>
    Supported Request Fields:

    <ResponseField name="exchangeRate" type="number" />

    <ResponseField name="paymentLines" type="PaymentLine[]">
      <Expandable title="properties">
        <ResponseField name="amount" type="number" required />

        <ResponseField name="accountId" type="string" required>
          Id of the bank account to which the payment is made. Needs to be type `BANK`.

          To get the correct id, you can use the  `GET Accounts` endpoint.
        </ResponseField>

        <ResponseField name="description" type="string" />

        <ResponseField name="invoiceId" type="string" required />

        <ResponseField name="paymentDate" type="string" required />
      </Expandable>
    </ResponseField>
  </Accordion>
</AccordionGroup>


## OpenAPI

````yaml post /accounting/payments
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/payments:
    post:
      tags:
        - accounting
      operationId: createPayment
      parameters:
        - name: companyId
          required: false
          in: query
          schema:
            type: string
        - name: X-API-KEY
          description: API key
          in: header
          schema:
            type: string
            example: example value
          required: true
        - name: X-ACCOUNT-KEY
          description: Account key
          in: header
          schema:
            type: string
            example: example value
          required: true
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PaymentRequestDto'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/BaseResponseDto'
                  - properties:
                      data:
                        $ref: '#/components/schemas/PaymentResponseDto'
components:
  schemas:
    PaymentRequestDto:
      type: object
      properties:
        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
        exchangeRate:
          type: number
          example: 1
        fiscalYear:
          type: string
          example: '2025'
        journalCode:
          type: string
          example: '30'
        paymentLines:
          type: array
          items:
            $ref: '#/components/schemas/PaymentLine'
        paymentType:
          type: string
          example: CREDITOR
    BaseResponseDto:
      type: object
      properties:
        meta:
          $ref: '#/components/schemas/MetaResponse'
        data:
          oneOf:
            - type: object
            - type: array
    PaymentResponseDto:
      type: object
      properties:
        id:
          type: string
          example: 94a5ab44-3218-4492-8b5d-a31bc0288c0b
        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
        createdDate:
          type: string
          example: '2021-01-01T00:00:00Z'
        exchangeRate:
          type: number
          example: 1
        fiscalYear:
          type: string
          example: '2025'
        journalCode:
          type: string
          example: '30'
        updatedDate:
          type: string
          example: '2021-01-01T00:00:00Z'
        paymentLines:
          type: array
          items:
            $ref: '#/components/schemas/PaymentLine'
        paymentType:
          type: string
          example: CREDITOR
    PaymentLine:
      type: object
      properties:
        accountId:
          type: string
          example: 4a6b5e92-a261-4be9-814d-84dec9636c16
        amount:
          type: number
          example: 100
        contactName:
          type: string
          example: John Doe
        contactId:
          type: string
          example: 6532708-12e3-4ff5-bf39-02698e959963
        customerId:
          type: string
          example: 6532708-12e3-4ff5-bf39-02698e959963
        description:
          type: string
          example: payment of bill
        invoiceId:
          type: string
          example: a44f5af1-8310-4f97-b945-26e35288b35f
        paymentDate:
          type: string
          example: '2025-01-01'
        supplierId:
          type: string
          example: 6532708-12e3-4ff5-bf39-02698e959963
    MetaResponse:
      type: object
      properties:
        warnings:
          type: array
          items:
            type: string
            example: Field not used by target system
        pagination:
          $ref: '#/components/schemas/PaginationResponse'
    PaginationResponse:
      type: object
      properties:
        total:
          type: number
          example: 125
        perPage:
          type: number
          example: 50
        currentPage:
          type: number
          example: 1
        totalPages:
          type: number
          example: 3

````