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

## Field support per integration

<AccordionGroup>
  <Accordion title="Exact Online" icon="https://mintcdn.com/maesn/gCd41Ws3USFubam4/logo/exact.svg?fit=max&auto=format&n=gCd41Ws3USFubam4&q=85&s=afa1af7a261b22f843ac73ee60896ede" width="24" height="24" data-path="logo/exact.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>

    Supported request fields:

    <ResponseField name="billDate" type="string">
      ISO-8601 date format, e.g., 2024-01-01T00:00:00Z
    </ResponseField>

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

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

    <ResponseField name="currency" type="enum">
      Available options (3-letter ISO 4217):
      `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`
    </ResponseField>

    <ResponseField name="dueDate" type="string">
      ISO-8601 date format, e.g., 2024-01-01T00:00:00Z
    </ResponseField>

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

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

    <ResponseField name="lineItems" type="LineItem[]" required>
      <Expandable title="properties">
        <ResponseField name="id" type="string" required />

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

        <ResponseField name="deferredEndDate" type="string">
          Date to identify the start of the range for deferred costs. Use together with `deferredStartDate`.
        </ResponseField>

        <ResponseField name="deferredStartDate" type="string">
          Date to identify the start of the range for deferred costs. Use together with `deferredEndDate`.
        </ResponseField>

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

        <ResponseField name="dimensions" type="Dimension[]" />

        <Expandable title="properties">
          <ResponseField name="name" type="string" required />

          <ResponseField name="categoryName" type="string" required />
        </Expandable>

        <ResponseField name="quantity" type="number">
          Note that quantity can be a decimal numeral.
        </ResponseField>

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

        <Note>
          If the `taxCode` is not provided, it will be set to the default tax code for the account.
        </Note>

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

        <ResponseField name="totalNetAmount" type="number">
          The total amount for the item excluding tax.
        </ResponseField>

        <Note>
          If the `taxCode` is provided and is of type INCLUSIVE, the `totalNetAmount` will be treated as a gross amount (i.e., including tax).
        </Note>
      </Expandable>
    </ResponseField>

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

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

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

    <ResponseField name="status" type="enum">
      Available options: `OPEN`, `PAID`, `OVERDUE`
    </ResponseField>
  </Accordion>

  <Accordion title="fortnox" icon={<svg width="24" height="24" transform="translate(-7,-4)" viewBox="0 0 942 942" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="942" height="942" fill="#023826"/><path d="M187.3 399.302H148.877C122.135 399.302 104 417.437 104 444.179V540.388C104 543.155 105.537 544.692 108.303 544.692H129.666C132.433 544.692 133.969 543.155 133.969 540.388V500.429H187.453C190.22 500.429 191.757 498.892 191.757 496.126V475.685C191.757 472.919 190.22 471.382 187.453 471.382H133.816V443.411C133.816 434.497 139.81 428.503 148.724 428.503H187.3C190.066 428.503 191.603 426.966 191.603 424.199V403.605C191.603 400.839 190.066 399.302 187.3 399.302Z" fill="white"/><path d="M260.916 424.971C225.568 424.971 200.209 451.713 200.209 485.985C200.209 520.258 225.721 547 260.916 547C296.111 547 321.623 520.258 321.623 485.985C321.623 451.713 296.265 424.971 260.916 424.971ZM260.916 518.26C242.781 518.26 229.41 504.735 229.41 485.985C229.41 467.235 242.627 453.711 260.916 453.711C279.205 453.711 292.423 467.235 292.423 485.985C292.423 504.735 279.205 518.26 260.916 518.26Z" fill="white"/><path d="M467.167 427.121H430.742V399.303C430.742 396.537 429.205 395 426.439 395H405.076C402.31 395 400.773 396.537 400.773 399.303V427.121H375.107C348.519 427.121 330.229 445.256 330.229 471.998V540.39C330.229 543.156 331.766 544.693 334.533 544.693H355.896C358.662 544.693 360.199 543.156 360.199 540.39V471.076C360.199 462.162 366.193 456.168 375.107 456.168H400.773V499.816C400.773 526.558 418.908 544.693 445.65 544.693H467.013C469.779 544.693 471.316 543.156 471.316 540.39V519.949C471.316 517.183 469.779 515.646 467.013 515.646H445.804C436.89 515.646 430.896 509.652 430.896 500.738V456.168H467.32C470.087 456.168 471.624 454.631 471.624 451.865V431.424C471.47 428.504 469.933 427.121 467.167 427.121Z" fill="white"/><path d="M533.558 424.971C501.283 424.971 480.074 445.719 480.074 477.379V540.545C480.074 543.311 481.611 544.848 484.377 544.848H505.74C508.506 544.848 510.043 543.311 510.043 540.545V477.379C510.043 463.086 519.418 453.864 533.558 454.018C547.697 453.864 557.072 462.932 557.072 477.379V540.545C557.072 543.311 558.609 544.848 561.376 544.848H582.738C585.505 544.848 587.042 543.311 587.042 540.545V477.379C587.042 445.719 565.833 424.971 533.558 424.971Z" fill="white"/><path d="M656.36 424.971C621.012 424.971 595.653 451.713 595.653 485.985C595.653 520.258 621.165 547 656.36 547C691.709 547 717.068 520.258 717.068 485.985C717.068 451.713 691.555 424.971 656.36 424.971ZM656.36 518.26C638.225 518.26 624.854 504.735 624.854 485.985C624.854 467.235 638.071 453.711 656.36 453.711C674.496 453.711 687.867 467.235 687.867 485.985C687.867 504.735 674.496 518.26 656.36 518.26Z" fill="white"/><path d="M797.753 485.675L835.561 447.867C837.559 445.87 837.559 443.872 835.561 441.874L820.653 426.966C818.655 424.968 816.657 424.968 814.659 426.966L776.852 464.773L739.044 426.966C737.046 424.968 735.048 424.968 733.05 426.966L718.142 441.874C716.144 443.872 716.144 445.87 718.142 447.867L755.95 485.675L717.835 523.483C715.837 525.481 715.837 527.478 717.835 529.476L732.743 544.384C734.741 546.382 736.739 546.382 738.737 544.384L776.544 506.577L814.352 544.384C816.35 546.382 818.348 546.382 820.346 544.384L835.253 529.476C837.251 527.478 837.251 525.481 835.253 523.483L797.753 485.675Z" fill="white"/></svg>}>
    Supported request fields:

    <ResponseField name="billDate" type="string">
      ISO-8601 date format, e.g., 2024-01-01T00:00:00Z
    </ResponseField>

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

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

    <ResponseField name="currency" type="enum">
      Available options (3-letter ISO 4217):
      `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`
    </ResponseField>

    <ResponseField name="dueDate" type="string">
      ISO-8601 date format, e.g., 2024-01-01T00:00:00Z
    </ResponseField>

    <ResponseField name="lineItems" type="BillLineItem[]">
      <Expandable title="properties">
        <Note>
          Fortnox may automatically generate an empty line item by default.
        </Note>

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

        <ResponseField name="dimensions" type="Dimension[]">
          <Expandable title="properties">
            <ResponseField name="name" type="string" required />
          </Expandable>
        </ResponseField>

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

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

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

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

        <ResponseField name="unitAmount" type="string" />
      </Expandable>
    </ResponseField>

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

    <ResponseField name="totalGrossAmount" type="number" />
  </Accordion>

  <Accordion title="Lexware Office" icon="https://mintcdn.com/maesn/51AaCYhZi3VILsjj/logo/lexoffice.svg?fit=max&auto=format&n=51AaCYhZi3VILsjj&q=85&s=efe4da1d7b59a552d1938ec981ccbc1e" width="24" height="24" data-path="logo/lexoffice.svg">
    Supported request fields:

    <ResponseField name="billDate" type="string">
      ISO-8601 date format, e.g., 2024-01-01T00:00:00Z

      <Note>
        It is required when `status` is OPEN.
      </Note>
    </ResponseField>

    <ResponseField name="billNumber" type="string">
      <Note>
        It is required when `status` is OPEN.
      </Note>
    </ResponseField>

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

    <ResponseField name="dueDate" type="string">
      ISO-8601 date format, e.g., 2024-01-01T00:00:00Z
    </ResponseField>

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

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

        <ResponseField name="totalGrossAmount" type="number" required>
          It is the line item total amount including tax.
        </ResponseField>
      </Expandable>
    </ResponseField>

    <ResponseField name="status" type="enum">
      Available options: `DRAFT`, `OPEN`

      <Note>
        If not provided, the default value is `DRAFT`.
      </Note>
    </ResponseField>

    <ResponseField name="totalGrossAmount" type="number">
      It is the sum of all line items `totalGrossAmount`.

      <Note>
        It is required when `status` is OPEN.
      </Note>
    </ResponseField>

    <ResponseField name="totalTaxAmount" type="number">
      <Note>
        It is required when `status` is OPEN.
      </Note>
    </ResponseField>
  </Accordion>
</AccordionGroup>


## OpenAPI

````yaml post /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:
    post:
      tags:
        - accounting
      operationId: createBill
      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/CreateBillRequestDto'
            example:
              accountId: 6733a433-9662-4a40-8e36-e38ebda94fe1
              addresses:
                - addressLine1: Main street 45
                  addressLine2: 2nd floor
                  city: Berlin
                  countryCode: DE
                  postalCode: '10243'
                  type: BILLING
              billDate: '2021-01-01T00:00:00Z'
              billNumber: '1020'
              contactId: eaa28f49-6028-4b6e-bb12-d8f6278073fc
              currency: EUR
              deliveryDate: '2021-01-01T00:00:00Z'
              dueDate: '2021-07-01T00:00:00Z'
              fileId: 93c6b8e0-80a4-4c22-a46c-18beebab82d6
              journalCode: '30'
              lineItems:
                - accountId: 6733a433-9662-4a40-8e36-e38ebda94fe1
                  accountNumber: '200'
                  deferredEndDate: '2021-06-01T00:00:00Z'
                  deferredStartDate: '2021-01-01T00:00:00Z'
                  description: SEOUL Guest Chair, red
                  dimensions:
                    - name: C1
                      categoryName: CostCenter
                  itemId: 4f3a2hf4-5b8e-4d1b-8a0c-9f6e7d2f3e4b
                  itemName: RED CHAIR
                  quantity: 1
                  taxCode: '03'
                  taxRatePercentage: 19
                  totalDiscountAmount: 10
                  totalDiscountPercentage: 10
                  totalGrossAmount: 109
                  totalNetAmount: 100
                  totalTaxAmount: 19
                  unitAmount: 100
                  unitDiscountAmount: 10
                  unitDiscountPercentage: 10
                  unitName: PIECE
              name: Office Supplies
              oneLineAddress: Main street 45, Berlin
              paidDate: '2021-01-25T00:00:00Z'
              paymentDays: 30
              paymentReference: Edefad142e764894
              paymentStatus: PENDING
              paymentTermCode: '21'
              reference: 026 / 245
              shippingDate: '2021-01-01T00:00:00Z'
              shippingType: DELIVERY
              status: DRAFT
              taxRule: NET
              taxText: Tax 19 percent
              totalDiscountAmount: 10
              totalDiscountPercentage: 10
              totalGrossAmount: 109
              totalNetAmount: 100
              totalTaxAmount: 19
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/BaseResponseDto'
                  - properties:
                      data:
                        $ref: '#/components/schemas/BillResponseDto'
                        type: object
components:
  schemas:
    CreateBillRequestDto:
      type: object
      properties:
        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
        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/CreateBillLineItem'
        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:
          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
            - 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
        totalDiscountAmount:
          type: number
          example: 10
        totalDiscountPercentage:
          type: number
          example: 10
        totalGrossAmount:
          type: number
          example: 109
        totalNetAmount:
          type: number
          example: 100
        totalTaxAmount:
          type: number
          example: 19
    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:
          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:
          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:
          type: number
          example: 10
        totalDiscountPercentage:
          type: number
          example: 10
        totalGrossAmount:
          type: number
          example: 109
        totalNetAmount:
          type: number
          example: 100
        totalTaxAmount:
          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
    CreateBillLineItem:
      type: object
      properties:
        accountId:
          type: string
          example: 6733a433-9662-4a40-8e36-e38ebda94fe1
        accountNumber:
          type: string
          example: '200'
        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:
          type: number
          example: 10
        totalDiscountPercentage:
          type: number
          example: 10
        totalGrossAmount:
          type: number
          example: 109
        totalNetAmount:
          type: number
          example: 100
        totalTaxAmount:
          type: number
          example: 19
        unitAmount:
          type: number
          example: 100
        unitDiscountAmount:
          type: number
          example: 10
        unitDiscountPercentage:
          type: number
          example: 10
        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'
    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:
          type: number
          example: 10
        totalDiscountPercentage:
          type: number
          example: 10
        totalGrossAmount:
          type: number
          example: 109
        totalNetAmount:
          type: number
          example: 100
        totalTaxAmount:
          type: number
          example: 19
        unitAmount:
          type: number
          example: 100
        unitDiscountAmount:
          type: number
          example: 10
        unitDiscountPercentage:
          type: number
          example: 10
        unitName:
          type: string
          example: PIECE
        updatedDate:
          type: string
          example: '2021-01-01T00:00:00Z'
    LineItemDimension:
      type: object
      properties:
        name:
          type: string
          example: C1
        categoryName:
          type: string
          example: CostCenter
    PaginationResponse:
      type: object
      properties:
        total:
          type: number
          example: 125
        perPage:
          type: number
          example: 50
        currentPage:
          type: number
          example: 1
        totalPages:
          type: number
          example: 3

````