add_order_line
Add a line item to an order: pass order_id, description and unit_price, and optionally quantity (default 1) 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 |
|---|---|---|---|
| metadata | No | Anything worth keeping with the record. | |
| order_id | Yes | The order: its id, as list_orders shows it. | |
| quantity | No | How many. Defaults to 1. | |
| unit_price | Yes | The price of one. | |
| description | Yes | What the line is for. |