Global API
...
Request
Invoice
Update
1min
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)
Request
Response
1{
2 action=updateInvoice,
3 responseJSON={
4 "statusCode":200,
5 "invoices":[
6 {
7 "UpdatedDateUTC":null,
8 "Type":"ACCREC",
9 "TotalTax":0.00,
10 "TotalDiscount":null,
11 "Total":1000.00,
12 "Telephone":"",
13 "SubTotal":1000.00,
14 "Status":"AUTHORISED",
15 "SentToContact":false,
16 "SalesforceRecordId":"a0K7F00001eFt7EUAS",
17 "Reference":"Test Invoice",
18 "PurchaseOrderNumber":null,
19 "PurchaseOrderID":null,
20 "Payments":null,
21 "LineItems":[
22 {
23 "UnitAmount":100.00,
24 "Tracking":[
25
26 ],
27 "TaxType":"OUTPUT",
28 "TaxAmount":0.00,
29 "Quantity":10.0000,
30 "LineItemID":"c638e3bd-3427-485f-a5f4-ea8b2b4742d4",
31 "LineAmount":1000.00,
32 "ItemCode":null,
33 "DiscountRate":null,
34 "Description":"Line Item Description Updated",
35 "AccountCode":"200"
36 }
37 ],
38 "LineAmountTypes":"Exclusive",
39 "IsDiscounted":false,
40 "InvoiceNumber":"INV-0003",
41 "InvoiceID":"c473fb66-9e4c-445a-9855-bba92d6629e9",
42 "HasErrors":false,
43 "DueDateString":"2021-12-06T00:00:00",
44 "DueDate":"/Date(1638748800000+0000)/",
45 "DeliveryInstructions":"",
46 "DeliveryDateString":null,
47 "DeliveryDate":null,
48 "DeliveryAddress":"",
49 "DateVariable":"/Date(1636588800000+0000)/",
50 "DateString":"2021-11-11T00:00:00",
51 "CurrencyRate":1.0000000000,
52 "CurrencyCode":"INR",
53 "CreditNotes":null,
54 "Contact":{
55 "Name":"Test Contact 1",
56 "ContactStatus":"ACTIVE",
57 "ContactID":"3d2df469-b041-4246-a50b-142e87631aa9"
58 },
59 "BrandingThemeID":"8e43230b-c814-4435-bdb4-84cad1875e3d",
60 "AttentionTo":"",
61 "AmountPaid":0.00,
62 "AmountDue":1000.00,
63 "AmountCredited":0.00
64 }
65 ],
66 "errors":[
67
68 ]
69 },
70 timestamp=1636616272349,
71 validRequest=true,
72 version=1.0
73}