Summary Lines API
Read and change your company's summary lines (the list new projects copy) and a project's own lines and project fees.
Only projects created since summary lines have lines. On a project created before summary lines, the list answers no lines with legacyProject: true, and every change is refused with 400 LEGACY_PROJECT. See Summary Lines & Project Fees for what each calculation charges.
Endpoints
| Method | Path | Description |
|---|---|---|
| GET | /api/v1/summary-lines | Your company's lines, in order |
| GET | /api/v1/summary-lines/{id} | One company line |
| POST | /api/v1/summary-lines | Add a company line (201) |
| PUT | /api/v1/summary-lines/{id} | Replace a company line |
| DELETE | /api/v1/summary-lines/{id} | Delete a company line (409 IN_USE while another line ticks it) |
| POST | /api/v1/summary-lines/reorder | Reorder the company lines |
| GET | /api/v1/projects/{projectId}/summary-lines | The project's lines with legacyProject and message |
| GET | /api/v1/projects/{projectId}/summary-lines/{lineId} | One project line |
| POST | /api/v1/projects/{projectId}/summary-lines | Add a line or project fee to the project (201) |
| PUT | /api/v1/projects/{projectId}/summary-lines/{lineId} | Replace a project line |
| DELETE | /api/v1/projects/{projectId}/summary-lines/{lineId} | Delete a project line |
| POST | /api/v1/projects/{projectId}/summary-lines/reorder | Reorder the project's lines |
| POST | /api/v1/projects/{projectId}/summary-lines/load-global-defaults | Replace the project's lines with the company's lines (their room amounts go too) |
| PUT | /api/v1/projects/{projectId}/summary-lines/rooms/{roomId}/value | Set a room's own amounts for a flat-per-room line |
Reads by a user who can edit, and every company change, first write your company's starter lines if they were never written. Changes need edit access; a ReadOnly user can only read. Setting a room's amount (PUT …/rooms/{roomId}/value) on a contracted version returns 409 LOCKED_VERSION. Line changes are project-wide and are not locked.
Line Fields
| Field | Type | Description |
|---|---|---|
name | string | Required on POST and PUT |
calculation | string | Required: percent_of_items, hours_times_rate, flat_per_room or project_fee |
countsAsServices | boolean | Counted inside Services on documents. false when a new line leaves it out; a PUT that leaves it out keeps the stored value |
factorPercent | decimal | The percentage of the ticked items (percent_of_items) or of their hours (hours_times_rate) |
costPercent | decimal | A % line's cost, as a percentage of costBasis |
costBasis | string | items_sell (default) or items_cost |
sellRatePerHour / costRatePerHour | decimal | An hours line's rates |
flatSellAmount / flatCostAmount | decimal | A flat-per-room line's amounts per room, or a project fee's amount |
isTaxable | boolean | A project fee is taxed. true when a new line leaves it out; a PUT that leaves it out keeps the stored value |
items | array | What a % or hours line ticks: { "kind", "laborTypeId", "summaryLineId" }, kind one of equipment_sell, labor_type, cabling, summary_line, legacy_cabling_labor. A project fee is never ticked |
Responses also carry id, sourceSummaryLineId (the company line a project line was copied from), orderIndex and description, a plain-words sentence. Names are case-insensitive. An unknown name returns 400 INVALID_DATA listing the valid ones, and an unknown field returns 400 UNKNOWN_FIELDS.
Example: add a project fee
POST /api/v1/projects/42/summary-lines
{
"name": "Permit",
"calculation": "project_fee",
"flatSellAmount": 300.00,
"isTaxable": false
}
Response (201 - Created)
{
"success": true,
"data": {
"id": 517,
"sourceSummaryLineId": null,
"name": "Permit",
"orderIndex": 2,
"calculation": "project_fee",
"countsAsServices": false,
"factorPercent": null,
"costPercent": null,
"costBasis": "items_sell",
"sellRatePerHour": null,
"costRatePerHour": null,
"flatSellAmount": 300.00,
"flatCostAmount": null,
"isTaxable": false,
"items": [],
"description": "Project fee: 300, not taxed"
},
"message": "Summary line created",
"timestamp": "2026-11-17T15:30:00Z"
}
Room amounts
PUT .../rooms/{roomId}/value takes { "summaryLineId", "sell", "cost" }. summaryLineId is required; sending sell and cost both null puts the room back on the line's own amounts. A negative amount, or a line that is not flat per room, returns 400 INVALID_DATA.
Errors
A refused line returns its reasons in errors: 400 LEGACY_PROJECT on a project created before summary lines, 409 IN_USE when another line ticks it, otherwise 400 VALIDATION_FAILED (for example DUPLICATE_NAME, DEPENDENCY_ORDER or PROJECT_FEE_NOT_ALLOWED). A project, line or room of another company, or one that does not exist, returns 404 NOT_FOUND.
{
"success": false,
"error": {
"code": "LEGACY_PROJECT",
"message": "This project was created before summary lines, so it keeps its fixed fees (freight, AV drawings and project management) and can't have summary lines.",
"details": null,
"errors": [
{ "code": "LEGACY_PROJECT", "message": "This project was created before summary lines, so it keeps its fixed fees (freight, AV drawings and project management) and can't have summary lines." }
]
},
"timestamp": "2026-11-17T15:30:00Z"
}
Project Fees in the Money Endpoints
GET /api/v1/projects/{id}/reports/financial-summary-totalsaddsprojectFees,projectFeesTaxandtaxableSubtotal, and the response listsprojectFees(each with its sell, cost, tax and whether it is taxable).equipmentSellandnonEquipmentSellcount the rooms only, sograndTotal=equipmentSell+nonEquipmentSell+projectFees+taxes. A project fee's cost is only in theprojectFeeslist;equipmentCostandnonEquipmentCostleave it out. Each room lists itssummaryLines.POST /api/v1/projects/{id}/estimate- The response addstaxableSubtotalandprojectFees.- Room invoices (
includeProjectFeeson both invoice-create endpoints) -truebills the project fees,falseleaves them off; left out, they are billed only when the invoice covers every room. Ignored on projects created before summary lines and on equipment-only invoices.
