create_order
Add an order for a customer: pass customer_id, and optionally agent_id, billing_contact_id (a contact of that customer), status (default draft), total_amount (default 0), currency (default USD) and metadata. Needs a claimed Last Price credential. Needs a claimed workspace: a sandbox key from self-registration is refused (403) until a person claims the workspace.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | No | The order status. | |
| agent_id | No | The agent the order is for. | |
| currency | No | The currency code. Defaults to USD. | |
| metadata | No | Anything worth keeping with the record. | |
| customer_id | Yes | The customer: its id, as list_customers shows it. | |
| total_amount | No | The order total. | |
| billing_contact_id | No | The contact: its id, as list_contacts shows it. |