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.
- Archived bills no longer appear in
GET /billsorGET /projects/{project_id}/bills.GET /bills/{bill_id}still returns them, withisArchived: 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 withisActive: truefor an archived bill, the request returns400, because the fields are applied first. - Unarchiving can return
400when another document has since billed the same scope lines. - A request that only sets
isActiveand uses an ID that belongs to another document type (for example an invoice) returns404and changes nothing.
