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 6e96609a-3685-46bd-8598-a24632850000, status PAID.
{
"Type": "ACCREC",
"Contact": {
"Name": "Sarah Oakdale",
"EmailAddress": "sarah.oakdale@example.com"
},
"Date": "2026-11-04",
"DueDate": "2026-11-06",
"LineAmountTypes": "Inclusive",
"InvoiceNumber": "INV-5197",
"Reference": "Clean Wed 4 Nov",
"Status": "AUTHORISED",
"LineItems": [
{
"Description": "Regular clean, Wed 4 Nov",
"Quantity": 1,
"UnitAmount": 136,
"AccountCode": "200",
"TaxType": "OUTPUT",
"LineAmount": 136
},
{
"Description": "Inside cupboards (emptied)",
"Quantity": 1,
"UnitAmount": 90,
"AccountCode": "200",
"TaxType": "OUTPUT",
"LineAmount": 90
}
]
}