I am writing a new invoice with one line item into Xero. It works fine, except that the Tracking Category is not being set.
I am following the instructions here: https://developer.xero.com/documentation/api/invoices#post
And below is part of the JSON being sent. All properties except tracking is being filled in. The tracking data comes from loaded TrackingCategories, so it is definitely correct.
"LineItems": [{
"Description": "test",
"LineAmount": 123.45,
"Tracking": [{
"TrackingCategoryID": "8990282b-63b6-459c-ab3b-cf7b8ff08bbc",
"Name": "Project",
"OptionName": "C17212 - 11 Boas Avenue, Joondalup"
}],
"Quantity": 1.0
}]
Any ideas on what may be wrong with my PUT request? Everything except tracking is working.