create_order
Place a sales order for a contact after checking stock; returns a priced preview by default, then commit to decrement inventory after user confirmation.
Instructions
Place a sales order for a contact. Checks stock first. dry_run=true (default) only returns a priced preview , confirm with the user, then call again with dry_run=false to commit and decrement inventory.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| qty | Yes | ||
| sku | Yes | ||
| dry_run | No | ||
| contact_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||