
External application uses the API to create sales orders. The sales order itself is created, but the sales order lines are returning a 400 error with no detail as to what is being rejected. Trying a few different sales orders with different items, all rejected the same way.
Posting to "api.businesscentral.dynamics.com/v2.0<id>/Production/api/v2.0/salesOrders(<soId>)/salesOrderLines?company=<company>"
Example data:
It appears at least that my issue was 'sequence' seems to not be accepted through the post. It seems a line number property is automatically applied on insertion of the line.