> Markdown versions of all pages of this connector library are available by appending `.md` to the page URL. For the full index of connectors, see [llms.txt](https://connectors.appmixer.com/llms.txt).

# appmixer.xero.accounting.CreateInvoice

- Component: `appmixer.xero.accounting.CreateInvoice`
- Kind: Action
- Version: 1.0.1
- Visibility: Public
- Connector: [appmixer.xero 2.3.0](https://connectors.appmixer.com/connector/appmixer.xero/2.3.0.md)
- Component page: <https://connectors.appmixer.com/connector/appmixer.xero/2.3.0/component/appmixer.xero.accounting.CreateInvoice>

Create an invoice or purchase bill.

## Input ports

### Port `in`

| Field | Type | Description |
| --- | --- | --- |
| Tenant ID (`tenantId`) | text | - |
| `Type` | select | See [Invoice Types](https://developer.xero.com/documentation/api/accounting/types#invoices) |
| Contact ID (`ContactID`) | text | See [Contacts](https://developer.xero.com/documentation/api/accounting/contacts#) |
| Line Items (`LineItems`) | textarea | See [Line Items](https://developer.xero.com/documentation/api/accounting/invoices#creating-updating-and-deleting-line-items-when-updating-invoices). Example: [{"Description":"Consulting services","Quantity":1,"UnitAmount":100.00}] |
| `Date` | date-time | Date invoice was issued – YYYY-MM-DD |
| Due Date (`DueDate`) | date-time | Date invoice is due – YYYY-MM-DD |
| Line Amount Types (`LineAmountTypes`) | select | Line amounts are exclusive of tax by default if you don't specify this element. See [Line Amount Types](https://developer.xero.com/documentation/api/accounting/types#lineamount-types) |
| Invoice Number (`InvoiceNumber`) | text | ACCREC – Unique alpha numeric code identifying invoice (when missing will auto-generate from your Organisation Invoice Settings) |
| `Reference` | text | ACCREC only – additional reference number. |
| Branding Theme ID (`BrandingThemeID`) | text | See [Branding Themes](https://developer.xero.com/documentation/api/accounting/brandingthemes) |
| `Url` | text | URL link to a source document – shown as “Go to [appName]” in the Xero app |
| Currency Code (`CurrencyCode`) | select | 3 letter alpha code for the currency – see [Currency Codes](https://developer.xero.com/documentation/api/accounting/currencies) |
| Currency Rate (`CurrencyRate`) | number | The currency rate for a multicurrency invoice. If no rate is specified, the XE.com day rate is used. (max length = [18].[6]) |
| `Status` | select | See [Invoice Status Codes](https://developer.xero.com/documentation/api/accounting/invoices#invoice-status-codes) |
| Sent To Contact (`SentToContact`) | toggle | Boolean to set whether the invoice in the Xero app should be marked as “sent”. This can be set only on invoices that have been approved. |
| Expected Payment Date (`ExpectedPaymentDate`) | date-time | Shown on sales invoices (Accounts Receivable) when this has been set. |
| Planned Payment Date (`PlannedPaymentDate`) | date-time | Shown on bills (Accounts Payable) when this has been set. |

## Output ports

### Port `out`

| Field | Type | Description |
| --- | --- | --- |
| `Type` | - | - |
| `InvoiceID` | - | - |
| `InvoiceNumber` | - | - |
| `Reference` | - | - |
| `Payments` | - | - |
| `Prepayments` | - | - |
| `Overpayments` | - | - |
| `AmountDue` | - | - |
| `AmountPaid` | - | - |
| `Url` | - | - |
| `SentToContact` | - | - |
| `CurrencyRate` | - | - |
| `TotalDiscount` | - | - |
| `IsDiscounted` | - | - |
| `HasAttachments` | - | - |
| `HasErrors` | - | - |
| `Attachments` | - | - |
| `InvoicePaymentServices` | - | - |
| `Contact` | - | - |
| `DateString` | - | - |
| `Date` | - | - |
| `DueDateString` | - | - |
| `DueDate` | - | - |
| `ExpectedPaymentDateString` | - | - |
| `ExpectedPaymentDate` | - | - |
| `PlannedPaymentDateString` | - | - |
| `PlannedPaymentDate` | - | - |
| `BrandingThemeID` | - | - |
| `Status` | - | - |
| `LineAmountTypes` | - | - |
| `LineItems` | array | - |
| `SubTotal` | - | - |
| `TotalTax` | - | - |
| `Total` | - | - |
| `UpdatedDateUTC` | - | - |
| `CurrencyCode` | - | - |

## Full metadata (component.json)

```json
{
  "name": "appmixer.xero.accounting.CreateInvoice",
  "author": "Jiří Hofman <jirka@client.io>",
  "description": "Create an invoice or purchase bill.",
  "private": false,
  "version": "1.0.1",
  "auth": {
    "service": "appmixer:xero",
    "scope": [
      "accounting.invoices"
    ]
  },
  "inPorts": [
    {
      "name": "in",
      "schema": {
        "type": "object",
        "properties": {
          "tenantId": {
            "type": "string"
          },
          "Type": {
            "type": "string",
            "enum": [
              "ACCPAY",
              "ACCPAYCREDIT",
              "APOVERPAYMENT",
              "APPREPAYMENT",
              "ACCREC",
              "ACCRECCREDIT",
              "AROVERPAYMENT",
              "ARPREPAYMENT"
            ]
          },
          "ContactID": {
            "type": "string"
          },
          "Date": {
            "type": "string",
            "format": "date"
          },
          "DueDate": {
            "type": "string",
            "format": "date"
          },
          "LineAmountTypes": {
            "type": "string",
            "enum": [
              "Exclusive",
              "Inclusive",
              "NoTax"
            ]
          },
          "InvoiceNumber": {
            "type": "string",
            "maxLength": 255
          },
          "Reference": {
            "type": "string",
            "maxLength": 255
          },
          "BrandingThemeID": {
            "type": "string",
            "format": "uuid"
          },
          "Url": {
            "type": "string"
          },
          "CurrencyCode": {
            "type": "string",
            "description": "3 letter alpha code for the currency – see list of currency codes",
            "enum": [
              "AED",
              "AFN",
              "ALL",
              "AMD",
              "ANG",
              "AOA",
              "ARS",
              "AUD",
              "AWG",
              "AZN",
              "BAM",
              "BBD",
              "BDT",
              "BGN",
              "BHD",
              "BIF",
              "BMD",
              "BND",
              "BOB",
              "BRL",
              "BSD",
              "BTN",
              "BWP",
              "BYN",
              "BYR",
              "BZD",
              "CAD",
              "CDF",
              "CHF",
              "CLF",
              "CLP",
              "CNY",
              "COP",
              "CRC",
              "CUC",
              "CUP",
              "CVE",
              "CZK",
              "DJF",
              "DKK",
              "DOP",
              "DZD",
              "EEK",
              "EGP",
              "ERN",
              "ETB",
              "EUR",
              "FJD",
              "FKP",
              "GBP",
              "GEL",
              "GHS",
              "GIP",
              "GMD",
              "GNF",
              "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",
              "MRU",
              "MUR",
              "MVR",
              "MWK",
              "MXN",
              "MXV",
              "MYR",
              "MZN",
              "NAD",
              "NGN",
              "NIO",
              "NOK",
              "NPR",
              "NZD",
              "OMR",
              "PAB",
              "PEN",
              "PGK",
              "PHP",
              "PKR",
              "PLN",
              "PYG",
              "QAR",
              "RON",
              "RSD",
              "RUB",
              "RWF",
              "SAR",
              "SBD",
              "SCR",
              "SDG",
              "SEK",
              "SGD",
              "SHP",
              "SKK",
              "SLE",
              "SLL",
              "SOS",
              "SRD",
              "STD",
              "STN",
              "SVC",
              "SYP",
              "SZL",
              "THB",
              "TJS",
              "TMT",
              "TND",
              "TOP",
              "TRY",
              "TTD",
              "TWD",
              "TZS",
              "UAH",
              "UGX",
              "USD",
              "UYU",
              "UZS",
              "VEF",
              "VES",
              "VND",
              "VUV",
              "WST",
              "XAF",
              "XCD",
              "XOF",
              "XPF",
              "YER",
              "ZAR",
              "ZMW",
              "ZMK",
              "ZWD"
            ]
          },
          "CurrencyRate": {
            "description": "The currency rate for a multicurrency invoice. If no rate is specified, the XE.com day rate is used. (max length = [18].[6])",
            "type": "number"
          },
          "Status": {
            "type": "string",
            "enum": [
              "DRAFT",
              "SUBMITTED",
              "DELETED",
              "AUTHORISED",
              "PAID",
              "VOIDED"
            ]
          },
          "SentToContact": {
            "type": "boolean"
          },
          "ExpectedPaymentDate": {
            "type": "string",
            "format": "date"
          },
          "PlannedPaymentDate": {
            "type": "string",
            "format": "date"
          },
          "LineItems": {
            "type": "string"
          }
        },
        "required": [
          "tenantId",
          "Type",
          "ContactID",
          "LineItems"
        ]
      },
      "inspector": {
        "inputs": {
          "tenantId": {
            "type": "text",
            "label": "Tenant ID",
            "index": 1,
            "source": {
              "url": "/component/appmixer/xero/accounting/ListTenants?outPort=tenants",
              "data": {
                "transform": "./transformers#tenantsToSelectArray"
              }
            }
          },
          "Type": {
            "type": "select",
            "label": "Type",
            "tooltip": "See <a target=\"_blank\"href=\"https://developer.xero.com/documentation/api/accounting/types#invoices\">Invoice Types</a>",
            "options": [
              {
                "content": "ACCPAY",
                "value": "ACCPAY"
              },
              {
                "content": "ACCPAYCREDIT",
                "value": "ACCPAYCREDIT"
              },
              {
                "content": "APOVERPAYMENT",
                "value": "APOVERPAYMENT"
              },
              {
                "content": "APPREPAYMENT",
                "value": "APPREPAYMENT"
              },
              {
                "content": "ACCREC",
                "value": "ACCREC"
              },
              {
                "content": "ACCRECCREDIT",
                "value": "ACCRECCREDIT"
              },
              {
                "content": "AROVERPAYMENT",
                "value": "AROVERPAYMENT"
              },
              {
                "content": "ARPREPAYMENT",
                "value": "ARPREPAYMENT"
              }
            ],
            "index": 2
          },
          "ContactID": {
            "type": "text",
            "label": "Contact ID",
            "tooltip": "See <a target=\"_blank\"href=\"https://developer.xero.com/documentation/api/accounting/contacts#\">Contacts</a>",
            "source": {
              "url": "/component/appmixer/xero/accounting/ListContacts?outPort=contacts",
              "data": {
                "messages": {
                  "in/tenantId": "inputs/in/tenantId"
                },
                "transform": "./transformers#contactsToSelectArray"
              }
            },
            "index": 3
          },
          "LineItems": {
            "type": "textarea",
            "label": "Line Items",
            "tooltip": "See <a target=\"_blank\"href=\"https://developer.xero.com/documentation/api/accounting/invoices#creating-updating-and-deleting-line-items-when-updating-invoices\">Line Items</a>. Example: [{\"Description\":\"Consulting services\",\"Quantity\":1,\"UnitAmount\":100.00}]",
            "index": 4
          },
          "Date": {
            "type": "date-time",
            "config": {
              "format": "YYYY-MM-DD",
              "enableTime": false
            },
            "label": "Date",
            "tooltip": "Date invoice was issued – YYYY-MM-DD",
            "index": 5
          },
          "DueDate": {
            "type": "date-time",
            "config": {
              "format": "YYYY-MM-DD",
              "enableTime": false
            },
            "label": "Due Date",
            "tooltip": "Date invoice is due – YYYY-MM-DD",
            "index": 6
          },
          "LineAmountTypes": {
            "type": "select",
            "label": "Line Amount Types",
            "tooltip": "Line amounts are exclusive of tax by default if you don't specify this element. See <a target=\"_blank\"href=\"https://developer.xero.com/documentation/api/accounting/types#lineamount-types\">Line Amount Types</a>",
            "options": [
              {
                "content": "Exclusive",
                "value": "Exclusive"
              },
              {
                "content": "Inclusive",
                "value": "Inclusive"
              },
              {
                "content": "NoTax",
                "value": "NoTax"
              }
            ],
            "index": 7
          },
          "InvoiceNumber": {
            "type": "text",
            "label": "Invoice Number",
            "tooltip": "ACCREC – Unique alpha numeric code identifying invoice (when missing will auto-generate from your Organisation Invoice Settings)",
            "index": 8
          },
          "Reference": {
            "type": "text",
            "label": "Reference",
            "tooltip": "ACCREC only – additional reference number.",
            "index": 9
          },
          "BrandingThemeID": {
            "type": "text",
            "label": "Branding Theme ID",
            "tooltip": "See <a target=\"_blank\"href=\"https://developer.xero.com/documentation/api/accounting/brandingthemes\">Branding Themes</a>",
            "index": 10
          },
          "Url": {
            "type": "text",
            "label": "Url",
            "tooltip": "URL link to a source document – shown as “Go to [appName]” in the Xero app",
            "index": 11
          },
          "CurrencyCode": {
            "type": "select",
            "index": 12,
            "label": "Currency Code",
            "tooltip": "3 letter alpha code for the currency – see <a target=\"_blank\"href=\"https://developer.xero.com/documentation/api/accounting/currencies\">Currency Codes</a>",
            "options": [
              {
                "clearItem": true,
                "content": "None"
              },
              {
                "content": "AED",
                "value": "AED"
              },
              {
                "content": "AFN",
                "value": "AFN"
              },
              {
                "content": "ALL",
                "value": "ALL"
              },
              {
                "content": "AMD",
                "value": "AMD"
              },
              {
                "content": "ANG",
                "value": "ANG"
              },
              {
                "content": "AOA",
                "value": "AOA"
              },
              {
                "content": "ARS",
                "value": "ARS"
              },
              {
                "content": "AUD",
                "value": "AUD"
              },
              {
                "content": "AWG",
                "value": "AWG"
              },
              {
                "content": "AZN",
                "value": "AZN"
              },
              {
                "content": "BAM",
                "value": "BAM"
              },
              {
                "content": "BBD",
                "value": "BBD"
              },
              {
                "content": "BDT",
                "value": "BDT"
              },
              {
                "content": "BGN",
                "value": "BGN"
              },
              {
                "content": "BHD",
                "value": "BHD"
              },
              {
                "content": "BIF",
                "value": "BIF"
              },
              {
                "content": "BMD",
                "value": "BMD"
              },
              {
                "content": "BND",
                "value": "BND"
              },
              {
                "content": "BOB",
                "value": "BOB"
              },
              {
                "content": "BRL",
                "value": "BRL"
              },
              {
                "content": "BSD",
                "value": "BSD"
              },
              {
                "content": "BTN",
                "value": "BTN"
              },
              {
                "content": "BWP",
                "value": "BWP"
              },
              {
                "content": "BYN",
                "value": "BYN"
              },
              {
                "content": "BYR",
                "value": "BYR"
              },
              {
                "content": "BZD",
                "value": "BZD"
              },
              {
                "content": "CAD",
                "value": "CAD"
              },
              {
                "content": "CDF",
                "value": "CDF"
              },
              {
                "content": "CHF",
                "value": "CHF"
              },
              {
                "content": "CLF",
                "value": "CLF"
              },
              {
                "content": "CLP",
                "value": "CLP"
              },
              {
                "content": "CNY",
                "value": "CNY"
              },
              {
                "content": "COP",
                "value": "COP"
              },
              {
                "content": "CRC",
                "value": "CRC"
              },
              {
                "content": "CUC",
                "value": "CUC"
              },
              {
                "content": "CUP",
                "value": "CUP"
              },
              {
                "content": "CVE",
                "value": "CVE"
              },
              {
                "content": "CZK",
                "value": "CZK"
              },
              {
                "content": "DJF",
                "value": "DJF"
              },
              {
                "content": "DKK",
                "value": "DKK"
              },
              {
                "content": "DOP",
                "value": "DOP"
              },
              {
                "content": "DZD",
                "value": "DZD"
              },
              {
                "content": "EEK",
                "value": "EEK"
              },
              {
                "content": "EGP",
                "value": "EGP"
              },
              {
                "content": "ERN",
                "value": "ERN"
              },
              {
                "content": "ETB",
                "value": "ETB"
              },
              {
                "content": "EUR",
                "value": "EUR"
              },
              {
                "content": "FJD",
                "value": "FJD"
              },
              {
                "content": "FKP",
                "value": "FKP"
              },
              {
                "content": "GBP",
                "value": "GBP"
              },
              {
                "content": "GEL",
                "value": "GEL"
              },
              {
                "content": "GHS",
                "value": "GHS"
              },
              {
                "content": "GIP",
                "value": "GIP"
              },
              {
                "content": "GMD",
                "value": "GMD"
              },
              {
                "content": "GNF",
                "value": "GNF"
              },
              {
                "content": "GTQ",
                "value": "GTQ"
              },
              {
                "content": "GYD",
                "value": "GYD"
              },
              {
                "content": "HKD",
                "value": "HKD"
              },
              {
                "content": "HNL",
                "value": "HNL"
              },
              {
                "content": "HRK",
                "value": "HRK"
              },
              {
                "content": "HTG",
                "value": "HTG"
              },
              {
                "content": "HUF",
                "value": "HUF"
              },
              {
                "content": "IDR",
                "value": "IDR"
              },
              {
                "content": "ILS",
                "value": "ILS"
              },
              {
                "content": "INR",
                "value": "INR"
              },
              {
                "content": "IQD",
                "value": "IQD"
              },
              {
                "content": "IRR",
                "value": "IRR"
              },
              {
                "content": "ISK",
                "value": "ISK"
              },
              {
                "content": "JMD",
                "value": "JMD"
              },
              {
                "content": "JOD",
                "value": "JOD"
              },
              {
                "content": "JPY",
                "value": "JPY"
              },
              {
                "content": "KES",
                "value": "KES"
              },
              {
                "content": "KGS",
                "value": "KGS"
              },
              {
                "content": "KHR",
                "value": "KHR"
              },
              {
                "content": "KMF",
                "value": "KMF"
              },
              {
                "content": "KPW",
                "value": "KPW"
              },
              {
                "content": "KRW",
                "value": "KRW"
              },
              {
                "content": "KWD",
                "value": "KWD"
              },
              {
                "content": "KYD",
                "value": "KYD"
              },
              {
                "content": "KZT",
                "value": "KZT"
              },
              {
                "content": "LAK",
                "value": "LAK"
              },
              {
                "content": "LBP",
                "value": "LBP"
              },
              {
                "content": "LKR",
                "value": "LKR"
              },
              {
                "content": "LRD",
                "value": "LRD"
              },
              {
                "content": "LSL",
                "value": "LSL"
              },
              {
                "content": "LTL",
                "value": "LTL"
              },
              {
                "content": "LVL",
                "value": "LVL"
              },
              {
                "content": "LYD",
                "value": "LYD"
              },
              {
                "content": "MAD",
                "value": "MAD"
              },
              {
                "content": "MDL",
                "value": "MDL"
              },
              {
                "content": "MGA",
                "value": "MGA"
              },
              {
                "content": "MKD",
                "value": "MKD"
              },
              {
                "content": "MMK",
                "value": "MMK"
              },
              {
                "content": "MNT",
                "value": "MNT"
              },
              {
                "content": "MOP",
                "value": "MOP"
              },
              {
                "content": "MRO",
                "value": "MRO"
              },
              {
                "content": "MRU",
                "value": "MRU"
              },
              {
                "content": "MUR",
                "value": "MUR"
              },
              {
                "content": "MVR",
                "value": "MVR"
              },
              {
                "content": "MWK",
                "value": "MWK"
              },
              {
                "content": "MXN",
                "value": "MXN"
              },
              {
                "content": "MXV",
                "value": "MXV"
              },
              {
                "content": "MYR",
                "value": "MYR"
              },
              {
                "content": "MZN",
                "value": "MZN"
              },
              {
                "content": "NAD",
                "value": "NAD"
              },
              {
                "content": "NGN",
                "value": "NGN"
              },
              {
                "content": "NIO",
                "value": "NIO"
              },
              {
                "content": "NOK",
                "value": "NOK"
              },
              {
                "content": "NPR",
                "value": "NPR"
              },
              {
                "content": "NZD",
                "value": "NZD"
              },
              {
                "content": "OMR",
                "value": "OMR"
              },
              {
                "content": "PAB",
                "value": "PAB"
              },
              {
                "content": "PEN",
                "value": "PEN"
              },
              {
                "content": "PGK",
                "value": "PGK"
              },
              {
                "content": "PHP",
                "value": "PHP"
              },
              {
                "content": "PKR",
                "value": "PKR"
              },
              {
                "content": "PLN",
                "value": "PLN"
              },
              {
                "content": "PYG",
                "value": "PYG"
              },
              {
                "content": "QAR",
                "value": "QAR"
              },
              {
                "content": "RON",
                "value": "RON"
              },
              {
                "content": "RSD",
                "value": "RSD"
              },
              {
                "content": "RUB",
                "value": "RUB"
              },
              {
                "content": "RWF",
                "value": "RWF"
              },
              {
                "content": "SAR",
                "value": "SAR"
              },
              {
                "content": "SBD",
                "value": "SBD"
              },
              {
                "content": "SCR",
                "value": "SCR"
              },
              {
                "content": "SDG",
                "value": "SDG"
              },
              {
                "content": "SEK",
                "value": "SEK"
              },
              {
                "content": "SGD",
                "value": "SGD"
              },
              {
                "content": "SHP",
                "value": "SHP"
              },
              {
                "content": "SKK",
                "value": "SKK"
              },
              {
                "content": "SLE",
                "value": "SLE"
              },
              {
                "content": "SLL",
                "value": "SLL"
              },
              {
                "content": "SOS",
                "value": "SOS"
              },
              {
                "content": "SRD",
                "value": "SRD"
              },
              {
                "content": "STD",
                "value": "STD"
              },
              {
                "content": "STN",
                "value": "STN"
              },
              {
                "content": "SVC",
                "value": "SVC"
              },
              {
                "content": "SYP",
                "value": "SYP"
              },
              {
                "content": "SZL",
                "value": "SZL"
              },
              {
                "content": "THB",
                "value": "THB"
              },
              {
                "content": "TJS",
                "value": "TJS"
              },
              {
                "content": "TMT",
                "value": "TMT"
              },
              {
                "content": "TND",
                "value": "TND"
              },
              {
                "content": "TOP",
                "value": "TOP"
              },
              {
                "content": "TRY",
                "value": "TRY"
              },
              {
                "content": "TTD",
                "value": "TTD"
              },
              {
                "content": "TWD",
                "value": "TWD"
              },
              {
                "content": "TZS",
                "value": "TZS"
              },
              {
                "content": "UAH",
                "value": "UAH"
              },
              {
                "content": "UGX",
                "value": "UGX"
              },
              {
                "content": "USD",
                "value": "USD"
              },
              {
                "content": "UYU",
                "value": "UYU"
              },
              {
                "content": "UZS",
                "value": "UZS"
              },
              {
                "content": "VEF",
                "value": "VEF"
              },
              {
                "content": "VES",
                "value": "VES"
              },
              {
                "content": "VND",
                "value": "VND"
              },
              {
                "content": "VUV",
                "value": "VUV"
              },
              {
                "content": "WST",
                "value": "WST"
              },
              {
                "content": "XAF",
                "value": "XAF"
              },
              {
                "content": "XCD",
                "value": "XCD"
              },
              {
                "content": "XOF",
                "value": "XOF"
              },
              {
                "content": "XPF",
                "value": "XPF"
              },
              {
                "content": "YER",
                "value": "YER"
              },
              {
                "content": "ZAR",
                "value": "ZAR"
              },
              {
                "content": "ZMW",
                "value": "ZMW"
              },
              {
                "content": "ZMK",
                "value": "ZMK"
              },
              {
                "content": "ZWD",
                "value": "ZWD"
              }
            ]
          },
          "CurrencyRate": {
            "type": "number",
            "index": 13,
            "label": "Currency Rate",
            "tooltip": "The currency rate for a multicurrency invoice. If no rate is specified, the XE.com day rate is used. (max length = [18].[6])"
          },
          "Status": {
            "type": "select",
            "index": 14,
            "label": "Status",
            "tooltip": "See <a target=\"_blank\"href=\"https://developer.xero.com/documentation/api/accounting/invoices#invoice-status-codes\">Invoice Status Codes</a>",
            "options": [
              {
                "content": "DRAFT",
                "value": "DRAFT"
              },
              {
                "content": "SUBMITTED",
                "value": "SUBMITTED"
              },
              {
                "content": "DELETED",
                "value": "DELETED"
              },
              {
                "content": "AUTHORISED",
                "value": "AUTHORISED"
              },
              {
                "content": "PAID",
                "value": "PAID"
              },
              {
                "content": "VOIDED",
                "value": "VOIDED"
              }
            ]
          },
          "SentToContact": {
            "type": "toggle",
            "index": 15,
            "label": "Sent To Contact",
            "tooltip": "Boolean to set whether the invoice in the Xero app should be marked as “sent”. This can be set only on invoices that have been approved."
          },
          "ExpectedPaymentDate": {
            "type": "date-time",
            "config": {
              "format": "YYYY-MM-DD",
              "enableTime": false
            },
            "index": 16,
            "label": "Expected Payment Date",
            "tooltip": "Shown on sales invoices (Accounts Receivable) when this has been set."
          },
          "PlannedPaymentDate": {
            "type": "date-time",
            "config": {
              "format": "YYYY-MM-DD",
              "enableTime": false
            },
            "index": 17,
            "label": "Planned Payment Date",
            "tooltip": "Shown on bills (Accounts Payable) when this has been set."
          }
        }
      }
    }
  ],
  "outPorts": [
    {
      "name": "out",
      "options": [
        {
          "label": "Type",
          "value": "Type",
          "schema": {
            "example": "ACCREC"
          }
        },
        {
          "label": "InvoiceID",
          "value": "InvoiceID",
          "schema": {
            "example": "b2c3d4e5-f6a7-8901-bcde-f12345678901"
          }
        },
        {
          "label": "InvoiceNumber",
          "value": "InvoiceNumber",
          "schema": {
            "example": "INV-2026-0042"
          }
        },
        {
          "label": "Reference",
          "value": "Reference",
          "schema": {
            "example": "Website redesign - phase 2"
          }
        },
        {
          "label": "Payments",
          "value": "Payments",
          "schema": {
            "example": [
              {
                "PaymentID": "f0a1b2c3-d4e5-4f60-8a91-2b3c4d5e6f70",
                "Date": "/Date(1774656000000+0000)/",
                "Amount": 1200,
                "CurrencyRate": 1,
                "HasAccount": true
              }
            ]
          }
        },
        {
          "label": "Prepayments",
          "value": "Prepayments",
          "schema": {
            "example": []
          }
        },
        {
          "label": "Overpayments",
          "value": "Overpayments",
          "schema": {
            "example": []
          }
        },
        {
          "label": "AmountDue",
          "value": "AmountDue",
          "schema": {
            "example": 1725
          }
        },
        {
          "label": "AmountPaid",
          "value": "AmountPaid",
          "schema": {
            "example": 0
          }
        },
        {
          "label": "Url",
          "value": "Url",
          "schema": {
            "example": "https://in.xero.com/AQ2KZDPHWLA6ZJKHVQNP"
          }
        },
        {
          "label": "SentToContact",
          "value": "SentToContact",
          "schema": {
            "example": false
          }
        },
        {
          "label": "CurrencyRate",
          "value": "CurrencyRate",
          "schema": {
            "example": 1
          }
        },
        {
          "label": "TotalDiscount",
          "value": "TotalDiscount",
          "schema": {
            "example": 0
          }
        },
        {
          "label": "IsDiscounted",
          "value": "IsDiscounted",
          "schema": {
            "example": false
          }
        },
        {
          "label": "HasAttachments",
          "value": "HasAttachments",
          "schema": {
            "example": false
          }
        },
        {
          "label": "HasErrors",
          "value": "HasErrors",
          "schema": {
            "example": false
          }
        },
        {
          "label": "Attachments",
          "value": "Attachments",
          "schema": {
            "example": [
              {
                "AttachmentID": "e59a2c7f-1306-4078-a0f5-3c62f9d4c25e",
                "FileName": "signed-quote.pdf",
                "MimeType": "application/pdf",
                "ContentLength": "48213"
              }
            ]
          }
        },
        {
          "label": "InvoicePaymentServices",
          "value": "InvoicePaymentServices",
          "schema": {
            "example": []
          }
        },
        {
          "label": "Contact",
          "value": "Contact",
          "schema": {
            "example": "Acme Corporation"
          }
        },
        {
          "label": "DateString",
          "value": "DateString",
          "schema": {
            "example": "2026-01-15"
          }
        },
        {
          "label": "Date",
          "value": "Date",
          "schema": {
            "example": "/Date(1774051200000+0000)/"
          }
        },
        {
          "label": "DueDateString",
          "value": "DueDateString",
          "schema": {
            "example": "2026-02-15"
          }
        },
        {
          "label": "DueDate",
          "value": "DueDate",
          "schema": {
            "example": "/Date(1776643200000+0000)/"
          }
        },
        {
          "label": "ExpectedPaymentDateString",
          "value": "ExpectedPaymentDateString",
          "schema": {
            "example": "2026-04-15T00:00:00"
          }
        },
        {
          "label": "ExpectedPaymentDate",
          "value": "ExpectedPaymentDate",
          "schema": {
            "example": "/Date(1776211200000+0000)/"
          }
        },
        {
          "label": "PlannedPaymentDateString",
          "value": "PlannedPaymentDateString",
          "schema": {
            "example": "2026-04-20T00:00:00"
          }
        },
        {
          "label": "PlannedPaymentDate",
          "value": "PlannedPaymentDate",
          "schema": {
            "example": "/Date(1776643200000+0000)/"
          }
        },
        {
          "label": "BrandingThemeID",
          "value": "BrandingThemeID",
          "schema": {
            "example": "324587a9-7eed-46c0-ad47-6f2a7fbd0b9d"
          }
        },
        {
          "label": "Status",
          "value": "Status",
          "schema": {
            "example": "DRAFT"
          }
        },
        {
          "label": "LineAmountTypes",
          "value": "LineAmountTypes",
          "schema": {
            "example": "Exclusive"
          }
        },
        {
          "label": "LineItems",
          "value": "LineItems",
          "schema": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "Description": {
                  "type": "string",
                  "title": "Description"
                },
                "UnitAmount": {
                  "type": "number",
                  "title": "UnitAmount"
                },
                "TaxAmount": {
                  "type": "number",
                  "title": "TaxAmount"
                },
                "LineAmount": {
                  "type": "number",
                  "title": "LineAmount"
                },
                "Tracking": {
                  "type": "array",
                  "title": "Tracking",
                  "items": {
                    "type": "object",
                    "properties": {
                      "TrackingCategoryID": {
                        "type": "string",
                        "title": "TrackingCategoryID"
                      },
                      "Name": {
                        "type": "string",
                        "title": "Name"
                      },
                      "Option": {
                        "type": "string",
                        "title": "Option"
                      }
                    }
                  }
                },
                "Quantity": {
                  "type": "number",
                  "title": "Quantity"
                },
                "DiscountRate": {
                  "type": "number",
                  "title": "DiscountRate"
                },
                "LineItemID": {
                  "type": "string",
                  "title": "LineItemID"
                },
                "DiscountEnteredAsPercent": {
                  "type": "boolean",
                  "title": "DiscountEnteredAsPercent"
                },
                "DiscountAmount": {
                  "type": "number",
                  "title": "DiscountAmount"
                },
                "AccountCode": {
                  "type": "string",
                  "title": "AccountCode"
                },
                "ItemCode": {
                  "type": "string",
                  "title": "ItemCode"
                },
                "TaxType": {
                  "type": "string",
                  "title": "TaxType"
                }
              }
            },
            "example": [
              {
                "LineItemID": "7c3a5b19-2e84-4d06-9a1f-8b5c0d2e4f63",
                "Description": "Design consultancy",
                "Quantity": 8,
                "UnitAmount": 400,
                "AccountCode": "200",
                "ItemCode": "CONSULT",
                "TaxType": "OUTPUT2",
                "TaxAmount": 480,
                "LineAmount": 3200,
                "DiscountRate": 0,
                "DiscountAmount": 0,
                "DiscountEnteredAsPercent": false,
                "Tracking": [
                  {
                    "TrackingCategoryID": "c1f7a4d2-8b39-4e05-9d6a-1f2b3c4d5e60",
                    "Name": "Region",
                    "Option": "North"
                  }
                ]
              }
            ]
          }
        },
        {
          "label": "SubTotal",
          "value": "SubTotal",
          "schema": {
            "example": 1500
          }
        },
        {
          "label": "TotalTax",
          "value": "TotalTax",
          "schema": {
            "example": 225
          }
        },
        {
          "label": "Total",
          "value": "Total",
          "schema": {
            "example": 1725
          }
        },
        {
          "label": "UpdatedDateUTC",
          "value": "UpdatedDateUTC",
          "schema": {
            "example": "2026-01-15T10:30:00Z"
          }
        },
        {
          "label": "CurrencyCode",
          "value": "CurrencyCode",
          "schema": {
            "example": "USD"
          }
        }
      ]
    }
  ],
  "icon": "(data URI omitted)"
}
```
