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

## Field support per integration

> [accordion] BuchhaltungsButler
>
> Supported request parameters:
>
> **contactId** `string` *required*
>
> **name** `string`
>
> **invoiceDate** `string` *required*
>
> For date format details visit the [Standardized Data](https://docs.maesn.com/standardization.md) section
>
> **addresses** `Address[]`
>
> **properties**
>
> **addressLine1** `string`
>
> **addressLine2** `string`
>
> **city** `string`
>
> **postalCode** `string`
>
> **countryCode** `enum`
>
> The `countryCode` field supports **ISO 3166-1 alpha-2** (2-letter codes).
> For details visit the [`Standardized Data`](https://docs.maesn.com/standardization) section.
>
> **lineItems** `LineItem[]` *required*
>
> **properties**
>
> **description** `string` *required*
>
> **quantity** `number` *required*
>
> Note that quantity can be a decimal numeral.
>
> **unitAmount** `number` *required*
>
> **taxRatePercentage** `number` *required*
>
> **unitName** `string` *required*
>
> **discountPercentage** `number`

> [accordion] Business Central
>
> > [!NOTE]
> >
> > If you're not using the [Interactive Authentication Flow](https://docs.maesn.com/authentication.md#interactive-authentication-flow), make sure the query parameters `environmentName` and `companyId` are correctly populated.
> > You can obtain these values by using the `GET Environments` and `GET Companies` endpoints available under the Authentication section.
>
> Supported request parameters:
>
> **contactId** `string` *required*
>
> **invoiceType** `enum`
>
> Available options: `STANDARD`
>
> **currency** `enum`
>
> The `currency` field supports **ISO 4217** (3-letter codes).
> For details visit the [`Standardized Data`](https://docs.maesn.com/standardization) section.
>
> **invoiceDate** `string`
>
> For date format details visit the [Standardized Data](https://docs.maesn.com/standardization.md) section
>
> **dueDate** `string`
>
> For date format details visit the [Standardized Data](https://docs.maesn.com/standardization.md) section
>
> **addresses** `Address[]`
>
> **properties**
>
> **addressLine1** `string`
>
> **addressLine2** `string`
>
> **city** `string`
>
> **postalCode** `string`
>
> **countryCode** `enum`
>
> The `countryCode` field supports **ISO 3166-1 alpha-2** (2-letter codes).
> For details visit the [`Standardized Data`](https://docs.maesn.com/standardization) section.
>
> **type** `enum`
>
> Available options: `SELLING`, `DELIVERY`
>
> **lineItems** `LineItem[]`
>
> **properties**
>
> **itemId** `string`
>
> **description** `string`
>
> **quantity** `number`
>
> Note that quantity can be a decimal numeral.
>
> **unitAmount** `number`
>
> **taxCode** `number`
>
> **discountItemPercentage** `number`

> [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.
>
> > [!NOTE]
> >
> > To create invoices in Exact Online, your account must have one of the following package subscriptions enabled:
> >
> > * **Manufacturing** (any tier)
> > * **Professional Services** (Plus, Professional, or Premium)
> > * **Wholesale & Distribution** (any tier)
> > * **Accountancy Premium**
> > * **Accounting**
>
> Supported request parameters:
>
> **contactId** `string` *required*
>
> **currency** `enum`
>
> The `currency` field supports **ISO 4217** (3-letter codes).
> For details visit the [`Standardized Data`](https://docs.maesn.com/standardization) section.
>
> **discountPercentage** `number`
>
> **dueDate** `string`
>
> For date format details visit the [Standardized Data](https://docs.maesn.com/standardization.md) section
>
> **fileId** `string`
>
> **journalCode** `string` *required*
>
> **lineItems** `LineItem[]`
>
> **properties**
>
> **accountId** `string` *required*
>
> **description** `string`
>
> \*\*dimensions \*\* `Dimension[]`
>
> **properties**
>
> **categoryName** `string`
>
> \*\*name \*\* `string`
>
> **itemId** `string` *required*
>
> **name** `string`
>
> **quantity** `number`
>
> **taxCode** `string`
>
> The `taxCode` is used to determine the tax rate for the line item.
>
> > [!NOTE]
> >
> > If `taxCode` is not provided, the default tax code will be used (if available).
>
> **taxRatePercentage** `number`
>
> > [!NOTE]
> >
> > If `taxCode` is provided, this `taxRatePercentage` will be overridden by the tax rate associated with the provided `taxCode`.
>
> **unitAmount** `number` *required*
>
> The `unitAmount` is the net amount charged for each unit of the line item.
>
> > [!NOTE]
> >
> > When the `taxCode` is of type INCLUSIVE, then the `unitAmount` will be treated as a gross amount (i.e., including tax).
>
> **paymentTermId** `string`

> [accordion] fortnox
>
> Supported request parameters:
>
> **addresses** `Address[]`
>
> **properties**
>
> **addressLine1** `string`
>
> **addressLine2** `string`
>
> **city** `string`
>
> **postalCode** `string`
>
> **countryCode** `enum`
>
> The `countryCode` field supports **ISO 3166-1 alpha-2** (2-letter codes).
> For details visit the [`Standardized Data`](https://docs.maesn.com/standardization) section.
>
> **type** `enum`
>
> Available options: `BILLING`, `DELIVERY`
>
> **contactId** `string` *required*
>
> **currency** `enum`
>
> The `currency` field supports **ISO 4217** (3-letter codes).
> For details visit the [`Standardized Data`](https://docs.maesn.com/standardization) section.
>
> **dueDate** `string`
>
> For date format details visit the [Standardized Data](https://docs.maesn.com/standardization.md) section
>
> **invoiceDate** `string`
>
> For date format details visit the [Standardized Data](https://docs.maesn.com/standardization.md) section
>
> **invoiceNumber** `string`
>
> Unique alpha numeric code identifying the invoice.
>
> **invoiceType** `enum`
>
> Available options: `STANDARD`
>
> **journalCode** `string`
>
> **lineItems** `LineItem[]`
>
> **properties**
>
> **accountCode** `string`
>
> **description** `string`
>
> \*\*dimensions \*\* `Dimension[]`
>
> **properties**
>
> \*\*name \*\* `string`
>
> **discountItemAmount** `number`
>
> **discountItemPercentage** `number`
>
> **grossAmount** `number`
>
> **itemId** `string`
>
> **quantity** `number`
>
> **taxCode** `string`
>
> **taxRatePercentage** `number`
>
> **paymentTermId** `string`
>
> **reference** `string`

> [accordion] Lexware Office
>
> > [!NOTE]
> >
> > As a minimum a valid `contactId` OR a `name` and `countryCode` must be provided. We recommend to always provide a valid `address` in addition in the latter case
>
> Supported request parameters:
>
> **contactId** `string`
>
> **name** `string`
>
> **currency** `enum` *required*
>
> The `currency` field supports **ISO 4217** (3-letter codes).
> For details visit the [`Standardized Data`](https://docs.maesn.com/standardization) section.
>
> **invoiceDate** `string` *required*
>
> For date format details visit the [Standardized Data](https://docs.maesn.com/standardization.md) section
>
> **addresses** `Address[]`
>
> **properties**
>
> **addressLine1** `string`
>
> **addressLine2** `string`
>
> **city** `string`
>
> **postalCode** `string`
>
> **countryCode** `enum`
>
> The `countryCode` field supports **ISO 3166-1 alpha-2** (2-letter codes).
> For details visit the [`Standardized Data`](https://docs.maesn.com/standardization) section.
>
> **type** `enum`
>
> Available options: `BILLING`
>
> **taxRule** `enum` *required*
>
> Available options:
>
> `NET`, `TAXFREE`, `INTRACOMMUNITY_GOODS`, `INTRACOMMUNITY_SERVICE`, `EXPORT_SERVICE`, `EXPORT_GOODS`, `REVERSE_CHARGE` , `GROSS`, `CONSTRUCTION_SERVICE`, `PHOTOVOLTAIC_EQUIPMENT`
>
> **lineItems** `LineItem[]` *required*
>
> **properties**
>
> **id** `string`
>
> Note that this field is required if `type` is `SERVICE_ITEM` or `MATERIAL`
>
> **name** `string` *required*
>
> **description** `string`
>
> **quantity** `number`
>
> Note that quantity can be a decimal numeral.
>
> **type** `enum` *required*
>
> Available options: `SERVICE_ITEM`, `MATERIAL`, `CUSTOM`, `TEXT`
>
> **unitName** `string` *required*
>
> **unitAmount** `number`
>
> Note that this field is required if `taxRule` is `NET`
>
> **grossAmount** `number`
>
> Note that this field is required if `taxRule` is `GROSS`
>
> **taxRatePercentage** `number` *required*
>
> **discountItemPercentage** `number`
>
> **shippingType** `enum` *required*
>
> Available options:
>
> `SERVICE`, `SERVICEPERIOD`, `DELIVERY`, `DELIVERYPERIOD`, `NONE`
>
> **shippingDate** `string`
>
> For date format details visit the [Standardized Data](https://docs.maesn.com/standardization.md) section
>
> Note that this field is required if `shippingType` is `SERVICE`, `DELIVERY`, `SERVICEPERIOD` or `DELIVERYPERIOD`.
>
> **shippingEndDate** `string`
>
> For date format details visit the [Standardized Data](https://docs.maesn.com/standardization.md) section
>
> Note that this field is required if `shippingType` is `SERVICEPERIOD` or `DELIVERYPERIOD`
>
> **paymentTermDuration** `number`

> [accordion] QuickBooks
>
> Supported request parameters:
>
> **addresses** `Address[]`
>
> **properties**
>
> **addressLine1** `string`
>
> **addressLine2** `string`
>
> **city** `string`
>
> **postalCode** `string`
>
> **countryCode** `enum`
>
> The `countryCode` field supports **ISO 3166-1 alpha-2** (2-letter codes).
> For details visit the [`Standardized Data`](https://docs.maesn.com/standardization) section.
>
> **type** `enum`
>
> Available options: `BILLING`,`DELIVERY`
>
> **contactId** `string`
>
> **dueDate** `string`
>
> For date format details visit the [Standardized Data](https://docs.maesn.com/standardization.md) section
>
> **invoiceDate** `string`
>
> For date format details visit the [Standardized Data](https://docs.maesn.com/standardization.md) section
>
> **invoiceNumber** `string`
>
> **lineItems** `LineItem[]` *required*
>
> **properties**
>
> **description** `string`
>
> **itemId** `string`
>
> **quantity** `number` *required*
>
> Note that quantity can be a decimal numeral.
>
> **taxCode** `string`
>
> > [!NOTE]
> >
> > The field is not supported for non UK companies. For UK companies it is required.
>
> **unitAmount** `number` *required*
>
> **status** `enum`
>
> Available options: `DRAFT`,`OPEN`

> [accordion] Sage Active
>
> > [!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. Please use the id field as the companyId.
>
> Supported request parameters:
>
> **contactId** `string`
>
> **invoiceDate** `string` *required*
>
> For date format details visit the [Standardized Data](https://docs.maesn.com/standardization.md) section
>
> **reference** `string`
>
> Additional document number.
>
> **lineItems** `LineItem[]` *required*
>
> **properties**
>
> **itemId** `string` *required*
>
> The product ID.
>
> **name** `string` *required*
>
> **quantity** `number`
>
> Note that quantity can be a decimal numeral.
>
> **unitAmount** `number`
>
> **discountItemPercentage** `number`

> [accordion] Sevdesk
>
> Supported request parameters:
>
> **contactId** `string` *required*
>
> **reference** `string`
>
> Additional reference number. May be customer number, order number or similar.
>
> **currency** `enum` *required*
>
> The `currency` field supports **ISO 4217** (3-letter codes).
> For details visit the [`Standardized Data`](https://docs.maesn.com/standardization) section.
>
> **invoiceDate** `string` *required*
>
> For date format details visit the [Standardized Data](https://docs.maesn.com/standardization.md) section
>
> **status** `enum` *required*
>
> Available options: `DRAFT`, `SUBMITTED`, `AUTHORISED`, `PAID`, `CANCELED`
>
> **invoiceType** `enum` *required*
>
> Available options: `STANDARD`
>
> **taxRule** `enum` *required*
>
> Available options:
>
> `NET`, `TAXFREE`, `INTRACOMMUNITY_SERVICE`, `EXPORT_SERVICE`, `REVERSE_CHARGE`, `SMALL_BUSINESS_VAT_EXEMPTION` , `NON_DOMESTIC_SERVICE`, `OSS_GOODS`, `OSS_ELECTRONIC_SERVICES`, `OSS_SERVICES`
>
> **taxText** `string` *required*
>
> Tax description
>
> **lineItems** `LineItem[]` *required*
>
> **properties**
>
> **name** `string` *required*
>
> **quantity** `number` *required*
>
> Note that quantity can be a decimal numeral.
>
> **description** `string`
>
> **unitAmount** `number`
>
> **taxRatePercentage** `number` *required*
>
> **discountPercentage** `number`
>
> **shippingDate** `string`
>
> For date format details visit the [Standardized Data](https://docs.maesn.com/standardization.md) section
>
> **paidDate** `string`
>
> For date format details visit the [Standardized Data](https://docs.maesn.com/standardization.md) section
>
> **paymentTermDuration** `number`

> [accordion] weclapp
>
> Supported request parameters:
>
> **addresses** `Address[]`
>
> **properties**
>
> **addressLine1** `string`
>
> **addressLine2** `string`
>
> **city** `string`
>
> **postalCode** `string`
>
> **countryCode** `enum`
>
> The `countryCode` field supports **ISO 3166-1 alpha-2** (2-letter codes).
> For details visit the [`Standardized Data`](https://docs.maesn.com/standardization) section.
>
> **type** `enum`
>
> Available options: `BILLING`, `DELIVERY`
>
> **contactId** `string` *required*
>
> **dueDate** `string`
>
> For date format details visit the [Standardized Data](https://docs.maesn.com/standardization.md) section
>
> **invoiceDate** `string`
>
> For date format details visit the [Standardized Data](https://docs.maesn.com/standardization.md) section
>
> **invoiceNumber** `string`
>
> Unique alpha numeric code identifying the invoice.
>
> **invoiceType** `enum`
>
> Available options: `STANDARD`
>
> **lineItems** `LineItem[]`
>
> **properties**
>
> **lineItemId** `string`
>
> **name** `string`
>
> **quantity** `number`
>
> Note that quantity can be a decimal numeral.
>
> **taxRatePercentage** `number`
>
> **unitAmount** `number`
>
> **grossAmount** `number`
>
> **itemsAmount** `number`
>
> **discountItemAmount** `number`
>
> **discountItemPercentage** `number`
>
> **description** `string`
>
> **paymentStatus** `enum`
>
> Available options: `PENDING`, `PAID`, `CLEARED_WITH_CREDIT_NOTE`, `CREDIT_NOTE_CLEARED`, `NO_OPEN_ITEM`, `UNKNOWN`
>
> **salesOrderId** `string`
>
> **shippingDate** `string`
>
> For date format details visit the [Standardized Data](https://docs.maesn.com/standardization.md) section
>
> **status** `enum`
>
> Available options: `DRAFT`, `SUBMITTED`, `DOCUMENT_CREATED`, `OPEN`, `VOIDED`
>
> **sumNetAmount** `number`
>
> **totalAmount** `number`
>
> **totalTaxAmount** `number`

> [accordion] Xero
>
> Supported request parameters:
>
> **contactId** `string` *required*
>
> **reference** `string`
>
> Additional reference number. May be customer number, order number or similar.
>
> **currency** `enum` *required*
>
> The `currency` field supports **ISO 4217** (3-letter codes).
> For details visit the [`Standardized Data`](https://docs.maesn.com/standardization) section.
>
> **invoiceDate** `string` *required*
>
> For date format details visit the [Standardized Data](https://docs.maesn.com/standardization.md) section
>
> **status** `enum` *required*
>
> Available options: `DRAFT`, `SUBMITTED`, `AUTHORISED`, `PAID`, `CANCELED`
>
> **invoiceType** `enum` *required*
>
> Available options: `STANDARD`
>
> **lineItems** `LineItem[]` *required*
>
> **properties**
>
> **quantity** `number` *required*
>
> Note that quantity can be a decimal numeral.
>
> **description** `string`
>
> **unitAmount** `number`
>
> **accountCode** `number` *required*
>
> **discountItemPercentage** `number`
>
> **lineAmountTypes** `enum`
>
> Available options: `EXCLUSIVE`, `INCLUSIVE`, `NOTAX`
>
> **dueDate** `string`
>
> For date format details visit the [Standardized Data](https://docs.maesn.com/standardization.md) section


## OpenAPI

````yaml post /accounting/invoices
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/invoices:
    post:
      tags:
        - accounting
      operationId: createInvoice
      parameters:
        - name: X-API-KEY
          description: API key
          in: header
          schema:
            type: string
        - name: X-ACCOUNT-KEY
          description: Account key
          in: header
          schema:
            type: string
        - name: companyId
          required: false
          in: query
          schema:
            type: string
        - name: environmentName
          in: query
          schema:
            type: string
          required: false
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateInvoiceRequestDto'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/BaseResponseDto'
                  - properties:
                      data:
                        $ref: '#/components/schemas/InvoiceResponseDto'
components:
  schemas:
    CreateInvoiceRequestDto:
      type: object
      properties:
        addresses:
          type: array
          items:
            $ref: '#/components/schemas/Address'
        contactId:
          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
        discountPercentage:
          type: number
          example: 10
        dueDate:
          type: string
          example: '2021-02-01T00:00:00Z'
        fileId:
          type: string
          example: 93c6b8e0-80a4-4c22-a46c-18beebab82d6
        grossTotalAmount:
          description: >-
            Gross amount of the invoice — the net amount plus tax (total,
            including VAT).
          type: number
          example: 119
        invoiceDate:
          type: string
          example: '2021-01-01T00:00:00Z'
        invoiceNumber:
          type: string
          example: '1020'
        invoiceType:
          type: string
          example: STANDARD
          enum:
            - STANDARD
        journalCode:
          type: string
          example: '50'
        lineAmountTypes:
          type: string
          example: EXCLUSIVE
          enum:
            - EXCLUSIVE
            - INCLUSIVE
            - NOTAX
        lineItems:
          type: array
          items:
            $ref: '#/components/schemas/InvoiceLineItemRequest'
        name:
          type: string
          example: Office Supplies
        oneLineAddress:
          type: string
          example: Main street 45, Berlin
        paidDate:
          type: string
          example: '2021-01-25T00:00:00Z'
        paymentTermDuration:
          type: number
          example: 30
        paymentTermId:
          type: string
          example: '1'
        reference:
          type: string
          example: RCXF197253F
        salesOrderId:
          type: string
          example: '30911'
        shippingDate:
          type: string
          example: '2021-01-01T00:00:00Z'
        shippingEndDate:
          type: string
          example: '2021-01-10T00:00:00Z'
        shippingType:
          type: string
          example: DELIVERYPERIOD
          enum:
            - SERVICE
            - SERVICEPERIOD
            - DELIVERY
            - DELIVERYPERIOD
            - NONE
        status:
          type: string
          example: DRAFT
          enum:
            - DRAFT
            - CORRECTIVE
            - SUBMITTED
            - DOCUMENT_CREATED
            - OPEN
            - PARTIALLY_PAID
            - PAID
            - PARTIALLY_OVERDUE
            - OVERDUE
            - VOIDED
        taxRule:
          type: string
          example: NET
          enum:
            - NET
            - TAXFREE
            - INTRACOMMUNITY_GOODS
            - INTRACOMMUNITY_SERVICE
            - EXPORT_SERVICE
            - EXPORT_GOODS
            - REVERSE_CHARGE
            - GROSS
            - CONSTRUCTION_SERVICE
            - PHOTOVOLTAIC_EQUIPMENT
            - SMALL_BUSINESS_VAT_EXEMPTION
            - NON_DOMESTIC_SERVICE
            - OSS_GOODS
            - OSS_ELECTRONIC_SERVICES
            - OSS_SERVICES
        taxText:
          type: string
          example: Tax 19 percent
    BaseResponseDto:
      type: object
      properties:
        meta:
          $ref: '#/components/schemas/MetaResponse'
        data:
          oneOf:
            - type: object
            - type: array
    InvoiceResponseDto:
      type: object
      properties:
        id:
          type: string
          example: 9714f3a2-5b8e-4d1b-8a0c-9f6e7d2f3e4b
        invoiceId:
          type: string
          example: 9714f3a2-5b8e-4d1b-8a0c-9f6e7d2f3e4b
        addresses:
          type: array
          items:
            $ref: '#/components/schemas/Address'
        contactId:
          type: string
          example: eaa28f49-6028-4b6e-bb12-d8f6278073fc
        createdDate:
          type: string
          example: '2021-01-01T00:00:00Z'
        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
        discountAmount:
          description: Total discount applied to the invoice, in the document currency.
          type: number
          example: 10
        dueDate:
          type: string
          example: '2021-02-01T00:00:00Z'
        fileId:
          type: string
          example: 93c6b8e0-80a4-4c22-a46c-18beebab82d6
        invoiceDate:
          type: string
          example: '2021-01-01T00:00:00Z'
        invoiceNumber:
          type: string
          example: '1020'
        invoiceType:
          type: string
          example: STANDARD
          enum:
            - STANDARD
        journalCode:
          type: string
          example: '50'
        lineAmountType:
          type: string
          example: EXCLUSIVE
          enum:
            - EXCLUSIVE
            - INCLUSIVE
            - NOTAX
        lineItems:
          type: array
          items:
            $ref: '#/components/schemas/InvoiceLineItemResponseDto'
        name:
          type: string
          example: Office Supplies
        oneLineAddress:
          type: string
          example: Main street 45, Berlin
        paidDate:
          type: string
          example: '2021-01-25T00:00:00Z'
        paymentStatus:
          description: >-
            Best-effort payment/open-item status. Only populated by some source
            systems; `null` for all others. Prefer `status` for reliable
            lifecycle logic, and always handle the `null` case. See [Document
            status fields](/standardization#document-status-fields).
          type: string
          example: PENDING
          enum:
            - PENDING
            - PAID
            - PARTLY_PAID
            - CANCELED
            - PARTIAL_CANCELLATION
            - BAD_DEBT
            - DEBITED
        paymentTermDuration:
          type: number
          example: 30
        paymentTermId:
          type: string
          example: '1'
        reference:
          type: string
          example: RCXF197253F
        salesOrderId:
          type: string
          example: '30911'
        shippingDate:
          type: string
          example: '2021-01-01T00:00:00Z'
        status:
          description: >-
            The document's lifecycle status, populated across all source
            systems. Use this as the authoritative state for lifecycle and
            paid/unpaid logic; prefer it over the best-effort `paymentStatus`.
            See [Document status
            fields](/standardization#document-status-fields).
          type: string
          example: DRAFT
          enum:
            - DRAFT
            - CORRECTIVE
            - SUBMITTED
            - DOCUMENT_CREATED
            - OPEN
            - PARTIALLY_PAID
            - PAID
            - PARTIALLY_OVERDUE
            - OVERDUE
            - VOIDED
        sumNetAmount:
          description: Net amount of the invoice — the total before tax (excluding VAT).
          type: number
          example: 100
        taxRule:
          type: string
          example: NET
          enum:
            - NET
            - TAXFREE
            - INTRACOMMUNITY_GOODS
            - INTRACOMMUNITY_SERVICE
            - EXPORT_SERVICE
            - EXPORT_GOODS
            - REVERSE_CHARGE
            - GROSS
            - CONSTRUCTION_SERVICE
            - PHOTOVOLTAIC_EQUIPMENT
            - SMALL_BUSINESS_VAT_EXEMPTION
            - NON_DOMESTIC_SERVICE
            - OSS_GOODS
            - OSS_ELECTRONIC_SERVICES
            - OSS_SERVICES
        totalAmount:
          description: >-
            Gross amount of the invoice — the net amount plus tax (the total
            payable, including VAT).
          type: number
          example: 109
        totalTaxAmount:
          description: >-
            Tax (VAT) amount of the invoice — the difference between the gross
            (`totalAmount`) and net (`sumNetAmount`) totals.
          type: number
          example: 19
        updatedDate:
          type: string
          example: '2021-01-01T00:00:00Z'
    Address:
      type: object
      properties:
        addressLine1:
          type: string
          example: Main street 45
        addressLine2:
          type: string
          example: 2nd floor
        city:
          type: string
          example: Berlin
        countryCode:
          type: string
          enum:
            - AD
            - AE
            - AF
            - AG
            - AI
            - AL
            - AM
            - AO
            - AQ
            - AR
            - AS
            - AT
            - AU
            - AW
            - AX
            - AZ
            - BA
            - BB
            - BD
            - BE
            - BF
            - BG
            - BH
            - BI
            - BJ
            - BL
            - BM
            - BN
            - BO
            - BQ
            - BR
            - BS
            - BT
            - BV
            - BW
            - BY
            - BZ
            - CA
            - CC
            - CD
            - CF
            - CG
            - CH
            - CI
            - CK
            - CL
            - CM
            - CN
            - CO
            - CR
            - CU
            - CV
            - CW
            - CX
            - CY
            - CZ
            - DE
            - DJ
            - DK
            - DM
            - DO
            - DZ
            - EC
            - EE
            - EG
            - EH
            - ER
            - ES
            - ET
            - FI
            - FJ
            - FK
            - FM
            - FO
            - FR
            - GA
            - GB
            - GD
            - GE
            - GF
            - GG
            - GH
            - GI
            - GL
            - GM
            - GN
            - GP
            - GQ
            - GR
            - GS
            - GT
            - GU
            - GW
            - GY
            - HK
            - HM
            - HN
            - HR
            - HT
            - HU
            - ID
            - IE
            - IL
            - IM
            - IN
            - IO
            - IQ
            - IR
            - IS
            - IT
            - JE
            - JM
            - JO
            - JP
            - KE
            - KG
            - KH
            - KI
            - KM
            - KN
            - KP
            - KR
            - KW
            - KY
            - KZ
            - LA
            - LB
            - LC
            - LI
            - LK
            - LR
            - LS
            - LT
            - LU
            - LV
            - LY
            - MA
            - MC
            - MD
            - ME
            - MF
            - MG
            - MH
            - MK
            - ML
            - MM
            - MN
            - MO
            - MP
            - MQ
            - MR
            - MS
            - MT
            - MU
            - MV
            - MW
            - MX
            - MY
            - MZ
            - NA
            - NC
            - NE
            - NF
            - NG
            - NI
            - NL
            - 'NO'
            - NP
            - NR
            - NU
            - NZ
            - OM
            - PA
            - PE
            - PF
            - PG
            - PH
            - PK
            - PL
            - PM
            - PN
            - PR
            - PT
            - PW
            - PY
            - QA
            - RE
            - RO
            - RS
            - RU
            - RW
            - SA
            - SB
            - SC
            - SD
            - SE
            - SG
            - SH
            - SI
            - SJ
            - SK
            - SL
            - SM
            - SN
            - SO
            - SR
            - SS
            - ST
            - SV
            - SX
            - SY
            - SZ
            - TC
            - TD
            - TF
            - TG
            - TH
            - TJ
            - TK
            - TL
            - TM
            - TN
            - TO
            - TR
            - TT
            - TV
            - TW
            - TZ
            - UA
            - UG
            - UM
            - US
            - UY
            - UZ
            - VA
            - VC
            - VE
            - VG
            - VI
            - VN
            - VU
            - WF
            - WS
            - YE
            - YT
            - ZA
            - ZM
            - ZW
          example: DE
        postalCode:
          type: string
          example: '10243'
        type:
          type: string
          enum:
            - BILLING
            - DELIVERY
            - SELLING
          example: BILLING
    InvoiceLineItemRequest:
      type: object
      properties:
        accountCode:
          type: string
          example: '1890'
        accountId:
          type: string
          example: 6733a433-9662-4a40-8e36-e38ebda94fe1
        description:
          type: string
          example: SEOUL Guest Chair, red
        dimensions:
          type: array
          items:
            $ref: '#/components/schemas/InvoiceLineItemDimension'
        discountItemPercentage:
          type: number
          example: 10
        grossAmount:
          description: Gross amount of the line item — net plus tax (including VAT).
          type: number
          example: 109
        itemId:
          type: string
          example: 9fc4f3a2-5b8e-4d1b-8a0c-9f6e7d2f3e4b
        name:
          type: string
          example: RED CHAIR
        quantity:
          type: number
          example: 1
        taxCode:
          type: string
          example: '03'
        taxRatePercentage:
          type: number
          example: 19
        taxType:
          type: string
          example: Tax 19 percent
        type:
          type: string
          example: SERVICE
          enum:
            - SERVICE_ITEM
            - MATERIAL
            - CUSTOM
            - TEXT
        unitAmount:
          description: Price per unit, in the document currency.
          type: number
          example: 100
        unitName:
          type: string
          example: PIECE
    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.
    InvoiceLineItemResponseDto:
      type: object
      properties:
        lineItemId:
          type: string
          example: 987a2b3c-4d5e-6f7g-8h9i-0j1k2l3m4n5o
        accountId:
          type: string
          example: 6733a433-9662-4a40-8e36-e38ebda94fe1
        createdDate:
          type: string
          example: '2021-01-01T00:00:00Z'
        description:
          type: string
          example: SEOUL Guest Chair, red
        dimensions:
          type: array
          items:
            $ref: '#/components/schemas/InvoiceLineItemDimension'
        discountItemAmount:
          description: Discount applied to the line item, in the document currency.
          type: number
          example: 10
        discountItemPercentage:
          description: Discount applied to the line item, as a percentage.
          type: number
          example: 10
        grossAmount:
          description: Gross amount of the line item — net plus tax (including VAT).
          type: number
          example: 109
        itemsAmount:
          description: >-
            Line subtotal — unit price multiplied by quantity, before discount
            and tax.
          type: number
          example: 100
        itemId:
          type: string
          example: 9fc4f3a2-5b8e-4d1b-8a0c-9f6e7d2f3e4b
        name:
          type: string
          example: RED CHAIR
        quantity:
          type: number
          example: 1
        taxCode:
          type: string
          example: '03'
        taxRatePercentage:
          type: number
          example: 19
        unitAmount:
          description: Price per unit, in the document currency.
          type: number
          example: 100
        updatedDate:
          type: string
          example: '2021-01-01T00:00:00Z'
    InvoiceLineItemDimension:
      type: object
      properties:
        id:
          type: string
          example: c1d2e3f4-5678-9abc-def0-1234567890ab
        categoryName:
          type: string
          example: CostCenter
        name:
          type: string
          example: C1
    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.