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 (Commercial client), the contact matched by name, and the reference carrying the clean. Sent: Xero's InvoiceID is ed1f7f5c-7b0c-44a5-8e08-35b0686e0000, status AUTHORISED.
{
"Type": "ACCREC",
"Contact": {
"Name": "Harbourside Physio",
"EmailAddress": "accounts@harbourside-physio.example.com"
},
"Date": "2026-10-31",
"DueDate": "2026-11-30",
"LineAmountTypes": "Inclusive",
"InvoiceNumber": "INV-5098",
"Reference": "Cleans Thu 1 Oct to Sat 31 Oct",
"Status": "AUTHORISED",
"LineItems": [
{
"Description": "Office clean, Tue 6 Oct",
"Quantity": 1,
"UnitAmount": 200,
"AccountCode": "200",
"TaxType": "OUTPUT",
"LineAmount": 200
},
{
"Description": "Office clean, Tue 13 Oct",
"Quantity": 1,
"UnitAmount": 200,
"AccountCode": "200",
"TaxType": "OUTPUT",
"LineAmount": 200
},
{
"Description": "Office clean, Tue 20 Oct",
"Quantity": 1,
"UnitAmount": 200,
"AccountCode": "200",
"TaxType": "OUTPUT",
"LineAmount": 200
},
{
"Description": "Office clean, Tue 27 Oct",
"Quantity": 1,
"UnitAmount": 200,
"AccountCode": "200",
"TaxType": "OUTPUT",
"LineAmount": 200
}
]
}