Invoice ItemLine schema error

I have discovered an issue with creating invoices via the API. It’s happy until I specify a Tax child element as per the docs - the error given is this:

The element ‘ItemLine’ in namespace ‘’ has invalid child element ‘Tax1’ in namespace ‘’.

Here’s a sample request in XML:


Aha! As soon as I’m about to give up, I give it one last try and put Cost and Qty below Tax1 and it works … I also forgot that UnitCost is of double type (1.00) not (1)

It’s happy now. As you were … :smile:

1 Like

Yep usually these schema validation errors are due to incorrect sequencing. I highly recommend XMLSpy for visualising the schemas, it’s hard to read the XSD in it’s raw form.