Creating Sales Order from API

Hi,

What is the correct way to create a document with links in them? (eg. doctype Sales Order)

  • REST API or RPC call would be the same path right?

(erpnext.selling.doctype.quotation.quotation.make_sales_order)
(POST apiUri/resource/Sales Order)

I have tried to add an array to the variable ‘items’, but API is complaining that “Error: Data missing in table: Items”: [{item_code: ‘xx’, qty: 1, s_warehouse: ‘xxx’, t_warehouse: ‘xxxx’}]