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

<AccordionGroup>
  <Accordion title="BuchhaltungsButler" icon={<svg width="24" height="24" transform="translate(-7,-4)" version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 320 320" enable-background="new 0 0 320 320" xml:space="preserve"> <path fill="#090F1D" opacity="1.000000" stroke="none" d=" M1.000000,320.000000 C1.000000,213.715073 1.000000,107.430153 1.000000,1.072614 C107.569649,1.072614 214.139359,1.072614 321.000000,1.072614 C321.000000,107.021255 321.000000,213.042786 320.532166,319.531860 C213.709534,319.999634 107.354767,319.999817 1.000000,320.000000 M100.015656,188.534164 C114.008392,181.544174 128.023163,174.597626 141.972809,167.522690 C144.377289,166.303207 146.095871,165.986008 148.665451,167.686722 C155.538101,172.235458 162.917404,172.254745 169.773849,167.676697 C172.361496,165.948944 174.070099,166.311905 176.456604,167.514618 C194.284012,176.498947 212.154770,185.397369 230.025208,194.296066 C236.791397,197.665329 239.195618,196.221893 239.204880,188.715775 C239.235962,163.567444 239.230240,138.419022 239.207550,113.270660 C239.200684,105.672722 236.848709,104.190361 230.107758,107.543480 C212.378860,116.362274 194.651993,125.185760 176.976196,134.110153 C174.299469,135.461624 172.352112,135.951080 169.415070,134.012405 C162.717224,129.591309 155.450394,129.748260 148.735046,134.138031 C146.241974,135.767731 144.549057,135.684647 142.083984,134.436356 C124.126389,125.342743 106.109474,116.365875 88.088036,107.398888 C81.734055,104.237335 79.185379,105.849953 79.150314,113.027451 C79.100685,123.186485 79.137314,133.345947 79.138046,143.505234 C79.139145,158.660873 79.108109,173.816635 79.157204,188.972122 C79.180290,196.098526 81.696793,197.587830 88.175026,194.431046 C91.914825,192.608688 95.628021,190.731735 100.015656,188.534164 M174.392242,204.374756 C169.338501,196.542511 161.586014,193.768585 153.902512,197.043274 C146.923782,200.017593 142.940536,207.672760 144.561874,214.994431 C146.572220,224.072769 155.393127,229.538208 164.231216,227.181549 C173.880188,224.608643 178.274033,215.394440 174.392242,204.374756 z"/> <path fill="#2C2F3E" opacity="1.000000" stroke="none" d=" M1.000000,320.500000 C107.354767,319.999817 213.709534,319.999634 320.532166,319.999725 C319.500000,320.333313 318.000153,320.957550 316.499969,320.958374 C232.333344,321.005188 148.166702,321.000000 64.000046,321.000000 C43.000031,321.000000 22.000015,321.000000 1.000000,320.500000 z"/> <path fill="#FCFDFD" opacity="1.000000" stroke="none" d=" M99.684418,188.706757 C95.628021,190.731735 91.914825,192.608688 88.175026,194.431046 C81.696793,197.587830 79.180290,196.098526 79.157204,188.972122 C79.108109,173.816635 79.139145,158.660873 79.138046,143.505234 C79.137314,133.345947 79.100685,123.186485 79.150314,113.027451 C79.185379,105.849953 81.734055,104.237335 88.088036,107.398888 C106.109474,116.365875 124.126389,125.342743 142.083984,134.436356 C144.549057,135.684647 146.241974,135.767731 148.735046,134.138031 C155.450394,129.748260 162.717224,129.591309 169.415070,134.012405 C172.352112,135.951080 174.299469,135.461624 176.976196,134.110153 C194.651993,125.185760 212.378860,116.362274 230.107758,107.543480 C236.848709,104.190361 239.200684,105.672722 239.207550,113.270660 C239.230240,138.419022 239.235962,163.567444 239.204880,188.715775 C239.195618,196.221893 236.791397,197.665329 230.025208,194.296066 C212.154770,185.397369 194.284012,176.498947 176.456604,167.514618 C174.070099,166.311905 172.361496,165.948944 169.773849,167.676697 C162.917404,172.254745 155.538101,172.235458 148.665451,167.686722 C146.095871,165.986008 144.377289,166.303207 141.972809,167.522690 C128.023163,174.597626 114.008392,181.544174 99.684418,188.706757 z"/> <path fill="#F9F9FA" opacity="1.000000" stroke="none" d=" M174.586151,204.717316 C178.274033,215.394440 173.880188,224.608643 164.231216,227.181549 C155.393127,229.538208 146.572220,224.072769 144.561874,214.994431 C142.940536,207.672760 146.923782,200.017593 153.902512,197.043274 C161.586014,193.768585 169.338501,196.542511 174.586151,204.717316 z"/></svg>}>
    Supported Request Parameters:

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

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

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

    <ResponseField name="addresses" type="Address[]">
      <Expandable title="properties">
        <ResponseField name="addressLine1" type="string" />

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

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

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

        <ResponseField name="countryCode" type="enum">
          Available options (ISO 3166-1 alpha-2):
          `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`
        </ResponseField>
      </Expandable>
    </ResponseField>

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

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

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

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

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

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

  <Accordion title="Business Central" icon={<svg width="24" height="24" viewBox="0 0 96 96" fill="none" xmlns="http://www.w3.org/2000/svg" transform="translate(-7,-4)"> <g clip-path="url(https://mintlify.s3.us-west-1.amazonaws.com/maesn/api-reference/accounting-endpoints/invoices#clip0)"> <mask id="mask0" mask-type="alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="96" height="96"> <path fill-rule="evenodd" clip-rule="evenodd" d="M0 48C0 52.2526 2.94943 55.8163 6.91426 56.7571C10.3435 72.9252 23.0749 85.6565 39.2429 89.0857C40.1837 93.0506 43.7474 96 48 96C52.2526 96 55.8163 93.0506 56.7571 89.0857C72.9251 85.6565 85.6565 72.9252 89.0857 56.7572C93.0505 55.8164 95.9999 52.2527 95.9999 48.0001C95.9999 43.7476 93.0506 40.1839 89.0858 39.243C85.6566 23.0749 72.9252 10.3435 56.7571 6.91426C55.8163 2.94943 52.2526 0 48 0C43.7474 0 40.1837 2.94943 39.2429 6.91426C23.0748 10.3435 10.3435 23.0749 6.91426 39.2429C2.94943 40.1837 0 43.7474 0 48Z" fill="#8DF7DB"/> </mask> <g mask="url(https://mintlify.s3.us-west-1.amazonaws.com/maesn/api-reference/accounting-endpoints/invoices#mask0)"> <circle cx="48" cy="48" r="48" fill="url(https://mintlify.s3.us-west-1.amazonaws.com/maesn/api-reference/accounting-endpoints/invoices#paint0_linear)"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M52 17.0645C54.9634 15.5918 57 12.5337 57 9C57 4.02944 52.9706 0 48 0C43.0294 0 39 4.02944 39 9C39 12.5337 41.0365 15.5918 44 17.0645V23H52V17.0645Z" fill="#9DF3F9"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M44 78.9355C41.0366 80.4082 39 83.4663 39 87C39 91.9706 43.0294 96 48 96C52.9706 96 57 91.9706 57 87C57 83.4663 54.9634 80.4082 52 78.9355L52 73L44 73L44 78.9355Z" fill="#82EBF1"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M17.0645 44C15.5918 41.0366 12.5337 39 9 39C4.02944 39 -6.10673e-07 43.0294 -3.93402e-07 48C-1.76132e-07 52.9706 4.02944 57 9 57C12.5337 57 15.5918 54.9634 17.0645 52L23 52L23 44L17.0645 44Z" fill="#9DF3F9"/> <g filter="url(https://mintlify.s3.us-west-1.amazonaws.com/maesn/api-reference/accounting-endpoints/invoices#filter0_f)"> <circle cx="48" cy="50" r="26" fill="black" fill-opacity="0.32"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M59.3172 54.0001C57.6698 58.6609 53.2249 62.0001 48 62.0001C41.3726 62.0001 36 56.6275 36 50.0001C36 43.3727 41.3726 38.0001 48 38.0001C53.2249 38.0001 57.6698 41.3394 59.3172 46.0001H80V54.0001H59.3172Z" fill="black" fill-opacity="0.32"/> <path d="M87 59.0001C82.0294 59.0001 78 54.9707 78 50.0001C78 45.0296 82.0294 41.0001 87 41.0001C91.9706 41.0001 96 45.0296 96 50.0001C96 54.9707 91.9706 59.0001 87 59.0001Z" fill="black" fill-opacity="0.32"/> </g> <g filter="url(https://mintlify.s3.us-west-1.amazonaws.com/maesn/api-reference/accounting-endpoints/invoices#filter1_f)"> <circle cx="48" cy="48.38" r="26" fill="black" fill-opacity="0.24"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M59.3172 52.3801C57.6698 57.0409 53.2249 60.3801 48 60.3801C41.3726 60.3801 36 55.0075 36 48.3801C36 41.7527 41.3726 36.3801 48 36.3801C53.2249 36.3801 57.6698 39.7194 59.3172 44.3801H80V52.3801H59.3172Z" fill="black" fill-opacity="0.24"/> <path d="M87 57.3801C82.0294 57.3801 78 53.3507 78 48.3801C78 43.4096 82.0294 39.3801 87 39.3801C91.9706 39.3801 96 43.4096 96 48.3801C96 53.3507 91.9706 57.3801 87 57.3801Z" fill="black" fill-opacity="0.24"/> </g> <circle cx="48" cy="48" r="26" fill="url(https://mintlify.s3.us-west-1.amazonaws.com/maesn/api-reference/accounting-endpoints/invoices#paint1_linear)"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M59.3172 52.0001C57.6698 56.6609 53.2249 60.0001 48 60.0001C41.3726 60.0001 36 54.6275 36 48.0001C36 41.3727 41.3726 36.0001 48 36.0001C53.2249 36.0001 57.6698 39.3394 59.3172 44.0001H80V52.0001H59.3172Z" fill="url(https://mintlify.s3.us-west-1.amazonaws.com/maesn/api-reference/accounting-endpoints/invoices#paint2_linear)"/> <path d="M87 57.0001C82.0294 57.0001 78 52.9707 78 48.0001C78 43.0296 82.0294 39.0001 87 39.0001C91.9706 39.0001 96 43.0296 96 48.0001C96 52.9707 91.9706 57.0001 87 57.0001Z" fill="url(https://mintlify.s3.us-west-1.amazonaws.com/maesn/api-reference/accounting-endpoints/invoices#paint3_linear)"/> </g> </g> <defs> <filter id="filter0_f" x="14" y="16" width="90" height="68" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"> <feFlood flood-opacity="0" result="BackgroundImageFix"/> <feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/> <feGaussianBlur stdDeviation="4" result="effect1_foregroundBlur"/> </filter> <filter id="filter1_f" x="21.24" y="21.62" width="75.52" height="53.52" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"> <feFlood flood-opacity="0" result="BackgroundImageFix"/> <feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/> <feGaussianBlur stdDeviation="0.38" result="effect1_foregroundBlur"/> </filter> <linearGradient id="paint0_linear" x1="22.7027" y1="11.3514" x2="72.6487" y2="84.6487" gradientUnits="userSpaceOnUse"> <stop stop-color="#009CA8"/> <stop offset="1" stop-color="#007D85"/> </linearGradient> <linearGradient id="paint1_linear" x1="31.7838" y1="26.2703" x2="66.1622" y2="83.3514" gradientUnits="userSpaceOnUse"> <stop stop-color="#36E3EE"/> <stop offset="1" stop-color="#00B1BE"/> </linearGradient> <linearGradient id="paint2_linear" x1="31.1352" y1="24" x2="75.2433" y2="63.5676" gradientUnits="userSpaceOnUse"> <stop stop-color="#D2F6F9"/> <stop offset="1" stop-color="#82EBF1"/> <stop offset="1" stop-color="#82EBF1"/> </linearGradient> <linearGradient id="paint3_linear" x1="96.9731" y1="50.919" x2="72.3244" y2="42.1622" gradientUnits="userSpaceOnUse"> <stop stop-color="#9AEEF3"/> <stop offset="1" stop-color="#82EBF1"/> </linearGradient> <clipPath id="clip0"> <rect width="96" height="96" fill="white"/></clipPath></defs></svg>}>
    <Note>
      If you're not using the [Interactive Authentication Flow](/authentication#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.
    </Note>

    Supported Request Parameters:

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

    <ResponseField name="invoiceType" type="enum">
      Available options: `STANDARD`
    </ResponseField>

    <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="invoiceDate" type="string">
      ISO-8601 date format, e.g., 2024-01-01T00:00:00Z
    </ResponseField>

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

    <ResponseField name="addresses" type="Address[]">
      <Expandable title="properties">
        <ResponseField name="addressLine1" type="string" />

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

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

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

        <ResponseField name="countryCode" type="enum">
          Available options (ISO 3166-1 alpha-2):
          `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`
        </ResponseField>

        <ResponseField name="type" type="enum">
          Available options: `SELLING`, `DELIVERY`
        </ResponseField>
      </Expandable>
    </ResponseField>

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

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

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

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

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

        <ResponseField name="discountItemPercentage" type="number" />
      </Expandable>
    </ResponseField>
  </Accordion>

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

    <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**
    </Note>

    Supported Request Parameters:

    <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="discountPercentage" type="number" />

    <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[]">
      <Expandable title="properties">
        <ResponseField name="accountId" type="string" required />

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

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

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

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

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

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

        <ResponseField name="taxCode" type="string">
          The `taxCode` is used to determine the tax rate for the line item.
        </ResponseField>

        <Note>
          If `taxCode` is not provided, the default tax code will be used (if available).
        </Note>

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

        <Note>
          If `taxCode` is provided, this `taxRatePercentage` will be overridden by the tax rate associated with the provided `taxCode`.
        </Note>

        <ResponseField name="unitAmount" type="number" required>
          The `unitAmount` is the net amount charged for each unit of the line item.
        </ResponseField>

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

    <ResponseField name="paymentTermId" type="string" />
  </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 Parameters:

    <ResponseField name="addresses" type="Address[]">
      <Expandable title="properties">
        <ResponseField name="addressLine1" type="string" />

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

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

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

        <ResponseField name="countryCode" type="enum">
          Available options (ISO 3166-1 alpha-2):
          `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`
        </ResponseField>

        <ResponseField name="type" type="enum">
          Available options: `BILLING`, `DELIVERY`
        </ResponseField>
      </Expandable>
    </ResponseField>

    <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="invoiceDate" type="string">
      ISO-8601 date format, e.g., 2024-01-01T00:00:00Z
    </ResponseField>

    <ResponseField name="invoiceNumber" type="string">
      Unique alpha numeric code identifying the invoice.
    </ResponseField>

    <ResponseField name="invoiceType" type="enum">
      Available options: `STANDARD`
    </ResponseField>

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

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

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

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

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

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

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

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

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

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

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

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

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

  <Accordion title="Lexware Office" icon={<svg width="24" height="24" transform="translate(-7,-4)" version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 476 476" enable-background="new 0 0 476 476" xml:space="preserve"> <path fill="#FFFFFF" opacity="1.000000" stroke="none" d=" M477.000000,189.000000 C477.000000,285.308167 477.000000,381.116333 477.000000,476.962250 C318.400177,476.962250 159.800308,476.962250 1.100232,476.962250 C1.100232,318.441864 1.100232,159.883652 1.100232,1.162721 C159.666534,1.162721 318.333252,1.162721 477.000000,1.162721 C477.000000,63.532967 477.000000,126.016479 477.000000,189.000000 M446.995667,21.494019 C432.466522,8.986734 415.185760,3.189814 396.446228,3.135990 C295.961365,2.847371 195.475250,2.979640 94.989624,3.042453 C87.891098,3.046890 80.777168,3.464551 73.697624,4.030548 C53.210831,5.668432 36.344028,14.396834 22.628456,29.766514 C9.308527,44.692833 3.199280,62.425301 3.139154,81.873207 C2.835702,180.024948 2.972577,278.178162 3.043210,376.330780 C3.049997,385.762329 3.313016,395.221771 4.069869,404.618896 C5.702843,424.894073 14.409182,441.637695 29.634809,455.248077 C44.828835,468.830139 62.862339,474.841370 82.692390,474.888306 C184.677277,475.129669 286.663025,475.014343 388.648468,474.958130 C393.747284,474.955292 398.849792,474.394135 403.943665,474.002869 C424.643127,472.412781 441.651276,463.655182 455.463043,448.128998 C468.627167,433.330902 474.791534,415.753876 474.852203,396.487854 C475.169250,295.836517 475.019653,195.183655 474.957428,94.531364 C474.953156,87.599487 474.517944,80.653847 473.973846,73.738945 C472.330414,52.852646 463.415985,35.624752 446.995667,21.494019 z"/> <path fill="#FF4554" opacity="1.000000" stroke="none" d=" M447.251953,21.749489 C463.415985,35.624752 472.330414,52.852646 473.973846,73.738945 C474.517944,80.653847 474.953156,87.599487 474.957428,94.531364 C475.019653,195.183655 475.169250,295.836517 474.852203,396.487854 C474.791534,415.753876 468.627167,433.330902 455.463043,448.128998 C441.651276,463.655182 424.643127,472.412781 403.943665,474.002869 C398.849792,474.394135 393.747284,474.955292 388.648468,474.958130 C286.663025,475.014343 184.677277,475.129669 82.692390,474.888306 C62.862339,474.841370 44.828835,468.830139 29.634809,455.248077 C14.409182,441.637695 5.702843,424.894073 4.069869,404.618896 C3.313016,395.221771 3.049997,385.762329 3.043210,376.330780 C2.972577,278.178162 2.835702,180.024948 3.139154,81.873207 C3.199280,62.425301 9.308527,44.692833 22.628456,29.766514 C36.344028,14.396834 53.210831,5.668432 73.697624,4.030548 C80.777168,3.464551 87.891098,3.046890 94.989624,3.042453 C195.475250,2.979640 295.961365,2.847371 396.446228,3.135990 C415.185760,3.189814 432.466522,8.986734 447.251953,21.749489 M245.830063,196.670471 C229.240814,176.236420 212.603531,155.840958 196.125214,135.317841 C194.140945,132.846481 192.173462,131.909119 189.025299,131.925995 C164.531158,132.057373 140.035980,131.998642 115.541115,131.998672 C114.312561,131.998672 113.084007,131.998657 110.948524,131.998657 C140.137726,168.006500 168.637009,203.163269 197.279678,238.496902 C168.580673,273.907013 140.030655,309.133270 110.960907,345.000824 C138.221222,345.000824 164.377075,345.057922 190.531189,344.872437 C192.276718,344.860077 194.487534,343.400391 195.675735,341.952362 C212.476944,321.476807 229.147781,300.894135 245.830566,280.321533 C257.047455,266.489288 268.233368,252.631958 279.667694,238.495834 C268.439850,224.630234 257.348236,210.932877 245.830063,196.670471 M321.500000,131.997894 C310.669128,131.997894 299.835327,132.140366 289.009125,131.915695 C285.521240,131.843307 283.174988,132.786209 280.975769,135.572678 C271.688568,147.339783 262.272736,159.009521 252.678162,170.526764 C250.478699,173.166977 250.711716,174.762390 252.776138,177.243301 C261.405884,187.614075 269.824463,198.160416 278.333435,208.631821 C282.506378,213.767136 286.707794,218.879288 291.182983,224.352509 C316.193787,193.499420 340.854492,163.078232 366.049530,131.997894 C350.801788,131.997894 336.650909,131.997894 321.500000,131.997894 M281.165253,341.494324 C282.854797,344.413147 285.376343,345.092468 288.683350,345.074127 C312.820404,344.940186 336.958496,345.006805 361.096283,344.989197 C362.464722,344.988190 363.833038,344.803009 365.791565,344.660614 C340.728668,313.754456 316.129791,283.420532 291.373047,252.891907 C290.647675,253.558655 290.119812,253.936844 289.724365,254.422806 C277.225006,269.783569 264.790314,285.197479 252.198013,300.481567 C250.158096,302.957520 251.066422,304.396515 252.713669,306.404053 C262.108368,317.853607 271.392456,329.393951 281.165253,341.494324 z"/> <path fill="#FFFEFE" opacity="1.000000" stroke="none" d=" M246.043335,196.953003 C257.348236,210.932877 268.439850,224.630234 279.667694,238.495834 C268.233368,252.631958 257.047455,266.489288 245.830566,280.321533 C229.147781,300.894135 212.476944,321.476807 195.675735,341.952362 C194.487534,343.400391 192.276718,344.860077 190.531189,344.872437 C164.377075,345.057922 138.221222,345.000824 110.960907,345.000824 C140.030655,309.133270 168.580673,273.907013 197.279678,238.496902 C168.637009,203.163269 140.137726,168.006500 110.948524,131.998657 C113.084007,131.998657 114.312561,131.998672 115.541115,131.998672 C140.035980,131.998642 164.531158,132.057373 189.025299,131.925995 C192.173462,131.909119 194.140945,132.846481 196.125214,135.317841 C212.603531,155.840958 229.240814,176.236420 246.043335,196.953003 z"/> <path fill="#FFFEFE" opacity="1.000000" stroke="none" d=" M322.000000,131.997894 C336.650909,131.997894 350.801788,131.997894 366.049530,131.997894 C340.854492,163.078232 316.193787,193.499420 291.182983,224.352509 C286.707794,218.879288 282.506378,213.767136 278.333435,208.631821 C269.824463,198.160416 261.405884,187.614075 252.776138,177.243301 C250.711716,174.762390 250.478699,173.166977 252.678162,170.526764 C262.272736,159.009521 271.688568,147.339783 280.975769,135.572678 C283.174988,132.786209 285.521240,131.843307 289.009125,131.915695 C299.835327,132.140366 310.669128,131.997894 322.000000,131.997894 z"/> <path fill="#FFFEFE" opacity="1.000000" stroke="none" d=" M280.939697,341.198853 C271.392456,329.393951 262.108368,317.853607 252.713669,306.404053 C251.066422,304.396515 250.158096,302.957520 252.198013,300.481567 C264.790314,285.197479 277.225006,269.783569 289.724365,254.422806 C290.119812,253.936844 290.647675,253.558655 291.373047,252.891907 C316.129791,283.420532 340.728668,313.754456 365.791565,344.660614 C363.833038,344.803009 362.464722,344.988190 361.096283,344.989197 C336.958496,345.006805 312.820404,344.940186 288.683350,345.074127 C285.376343,345.092468 282.854797,344.413147 280.939697,341.198853 z"/></svg>}>
    <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
    </Note>

    Supported Request Parameters:

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

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

    <ResponseField name="currency" type="enum" required>
      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="invoiceDate" type="string" required>
      ISO-8601 date format, e.g., 2024-01-01T00:00:00Z
    </ResponseField>

    <ResponseField name="addresses" type="Address[]">
      <Expandable title="properties">
        <ResponseField name="addressLine1" type="string" />

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

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

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

        <ResponseField name="countryCode" type="enum">
          Available options (ISO 3166-1 alpha-2):
          `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`
        </ResponseField>

        <ResponseField name="type" type="enum">
          Available options: `BILLING`
        </ResponseField>
      </Expandable>
    </ResponseField>

    <ResponseField name="taxRule" type="enum" required>
      Available options:

      `NET`, `TAXFREE`, `INTRACOMMUNITY_GOODS`, `INTRACOMMUNITY_SERVICE`, `EXPORT_SERVICE`, `EXPORT_GOODS`, `REVERSE_CHARGE` , `GROSS`, `CONSTRUCTION_SERVICE`, `PHOTOVOLTAIC_EQUIPMENT`
    </ResponseField>

    <ResponseField name="lineItems" type="LineItem[]" required>
      <Expandable title="properties">
        <ResponseField name="id" type="string">
          Note that this field is required if `type` is `SERVICE_ITEM` or `MATERIAL`
        </ResponseField>

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

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

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

        <ResponseField name="type" type="enum" required>
          Available options: `SERVICE_ITEM`, `MATERIAL`, `CUSTOM`, `TEXT`
        </ResponseField>

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

        <ResponseField name="unitAmount" type="number">
          Note that this field is required if `taxRule` is `NET`
        </ResponseField>

        <ResponseField name="grossAmount" type="number">
          Note that this field is required if `taxRule` is `GROSS`
        </ResponseField>

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

        <ResponseField name="discountItemPercentage" type="number" />
      </Expandable>
    </ResponseField>

    <ResponseField name="shippingType" type="enum" required>
      Available options:

      `SERVICE`, `SERVICEPERIOD`, `DELIVERY`, `DELIVERYPERIOD`, `NONE`
    </ResponseField>

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

      Note that this field is required if `shippingType` is `SERVICE`, `DELIVERY`, `SERVICEPERIOD` or `DELIVERYPERIOD`.
    </ResponseField>

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

      Note that this field is required if `shippingType` is `SERVICEPERIOD` or `DELIVERYPERIOD`
    </ResponseField>

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

  <Accordion title="QuickBooks" icon={<svg fill="none" width="24" height="24" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" transform="translate(-7,-4)"><path d="M64 128c35.346 0 64-28.654 64-64S99.346 0 64 0 0 28.654 0 64s28.654 64 64 64z" fill="#2ca01c"/><path d="M17.778 64a24.889 24.889 0 0 0 24.889 24.889h3.555v-9.245h-3.555a15.645 15.645 0 1 1 0-31.289H51.2v48.356a9.248 9.248 0 0 0 9.244 9.245V39.111H42.667A24.889 24.889 0 0 0 17.777 64zm67.555-24.889h-3.555v9.245h3.555a15.645 15.645 0 0 1 0 31.288H76.8V31.29a9.244 9.244 0 0 0-9.244-9.245V88.89h17.777a24.888 24.888 0 0 0 0-49.778z" fill="#fff"/></svg>}>
    Supported Request Parameters:

    <ResponseField name="addresses" type="Address[]">
      <Expandable title="properties">
        <ResponseField name="addressLine1" type="string" />

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

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

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

        <ResponseField name="countryCode" type="enum">
          Available options (ISO 3166-1 alpha-2):
          `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`
        </ResponseField>

        <ResponseField name="type" type="enum">
          Available options: `BILLING`,`DELIVERY`
        </ResponseField>
      </Expandable>
    </ResponseField>

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

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

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

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

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

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

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

        <ResponseField name="taxCode" type="string">
          <Note>
            The field is not supported for non UK companies. For UK companies it is required.
          </Note>
        </ResponseField>

        <ResponseField name="unitAmount" type="number" required />
      </Expandable>
    </ResponseField>

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

  <Accordion title="Sage Active" icon={<svg width="24" height="24" version="1.1" viewBox="0 0 64.916 36.474" transform="translate(-7, -4)" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><g transform="translate(-2.537 -2.8329)"> <path id="sagebrilliantgreen" d="m42.319 39.26c-3.0104-0.40304-5.5018-2.3048-6.3487-4.8463-0.7115-2.1351-0.29178-3.7854 0.99978-3.931 0.5839-0.0658 0.96322 0.0395 1.3276 0.36876 0.37332 0.33727 0.47035 0.58805 0.55232 1.4275 0.23999 2.4579 2.0531 4.1078 4.5142 4.1078 0.88774 0 1.4409-0.12 2.1886-0.4748 1.4464-0.68633 2.2122-1.9936 2.126-3.6289-0.0578-1.0949-0.51205-1.9292-1.4237-2.6145-0.71222-0.53539-1.6947-0.98461-3.5466-1.6216-2.5625-0.8814-3.7248-1.4462-4.8169-2.3406-2.0308-1.6631-2.7999-4.7189-1.9042-7.5653 0.38225-1.2147 0.88948-2.0471 1.8226-2.9912 1.3922-1.4084 3.2044-2.1325 5.3309-2.1301 3.8368 4e-3 6.9493 2.3836 7.6514 5.8486 0.10943 0.54004 0.13188 0.94847 0.0949 1.7257-0.0763 1.6019-0.47182 2.7477-1.1998 3.4757-0.81819 0.81819-2.0739 0.67324-2.5635-0.29591-0.24407-0.48315-0.23774-0.77166 0.0307-1.3996 0.40037-0.93635 0.54077-1.4792 0.54077-2.0908 0-1.1749-0.39365-2.1581-1.2005-2.9983-0.59144-0.61592-1.2515-0.99028-2.152-1.2206-2.3152-0.59214-4.5572 0.583-5.2915 2.7735-0.26089 0.77834-0.26172 1.9594-2e-3 2.6895 0.24387 0.68523 0.69844 1.3238 1.271 1.7854 0.64509 0.52009 2.0705 1.2074 3.6495 1.7599 2.5504 0.89231 3.415 1.2957 4.4994 2.0993 1.1089 0.8218 1.7792 1.7719 2.2021 3.1214 0.17061 0.54446 0.1981 0.80796 0.19846 1.902 3.4e-4 1.0684-0.03 1.3748-0.19097 1.9303-0.7533 2.5991-2.7651 4.4237-5.5256 5.0114-0.75112 0.1599-2.1148 0.21884-2.8343 0.12251zm-33.521-11.343c-3.049-0.48096-5.3665-2.4127-6.0762-5.0648-0.22532-0.842-0.24381-2.341-0.0392-3.1786 0.29877-1.2232 1.0201-2.2799 1.7121-2.5083 0.58548-0.19323 1.3566 0.0701 1.742 0.59482 0.30023 0.40877 0.28982 0.89449-0.03722 1.7364-0.36488 0.9393-0.43625 1.4377-0.31475 2.1982 0.24708 1.5464 1.3442 2.7377 2.9579 3.2117 0.64754 0.1902 1.8839 0.17828 2.5352-0.0244 2.2832-0.71061 3.3018-3.1729 2.1872-5.2872-0.54776-1.0391-1.791-1.8348-4.3292-2.7709-2.7129-1.0005-3.7219-1.5558-4.8368-2.662-0.87184-0.86499-1.284-1.5567-1.5738-2.6416-0.2512-0.94017-0.25117-2.5946 5.6e-5 -3.5391 0.5163-1.9412 1.8012-3.5094 3.606-4.4011 1.0912-0.53915 2.0321-0.74909 3.3485-0.74716 2.277 3e-3 3.9801 0.68226 5.4617 2.1773 1.1699 1.1806 1.7179 2.3034 1.8981 3.8892 0.17539 1.5435-0.39973 2.3207-1.6581 2.2405-0.81229-0.0517-1.3284-0.53213-1.422-1.3235-0.16631-1.4064-0.47266-2.1456-1.1838-2.8568-1.3863-1.3863-3.7741-1.632-5.4339-0.55927-1.6969 1.0968-2.1418 3.6062-0.9224 5.2032 0.63522 0.83192 1.7106 1.4449 4.2535 2.4246 1.9708 0.7593 2.6712 1.0863 3.5409 1.6532 1.2764 0.832 2.1119 1.8419 2.5368 3.0664 0.94507 2.7234 0.08103 5.873-2.0988 7.6505-0.66808 0.54479-1.8546 1.1349-2.7284 1.357-0.78267 0.19891-2.3694 0.28104-3.1255 0.16178zm16.311-9e-3c-2.3563-0.33788-4.6348-2.0486-5.6474-4.2402-0.50472-1.0924-0.67087-1.893-0.66369-3.1982 0.0075-1.3608 0.17347-2.099 0.73294-3.2597 0.7369-1.5288 1.913-2.6877 3.4841-3.4333 1.1264-0.53453 1.7306-0.6798 3.048-0.73282 1.7075-0.0687 3.0086 0.23471 4.3068 1.0044 0.64242 0.38091 1.6782 1.3214 2.1238 1.9285 0.4591 0.62544 0.97497 1.7389 1.2138 2.6199 0.21906 0.80799 0.2211 0.84397 0.25212 4.4491 0.0279 3.2472 0.0161 3.6742-0.1109 4.0068-0.44995 1.1782-2.3323 1.2526-2.9126 0.11514-0.14813-0.29035-0.1635-0.58589-0.19664-3.7817-0.03-2.893-0.0595-3.5566-0.17828-4.0096-0.35944-1.371-1.2008-2.4807-2.2857-3.0146-2.6097-1.2843-5.6341 0.29019-6.1957 3.2254-0.15345 0.80202-0.15265 1.1093 5e-3 1.8561 0.17024 0.80723 0.55624 1.5573 1.1083 2.1536 1.1151 1.2045 2.3277 1.5784 4.1446 1.2783 0.87556-0.14465 1.2229-0.0771 1.6378 0.31857 0.87671 0.83611 0.54387 1.9958-0.70714 2.4639-0.88408 0.33077-1.9882 0.41827-3.1592 0.25036zm34.085 6e-3c-2.6759-0.39254-4.9226-2.0585-6.0099-4.4564-0.82735-1.8247-0.80936-4.2211 0.0456-6.0715 0.93364-2.0207 2.6711-3.5034 4.8371-4.1279 0.91987-0.26518 3.0432-0.28385 4.0217-0.0354 3.2358 0.82177 5.3345 3.2765 5.3634 6.2734 7e-3 0.69047-0.0159 0.80451-0.24065 1.2148-0.14928 0.27255-0.38973 0.55031-0.60403 0.69775-0.64979 0.44707-1.0686 0.50046-3.9259 0.50046-2.5179 0-2.5992-5e-3 -2.9618-0.1905-0.4987-0.25483-0.69897-0.55062-0.74285-1.0972-0.0295-0.36804-5.9e-4 -0.49951 0.16208-0.73656 0.43816-0.63841 0.43651-0.638 2.7933-0.68512 1.9934-0.0398 2.125-0.0523 2.2424-0.21166 0.25707-0.349-0.0913-1.2568-0.72562-1.8912-0.77239-0.7724-1.8998-1.2008-3.1506-1.1971-1.3155 4e-3 -2.2288 0.37482-3.1204 1.2674-1.8314 1.8333-1.8687 4.7102-0.0847 6.5289 0.91091 0.92862 1.9348 1.3456 3.3038 1.3456 1.3574 0 1.9015-0.18457 4.0198-1.3637 1.8553-1.0327 3.2856 0.8794 1.7396 2.3255-1.5662 1.465-4.5035 2.2709-6.9623 1.9102z" fill="#00d639" stroke-width=".084667"/></g></svg>}>
    <Note>
      If you're not using the [Interactive Authentication Flow](/authentication#interactive-authentication-flow), make sure the query parameters `environmentName` and `companyId` are correctly populated.
      You can obtain these values by using the `GET Companies` endpoint available under the Authentication section. Please use the id field as the companyId and the environmentId field as the environmentName.
    </Note>

    Supported Request Parameters:

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

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

    <ResponseField name="reference" type="string">
      Additional document number.
    </ResponseField>

    <ResponseField name="lineItems" type="LineItem[]" required>
      <Expandable title="properties">
        <ResponseField name="itemId" type="string" required>
          The product ID.
        </ResponseField>

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

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

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

        <ResponseField name="discountItemPercentage" type="number" />
      </Expandable>
    </ResponseField>
  </Accordion>

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

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

    <ResponseField name="reference" type="string">
      Additional reference number. May be customer number, order number or similar.
    </ResponseField>

    <ResponseField name="currency" type="enum" required>
      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="invoiceDate" type="string" required>
      ISO-8601 date format, e.g., 2024-01-01T00:00:00Z
    </ResponseField>

    <ResponseField name="status" type="enum" required>
      Available options: `DRAFT`, `SUBMITTED`, `AUTHORISED`, `PAID`, `CANCELED`
    </ResponseField>

    <ResponseField name="invoiceType" type="enum" required>
      Available options: `STANDARD`
    </ResponseField>

    <ResponseField name="taxRule" type="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`
    </ResponseField>

    <ResponseField name="taxText" type="string" required>
      Tax description
    </ResponseField>

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

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

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

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

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

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

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

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

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

  <Accordion title="weclapp" icon={<svg width="24" height="24" viewBox="0 0 150 150" transform="translate(-7, -4)" fill="none" xmlns="http://www.w3.org/2000/svg"> <path fill="none" d="M0,0H150V150H0V0Z"/><g><path fill="#12da9d" d="M44.89,32.82l-9.81,64.58c-.36,11.47-16.99,11.46-17.34,0h0L8.15,32.82c-1.68-5.73,2.72-11.72,8.67-11.87h19.4c5.97,.14,10.34,6.15,8.67,11.87Z"/><path fill="#12da9d" d="M141.88,32.82l-9.58,64.58c-1.6,10.04-16.2,9.81-17.34,0l-9.81-64.58c-1.68-5.73,2.72-11.72,8.67-11.87h19.4c5.97,.14,10.34,6.15,8.67,11.87Z"/><path fill="#12da9d" d="M56.53,122.28l9.81-64.81c1.6-9.81,16.2-9.58,17.34,0l9.81,64.81c1.32,5.72-3.04,11.41-8.9,11.64h-19.17c-5.87-.22-10.21-5.92-8.9-11.64Z"/></g></svg>}>
    Supported Request Parameters:

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

    <ResponseField name="addresses" type="Address[]">
      <Expandable title="properties">
        <ResponseField name="addressLine1" type="string" />

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

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

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

        <ResponseField name="countryCode" type="enum">
          Available options (ISO 3166-1 alpha-2):
          `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`
        </ResponseField>

        <ResponseField name="type" type="enum">
          Available options: `BILLING`, `DELIVERY`
        </ResponseField>
      </Expandable>
    </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="invoiceDate" type="string">
      ISO-8601 date format, e.g., 2024-01-01T00:00:00Z
    </ResponseField>

    <ResponseField name="invoiceNumber" type="string">
      Unique alpha numeric code identifying the invoice.
    </ResponseField>

    <ResponseField name="invoiceType" type="enum">
      Available options: `STANDARD`
    </ResponseField>

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

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

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

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

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

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

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

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

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

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

    <ResponseField name="paymentStatus" type="enum">
      Available options: `PENDING`, `PAID`, `CLEARED_WITH_CREDIT_NOTE`, `CREDIT_NOTE_CLEARED`, `NO_OPEN_ITEM`, `UNKNOWN`
    </ResponseField>

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

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

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

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

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

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

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

    <ResponseField name="reference" type="string">
      Additional reference number. May be customer number, order number or similar.
    </ResponseField>

    <ResponseField name="currency" type="enum" required>
      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="invoiceDate" type="string" required>
      ISO-8601 date format, e.g., 2024-01-01T00:00:00Z
    </ResponseField>

    <ResponseField name="status" type="enum" required>
      Available options: `DRAFT`, `SUBMITTED`, `AUTHORISED`, `PAID`, `CANCELED`
    </ResponseField>

    <ResponseField name="invoiceType" type="enum" required>
      Available options: `STANDARD`
    </ResponseField>

    <ResponseField name="lineItems" type="LineItem[]" required>
      <Expandable title="properties">
        <ResponseField name="quantity" type="number" required>
          Note that quantity can be a decimal numeral.
        </ResponseField>

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

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

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

        <ResponseField name="discountItemPercentage" type="number" />
      </Expandable>
    </ResponseField>

    <ResponseField name="lineAmountTypes" type="enum">
      Available options: `EXCLUSIVE`, `INCLUSIVE`, `NOTAX`
    </ResponseField>

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


## 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:
        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
        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:
          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
        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:
        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:
          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:
          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
        shippingDate:
          type: string
          example: '2021-01-01T00:00:00Z'
        status:
          type: string
          example: DRAFT
          enum:
            - DRAFT
            - CORRECTIVE
            - SUBMITTED
            - DOCUMENT_CREATED
            - OPEN
            - PARTIALLY_PAID
            - PAID
            - PARTIALLY_OVERDUE
            - OVERDUE
            - VOIDED
        sumNetAmount:
          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:
          type: number
          example: 109
        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
    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:
          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:
          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'
    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:
          type: number
          example: 10
        discountItemPercentage:
          type: number
          example: 10
        grossAmount:
          type: number
          example: 109
        itemsAmount:
          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:
          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

````