Create sales order
sosinventory_create_sales_orderWRITE: creates a new sales order for an EXISTING customer with line items for existing items (a customer or item cannot be created inside an order: use the create tools first). The order number is assigned automatically (SOS auto-numbering) unless you pass one. Confirm the customer, items, quantities and prices with the user before calling. POST /api/v2/salesorder.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Order date (YYYY-MM-DDTHH:MM:SS); defaults to now in SOS. | |
| lines | Yes | Order lines. | |
| number | No | Order number; leave out for SOS's automatic numbering. | |
| comment | No | Internal comment (not shown to the customer). | |
| customer | Yes | Existing customer (sosinventory_list_customers). | |
| location | No | Location (type=location). | |
| customer_po | No | Customer purchase order reference. | |
| customer_message | No | Message shown to the customer. |