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.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,113 Super User 2024 Season 2
Martin Dráb 229,918 Most Valuable Professional
nmaenpaa 101,156