HI, having a bit of an issue working out how to create a Sales Order with items using the API. Are there certain fields that need to be there? How are the items inserted? I’m guessing it is ‘item’:{‘item_code’:‘xxx’,‘qty’:1}???
Using Python requests module
A bunch of information on how to do it is here: https://frappe.github.io/frappe/user/guides/integration/rest_api.html
When you create a document, if you are missing information it will let you know (see the traceback provided in the error).
Thanks Ben.