Create pending sales order
megaventory_create_sales_orderDestructive
WRITE: create a NEW sales order for an existing client in the PENDING status. A pending order is only a draft document: it is not verified, nothing is shipped, invoiced or paid, and stock is not touched. Verifying, shipping and invoicing happen in Megaventory, not through this server. POST /SalesOrder/SalesOrderUpdate.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rows | Yes | The order rows. | |
| type_id | No | Document type id of the sales order (default 3, the standard Sales Order type; see megaventory_list_document_types). | |
| comments | No | ||
| client_id | Yes | Client id (megaventory_list_clients_suppliers). | |
| location_id | No | Inventory location the order is served from (megaventory_list_inventory_locations). | |
| reference_no | No | Your own reference number. |