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

# Get bills

## Field support per integration

> [accordion] BuchhaltungsButler
>
> Query parameters:
>
> **limit** `enum`
>
> Available options: `5`, `10`, `20`, `50`, `100`
>
> **page** `number`
>
> **filter** `string`
>
> **object**
>
> **billDateFrom** `string`
>
> Filter by from-date on the bill.\\
>
> Example: `billDateFrom=2021-01-01T00:00:00Z`
>
> **status** `enum`
>
> Filter by bill status.\\
>
> Example: `status=OPEN`
>
> **orderField** `string`
>
> **values**
>
> **billDate** `string`
>
> Sort by bill date
>
> **billNumber** `string`
>
> Sort by bill number
>
> **name** `string`
>
> Sort by the name field on the bill
>
> **orderDir** `enum`
>
> Available options: `ASC`, `DESC`
>
> **rawData** `boolean`
>
> Supported response fields:
>
> **id** `string`
>
> **accountId** `string`
>
> **billDate** `string`
>
> For date format details visit the [Standardized Data](https://docs.maesn.com/standardization.md) section
>
> **billNumber** `string`
>
> **createdDate** `string`
>
> For date format details visit the [Standardized Data](https://docs.maesn.com/standardization.md) section
>
> **deliveryDate** `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
>
> **name** `string`
>
> **paidDate** `string`
>
> For date format details visit the [Standardized Data](https://docs.maesn.com/standardization.md) section
>
> **status** `enum`
>
> Available options: `OPEN`, `PAID`
>
> **totalGrossAmount** `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.
>
> Query parameters:
>
> **limit** `enum`
>
> Available options: `5`, `10`, `20`, `50`, `100`
>
> **page** `number`
>
> **filter** `string`
>
> **object**
>
> **lastModifiedAt** `string`
>
> Filter by last modified date.\\
>
> For date format details visit the [Standardized Data](https://docs.maesn.com/standardization.md) section.
>
> **rawData** `boolean`
>
> Supported response fields:
>
> **id** `string`
>
> **addresses** `Address[]`
>
> **properties**
>
> **type** `enum`
>
> Available options: `BILLING`, `DELIVERY`
>
> **addressLine1** `string`
>
> **addressLine2** `string`
>
> **city** `string`
>
> **countryCode** `string`
>
> **postalCode** `string`
>
> **billDate** `string`
>
> For date format details visit the [Standardized Data](https://docs.maesn.com/standardization.md) section
>
> **billNumber** `string`
>
> **contactId** `string`
>
> **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
>
> **lineItems** `LineItem[]`
>
> **properties**
>
> **id** `string`
>
> **accountId** `string`
>
> **description** `string`
>
> **itemId** `string`
>
> **quantity** `number`
>
> **taxCode** `string`
>
> **taxRatePercentage** `number`
>
> **totalDiscountAmount** `number`
>
> **totalDiscountPercentage** `number`
>
> **totalGrossAmount** `number`
>
> **totalNetAmount** `number`
>
> **totalTaxAmount** `number`
>
> **unitAmount** `number`
>
> **unitName** `string`
>
> **paymentStatus** `enum`
>
> Available options: `PENDING`, `PAID`, `CANCELED`, `NO_OPEN_ITEM`, `UNKNOWN`
>
> **reference** `string`
>
> **status** `enum`
>
> Available options: `DRAFT`, `SUBMITTED`, `OPEN`, `PAID`, `VOIDED`, `CORRECTIVE`
>
> **totalDiscountAmount** `number`
>
> **totalGrossAmount** `number`
>
> **totalNetAmount** `number`
>
> **totalTaxAmount** `number`
>
> **updatedDate** `string`
>
> For date format details visit the [Standardized Data](https://docs.maesn.com/standardization.md) section

> [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.
>
> Query parameters:
>
> **limit** `enum`
>
> Available options: `5`, `10`, `20`, `50`, `100`
>
> **page** `number`
>
> **filter** `string`
>
> **object**
>
> **lastModifiedAt** `string`
>
> Filter by last modified date.\\
>
> Example: `lastModifiedAt=2021-01-01T00:00:00Z`
>
> **rawData** `boolean`
>
> Supported response fields:
>
> **id** `string`
>
> **billDate** `string`
>
> For date format details visit the [Standardized Data](https://docs.maesn.com/standardization.md) section
>
> **billNumber** `string`
>
> **contactId** `string`
>
> **createdDate** `string`
>
> For date format details visit the [Standardized Data](https://docs.maesn.com/standardization.md) section
>
> **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
>
> **fileId** `string`
>
> **journalCode** `string`
>
> **paymentReference** `string`
>
> **paymentTermCode** `string`
>
> **reference** `string`
>
> **status** `enum`
>
> Available options: `OPEN`, `PAID`, `OVERDUE`
>
> **totalGrossAmount** `number`
>
> **totalTaxAmount** `number`
>
> **updatedDate** `string`
>
> For date format details visit the [Standardized Data](https://docs.maesn.com/standardization.md) section

> [accordion] fortnox
>
> Query parameters:
>
> **limit** `enum`
>
> Available options: `5`, `10`, `20`, `50`, `100`
>
> **page** `number`
>
> **filter** `string`
>
> **object**
>
> **lastModifiedAt** `string`
>
> Filter by last modified date.\\
>
> Example: `lastModifiedAt=2021-01-01T00:00:00Z`
>
> **rawData** `boolean`
>
> Supported response fields:
>
> **id** `string`
>
> **billDate** `string`
>
> For date format details visit the [Standardized Data](https://docs.maesn.com/standardization.md) section
>
> **billNumber** `string`
>
> **contactId** `string`
>
> **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
>
> **totalGrossAmount** `number`

> [accordion] Lexware Office
>
> Query parameters:
>
> **limit** `enum`
>
> Available options: `5`, `10`, `20`, `50`, `100`
>
> **page** `number`
>
> **filter** `string`
>
> **object**
>
> **lastModifiedAt** `string`
>
> Filter by last modified date. \\
>
> **Note** that the timestamp shall be in the form YYYY-MM-DDT00:00:00Z (milliseconds are not supported in Lexware office)\\
>
> Example: `lastModifiedAt=2021-01-01T00:00:00Z`
>
> **status** `enum`
>
> Filter by bill status.\\
>
> Example: `status=OPEN`
>
> **orderField** `string`
>
> **values**
>
> **billDate** `string`
>
> Sort by bill date
>
> **billNumber** `string`
>
> Sort by bill number
>
> **createdDate** `string`
>
> Sort by creation date
>
> **updatedDate** `string`
>
> Sort by update date
>
> **orderDir** `enum`
>
> Available options: `ASC`, `DESC`
>
> **rawData** `boolean`
>
> Supported response fields:
>
> **id** `string`
>
> **billDate** `string`
>
> For date format details visit the [Standardized Data](https://docs.maesn.com/standardization.md) section
>
> **billNumber** `string`
>
> **contactId** `string`
>
> **createdDate** `string`
>
> For date format details visit the [Standardized Data](https://docs.maesn.com/standardization.md) section
>
> **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
>
> **name** `string`
>
> **status** `enum`
>
> Available options: `DRAFT`, `OPEN`, `PAID`, `OVERDUE`, `VOIDED`, `SUBMITTED`
>
> **totalGrossAmount** `number`
>
> **updatedDate** `string`
>
> For date format details visit the [Standardized Data](https://docs.maesn.com/standardization.md) section

> [accordion] Qonto
>
> Query parameters:
>
> **limit** `enum`
>
> Available options: `5`, `10`, `20`, `50`, `100`
>
> **page** `number`
>
> **filter** `string`
>
> **object**
>
> **lastModifiedAt** `string`
>
> Filter by last modified date.
> Example: `lastModifiedAt=2021-01-01T00:00:00Z`
>
> **status** `enum`
>
> Filter by bill status.\\
>
> Example: `status=OPEN`
>
> **orderField** `string`
>
> **values**
>
> **createdDate** `string`
>
> Sort by creation date
>
> **updatedDate** `string`
>
> Sort by update date
>
> **orderDir** `enum`
>
> Available options: `ASC`, `DESC`
>
> **rawData** `boolean`
>
> Supported response fields:
>
> **id** `string`
>
> **billDate** `string`
>
> For date format details visit the [Standardized Data](https://docs.maesn.com/standardization.md) section
>
> **billNumber** `string`
>
> **contactId** `string`
>
> **createdDate** `string`
>
> For date format details visit the [Standardized Data](https://docs.maesn.com/standardization.md) section
>
> **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
>
> **fileId** `string`
>
> **name** `string`
>
> **paidDate** `string`
>
> For date format details visit the [Standardized Data](https://docs.maesn.com/standardization.md) section
>
> **status** `enum`
>
> Available options: `DRAFT`,`SUBMITTED`, `OPEN`, `PAID`,`VOIDED`
>
> **totalGrossAmount** `number`
>
> **updatedDate** `string`
>
> For date format details visit the [Standardized Data](https://docs.maesn.com/standardization.md) section

> [accordion] sevdesk
>
> Query parameters:
>
> **limit** `enum`
>
> Available options: `5`, `10`, `20`, `50`, `100`
>
> **page** `number`
>
> **filter** `string`
>
> **object**
>
> **lastModifiedAt** `string`
>
> Filter by last modified date.
> Example: `lastModifiedAt=2021-01-01T00:00:00Z`
>
> **status** `enum`
>
> Filter by bill status.\\
>
> Example: `status=OPEN`
>
> **rawData** `boolean`
>
> Supported response fields:
>
> **id** `string`
>
> **billDate** `string`
>
> For date format details visit the [Standardized Data](https://docs.maesn.com/standardization.md) section
>
> **billNumber** `string`
>
> **contactId** `string`
>
> **createdDate** `string`
>
> For date format details visit the [Standardized Data](https://docs.maesn.com/standardization.md) section
>
> **currency** `enum`
>
> The `currency` field supports **ISO 4217 alpha-3** (3-letter codes).
> For details visits the [`Standardized Data`](https://docs.maesn.com/standardization) section.
>
> **deliveryDate** `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
>
> **fileId** `string`
>
> **name** `string`
>
> **paidDate** `string`
>
> For date format details visit the [Standardized Data](https://docs.maesn.com/standardization.md) section
>
> **status** `enum`
>
> Available options: `DRAFT`, `SUBMITTED`, `OPEN`, `PARTIALLY_PAID`, `PAID`
>
> **totalGrossAmount** `number`
>
> **totalNetAmount** `number`
>
> **updatedDate** `string`
>
> For date format details visit the [Standardized Data](https://docs.maesn.com/standardization.md) section

> [accordion] weclapp
>
> Query parameters:
>
> **limit** `enum`
>
> Available options: `5`, `10`, `20`, `50`, `100`
>
> **page** `number`
>
> **filter** `string`
>
> **object**
>
> **lastModifiedAt** `string`
>
> Filter by last modified date on the bill.\\
>
> Example: `lastModifiedAt=2021-01-01T00:00:00Z`
>
> **rawData** `boolean`
>
> Supported response fields:
>
> **id** `string`
>
> **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`
>
> **billDate** `string`
>
> For date format details visit the [Standardized Data](https://docs.maesn.com/standardization.md) section
>
> **billNumber** `string`
>
> **contactId** `string`
>
> **createdDate** `string`
>
> For date format details visit the [Standardized Data](https://docs.maesn.com/standardization.md) section
>
> **currency** `enum`
>
> The `currency` field supports **ISO 4217 alpha-3** (3-letter codes).
> For details visit the [`Standardized Data`](https://docs.maesn.com/standardization) section.
>
> **deliveryDate** `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
>
> **lineItems** `BillLineItem[]`
>
> **properties**
>
> **id** `string`
>
> **accountId** `string`
>
> **createdDate** `string`
>
> For date format details visit the [Standardized Data](https://docs.maesn.com/standardization.md) section
>
> **description** `string`
>
> **itemId** `string`
>
> **itemName** `string`
>
> **quantity** `number`
>
> **totalDiscountPercentage** `number`
>
> **totalGrossAmount** `number`
>
> **totalNetAmount** `number`
>
> **unitAmount** `number`
>
> **updatedDate** `string`
>
> For date format details visit the [Standardized Data](https://docs.maesn.com/standardization.md) section
>
> **paymentStatus** `enum`
>
> Available options: `PENDING`, `PAID`, `NO_OPEN_ITEM`, `CREDIT_NOTE_CLEARED`, `CLEARED_WITH_CREDIT_NOTE`, `UNKNOWN`
>
> **reference** `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`
>
> **totalGrossAmount** `number`
>
> **totalNetAmount** `number`
>
> **totalTaxAmount** `number`
>
> **updatedDate** `string`
>
> For date format details visit the [Standardized Data](https://docs.maesn.com/standardization.md) section


## OpenAPI

````yaml get /accounting/bills
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/bills:
    get:
      tags:
        - accounting
      operationId: getBills
      parameters:
        - name: page
          required: false
          in: query
          schema:
            type: number
        - name: limit
          required: false
          in: query
          schema:
            enum:
              - 5
              - 10
              - 20
              - 50
              - 100
            type: number
        - name: orderDir
          required: false
          in: query
          schema:
            enum:
              - ASC
              - DESC
            type: string
        - name: orderField
          required: false
          in: query
          schema:
            enum:
              - billlDate
              - billNumber
              - createdDate
              - updatedDate
            type: string
        - name: companyId
          required: false
          in: query
          schema:
            type: string
        - name: environmentName
          in: query
          schema:
            type: string
          required: false
        - name: lastModifiedAt
          required: false
          in: query
          schema:
            type: number
        - name: billDateFrom
          required: false
          in: query
          schema:
            type: number
        - name: status
          required: false
          in: query
          schema:
            type: string
        - name: rawData
          required: false
          in: query
          schema:
            type: boolean
        - 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
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/BaseResponseDto'
                  - properties:
                      data:
                        type: array
                        items:
                          $ref: '#/components/schemas/BillResponseDto'
components:
  schemas:
    BaseResponseDto:
      type: object
      properties:
        meta:
          $ref: '#/components/schemas/MetaResponse'
        data:
          oneOf:
            - type: object
            - type: array
    BillResponseDto:
      type: object
      properties:
        id:
          type: string
          example: 9714f3a2-5b8e-4d1b-8a0c-9f6e7d2f3e4b
        accountId:
          type: string
          example: 6733a433-9662-4a40-8e36-e38ebda94fe1
        addresses:
          type: array
          items:
            $ref: '#/components/schemas/Address'
        billDate:
          type: string
          example: '2021-01-01T00:00:00Z'
        billNumber:
          type: string
          example: '1020'
        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
        deliveryDate:
          type: string
          example: '2021-01-01T00:00:00Z'
        dueDate:
          type: string
          example: '2021-07-01T00:00:00Z'
        fileId:
          type: string
          example: 93c6b8e0-80a4-4c22-a46c-18beebab82d6
        journalCode:
          type: string
          example: '30'
        lineItems:
          type: array
          items:
            $ref: '#/components/schemas/BillLineItem'
        name:
          type: string
          example: Office Supplies
        oneLineAddress:
          type: string
          example: Main street 45, Berlin
        paidDate:
          type: string
          example: '2021-01-25T00:00:00Z'
        paymentDays:
          type: number
          example: 30
        paymentReference:
          type: string
          example: Edefad142e764894
        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:
            - NO_OPEN_ITEM
            - PENDING
            - PAID
            - PARTLY_PAID
            - CANCELED
            - PARTIAL_CANCELLATION
            - BAD_DEBT
            - DEBITED
            - CREDIT_NOTE_CLEARED
            - CLEARED_WITH_CREDIT_NOTE
            - UNKNOWN
        paymentTermCode:
          type: string
          example: '21'
        reference:
          type: string
          example: 026 / 245
        shippingDate:
          type: string
          example: '2021-01-01T00:00:00Z'
        shippingType:
          type: string
          example: DELIVERY
          enum:
            - SERVICE
            - SERVICE_PERIOD
            - DELIVERY
            - DELIVERY_PERIOD
        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
        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
        totalDiscountAmount:
          description: Total discount applied, in the document currency.
          type: number
          example: 10
        totalDiscountPercentage:
          description: Total discount applied, as a percentage.
          type: number
          example: 10
        totalGrossAmount:
          description: >-
            Gross total — the net amount plus tax (the total payable, including
            VAT).
          type: number
          example: 109
        totalNetAmount:
          description: Net total — the sum of all line amounts before tax (excluding VAT).
          type: number
          example: 100
        totalTaxAmount:
          description: Tax (VAT) total — the difference between the gross and net totals.
          type: number
          example: 19
        updatedDate:
          type: string
          example: '2021-01-01T00: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.
    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
    BillLineItem:
      type: object
      properties:
        id:
          type: string
          example: 987a2b3c-4d5e-6f7g-8h9i-0j1k2l3m4n5o
        accountId:
          type: string
          example: 6733a433-9662-4a40-8e36-e38ebda94fe1
        accountNumber:
          type: string
          example: '200'
        createdDate:
          type: string
          example: '2021-01-01T00:00:00Z'
        deferredEndDate:
          type: string
          example: '2021-06-01T00:00:00Z'
        deferredStartDate:
          type: string
          example: '2021-01-01T00:00:00Z'
        description:
          type: string
          example: SEOUL Guest Chair, red
        dimensions:
          type: array
          items:
            $ref: '#/components/schemas/LineItemDimension'
        itemId:
          type: string
          example: 4f3a2hf4-5b8e-4d1b-8a0c-9f6e7d2f3e4b
        itemName:
          type: string
          example: RED CHAIR
        quantity:
          type: number
          example: 1
        taxCode:
          type: string
          example: '03'
        taxRatePercentage:
          type: number
          example: 19
        totalDiscountAmount:
          description: Discount applied to the line item, in the document currency.
          type: number
          example: 10
        totalDiscountPercentage:
          description: Discount applied to the line item, as a percentage.
          type: number
          example: 10
        totalGrossAmount:
          description: Gross amount of the line item — net plus tax (including VAT).
          type: number
          example: 109
        totalNetAmount:
          description: Net amount of the line item — before tax (excluding VAT).
          type: number
          example: 100
        totalTaxAmount:
          description: Tax (VAT) amount of the line item.
          type: number
          example: 19
        unitAmount:
          description: Price per unit, in the document currency.
          type: number
          example: 100
        unitDiscountAmount:
          description: Discount applied per unit, in the document currency.
          type: number
          example: 10
        unitDiscountPercentage:
          description: Discount applied per unit, as a percentage.
          type: number
          example: 10
        unitName:
          type: string
          example: PIECE
        updatedDate:
          type: string
          example: '2021-01-01T00:00:00Z'
    PaginationResponse:
      type: object
      properties:
        total:
          type: number
          example: 125
        perPage:
          type: number
          example: 50
        currentPage:
          type: number
          example: 1
        totalPages:
          type: number
          example: 3
    LineItemDimension:
      type: object
      properties:
        name:
          type: string
          example: C1
        categoryName:
          type: string
          example: CostCenter

````

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