What goes to Xero
Xero Accounting API 2.0, OpenAPI 20.0.1, read 2026-11-08PUT https://api.xero.com/api.xro/2.0/Invoices. One ACCREC invoice, lines GST inclusive, each with the account code and tax type from the line's default (Residential client), the contact matched by name, and the reference carrying the clean. Sent: Xero's InvoiceID is e6146445-5207-4fdf-8562-e1e96c480000, status PAID.
{
"Type": "ACCREC",
"Contact": {
"Name": "Jess Westbrook",
"EmailAddress": "jess.westbrook@example.com"
},
"Date": "2026-10-11",
"DueDate": "2026-10-13",
"LineAmountTypes": "Inclusive",
"InvoiceNumber": "INV-4515",
"Reference": "Cleans Mon 28 Sep to Sun 11 Oct",
"Status": "AUTHORISED",
"LineItems": [
{
"Description": "Regular clean, Mon 28 Sep",
"Quantity": 1,
"UnitAmount": 195,
"AccountCode": "200",
"TaxType": "OUTPUT",
"LineAmount": 195
},
{
"Description": "Inside cupboards (emptied)",
"Quantity": 1,
"UnitAmount": 90,
"AccountCode": "200",
"TaxType": "OUTPUT",
"LineAmount": 90
},
{
"Description": "Regular clean, Mon 5 Oct",
"Quantity": 1,
"UnitAmount": 195,
"AccountCode": "200",
"TaxType": "OUTPUT",
"LineAmount": 195
}
]
}