> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.coperniq.io/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.coperniq.io/_mcp/server.

## Work-order line-item prices

### Fixed: line-item prices on work orders and work-order templates

`unitCost`, `unitPrice`, `totalCost` and `totalPrice` on work-order line items were returned 100 times too small (for example `0.2` for a \$20 line). They now come back in dollars, matching the app and the prices you send.

* `GET /work-orders/{work_order_id}` (service work orders on accounts)
* `PUT /work-orders/{work_order_id}/line-items` (the response)
* `GET /work-orders/templates`

Document totals such as `amount` and `subtotal` are unchanged. If your integration multiplied the line-item prices by 100 to correct them, remove that step.

## Bills

### Updated: archive and unarchive bills with `isActive`

`PATCH /bills/{bill_id}` now accepts `isActive`, the same field invoices use. Send `{ "isActive": false }` to archive a bill and `{ "isActive": true }` to unarchive it. The response is the bill, with `isArchived` showing the new state. Until now the only way to remove a bill through the API was `DELETE`, which is permanent.

```json
PATCH /bills/{bill_id}
{ "isActive": false }
```

* Archived bills no longer appear in `GET /bills` or `GET /projects/{project_id}/bills`. `GET /bills/{bill_id}` still returns them, with `isArchived: true`.
* A bill with payments recorded can't be archived. The request returns `400`.
* An archived bill can't be edited. To change one, first send `{ "isActive": true }` on its own, then send the changes. If you send other fields together with `isActive: true` for an archived bill, the request returns `400`, because the fields are applied first.
* Unarchiving can return `400` when another document has since billed the same scope lines.
* A request that only sets `isActive` and uses an ID that belongs to another document type (for example an invoice) returns `404` and changes nothing.