Create pending purchase order
megaventory_create_purchase_orderDestructive
WRITE: create a NEW purchase order to an existing supplier in the PENDING status. A pending order is only a draft document: it is not verified or sent, nothing is received, invoiced or paid, and stock is not touched. Verifying and receiving happen in Megaventory, not through this server. POST /PurchaseOrder/PurchaseOrderUpdate.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rows | Yes | The order rows. | |
| type_id | No | Document type id of the purchase order (default 4, the standard Purchase Order type; see megaventory_list_document_types). | |
| comments | No | ||
| location_id | No | Inventory location the goods are received into (megaventory_list_inventory_locations). | |
| supplier_id | Yes | Supplier id (megaventory_list_clients_suppliers). | |
| reference_no | No | Your own reference number. |