I'm trying to post invoices to XERO using the API. I'm getting an exception "The UnitAmount field is mandatory and cannot be derived from the Quantity and LineAmount fields." for null UnitAmount and Quantity.
The only way I can post the invoice lines is by adding 0 for UnitAmount and adding 1 for quantity.
How can I post null value invoice lines?