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

- Component: `appmixer.xero.accounting.NewInvoice`
- Kind: Trigger
- Version: 1.0.0
- 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.NewInvoice>

Triggered when a new invoice is created.

## Properties

| Field | Type | Description |
| --- | --- | --- |
| Tenant ID (`tenantId`) | text | - |

## 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.NewInvoice",
  "author": "Jiří Hofman <jirka@client.io>",
  "description": "Triggered when a new invoice is created.",
  "private": false,
  "webhook": true,
  "auth": {
    "service": "appmixer:xero",
    "scope": [
      "accounting.invoices.read"
    ]
  },
  "quota": {
    "manager": "appmixer:xero:accounting",
    "resources": "requests",
    "scope": {
      "userId": "{{userId}}"
    }
  },
  "properties": {
    "name": "in",
    "schema": {
      "type": "object",
      "properties": {
        "tenantId": {
          "type": "string"
        }
      },
      "required": [
        "tenantId"
      ]
    },
    "inspector": {
      "inputs": {
        "tenantId": {
          "type": "text",
          "label": "Tenant ID",
          "index": 1,
          "source": {
            "url": "/component/appmixer/xero/accounting/ListTenants?outPort=tenants",
            "data": {
              "transform": "./transformers#tenantsToSelectArray"
            }
          }
        }
      }
    }
  },
  "outPorts": [
    {
      "name": "out",
      "options": [
        {
          "label": "Type",
          "value": "Type",
          "schema": {
            "example": "ACCREC"
          }
        },
        {
          "label": "InvoiceID",
          "value": "InvoiceID",
          "schema": {
            "example": "f6a7b8c9-d0e1-2345-fabc-567890123456"
          }
        },
        {
          "label": "InvoiceNumber",
          "value": "InvoiceNumber",
          "schema": {
            "example": "INV-2026-0043"
          }
        },
        {
          "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": 920
          }
        },
        {
          "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": "New Client Corp"
          }
        },
        {
          "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": 800
          }
        },
        {
          "label": "TotalTax",
          "value": "TotalTax",
          "schema": {
            "example": 120
          }
        },
        {
          "label": "Total",
          "value": "Total",
          "schema": {
            "example": 920
          }
        },
        {
          "label": "UpdatedDateUTC",
          "value": "UpdatedDateUTC",
          "schema": {
            "example": "2026-01-15T12:00:00Z"
          }
        },
        {
          "label": "CurrencyCode",
          "value": "CurrencyCode",
          "schema": {
            "example": "EUR"
          }
        }
      ]
    }
  ],
  "icon": "(data URI omitted)"
}
```
