Update
1 min
To update an Invoice in Xero, make sure you set the field "InvoiceID" with the unique reference value (ID generated by Xero for the Invoice)
{
action=updateInvoice,
responseJSON={
"statusCode":200,
"invoices":[
{
"UpdatedDateUTC":null,
"Type":"ACCREC",
"TotalTax":0.00,
"TotalDiscount":null,
"Total":1000.00,
"Telephone":"",
"SubTotal":1000.00,
"Status":"AUTHORISED",
"SentToContact":false,
"SalesforceRecordId":"a0K7F00001eFt7EUAS",
"Reference":"Test Invoice",
"PurchaseOrderNumber":null,
"PurchaseOrderID":null,
"Payments":null,
"LineItems":[
{
"UnitAmount":100.00,
"Tracking":[
],
"TaxType":"OUTPUT",
"TaxAmount":0.00,
"Quantity":10.0000,
"LineItemID":"c638e3bd-3427-485f-a5f4-ea8b2b4742d4",
"LineAmount":1000.00,
"ItemCode":null,
"DiscountRate":null,
"Description":"Line Item Description Updated",
"AccountCode":"200"
}
],
"LineAmountTypes":"Exclusive",
"IsDiscounted":false,
"InvoiceNumber":"INV-0003",
"InvoiceID":"c473fb66-9e4c-445a-9855-bba92d6629e9",
"HasErrors":false,
"DueDateString":"2021-12-06T00:00:00",
"DueDate":"/Date(1638748800000+0000)/",
"DeliveryInstructions":"",
"DeliveryDateString":null,
"DeliveryDate":null,
"DeliveryAddress":"",
"DateVariable":"/Date(1636588800000+0000)/",
"DateString":"2021-11-11T00:00:00",
"CurrencyRate":1.0000000000,
"CurrencyCode":"INR",
"CreditNotes":null,
"Contact":{
"Name":"Test Contact 1",
"ContactStatus":"ACTIVE",
"ContactID":"3d2df469-b041-4246-a50b-142e87631aa9"
},
"BrandingThemeID":"8e43230b-c814-4435-bdb4-84cad1875e3d",
"AttentionTo":"",
"AmountPaid":0.00,
"AmountDue":1000.00,
"AmountCredited":0.00
}
],
"errors":[
]
},
timestamp=1636616272349,
validRequest=true,
version=1.0
}