Add a parts or labour line
work_order_add_lineAdd one line: parts with quantity, unit_cost_minor in whole MINOR units and optional markup, or labour with hours and rate_minor. A line on an invoiced order, or dated before the request, is refused.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | The day this line was worked or fitted, YYYY-MM-DD | |
| kind | Yes | parts for materials, labour for time on the job | |
| note | No | ||
| hours | No | labour only: hours worked, e.g. 3.5 | |
| quantity | No | parts only: how many. A negative or zero quantity is refused | |
| rate_minor | No | labour only: the hourly rate in whole minor units. Omit only once the shared business profile carries a default rate | |
| work_order | Yes | The work order id, e.g. WO-2026-0001, or the client name when only one job is theirs | |
| description | Yes | What it is, e.g. 3kW immersion element, or Second fix and test | |
| markup_percent | No | parts only: percent added to the UNIT cost before billing. Default 0 | |
| unit_cost_minor | No | parts only: what one costs YOU, in whole minor units. 1299 is EUR 12.99 |