Open paltman opened 2 months ago
The issue is because the XML produced is sensitive to the order of the sibling elements and I think this library is producing the elements out of order from what the documentation outlines.
I can reproduce by hand constructing and sending the XML to the API and then when I change the ordering of the sibling elements for the <lineitem />
group to match what the documentation has, it works.
I've modified the node-js example code to test out creating an invoice:
This raises an exception:
I've received the same error when constructing the raw XML and hitting API without any SDK layer. When I set a locationId in my login block when creating my session and remove it here, it works (I have a multi-location account, but in that case the locationId has to be my top level entity).
Does the API not support creating invoices for a specific location under my top level entity?