Documentation

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

MethodPathDescription
GET/api/v1/summary-linesYour company's lines, in order
GET/api/v1/summary-lines/{id}One company line
POST/api/v1/summary-linesAdd 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/reorderReorder the company lines
GET/api/v1/projects/{projectId}/summary-linesThe project's lines with legacyProject and message
GET/api/v1/projects/{projectId}/summary-lines/{lineId}One project line
POST/api/v1/projects/{projectId}/summary-linesAdd 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/reorderReorder the project's lines
POST/api/v1/projects/{projectId}/summary-lines/load-global-defaultsReplace the project's lines with the company's lines (their room amounts go too)
PUT/api/v1/projects/{projectId}/summary-lines/rooms/{roomId}/valueSet 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

FieldTypeDescription
namestringRequired on POST and PUT
calculationstringRequired: percent_of_items, hours_times_rate, flat_per_room or project_fee
countsAsServicesbooleanCounted inside Services on documents. false when a new line leaves it out; a PUT that leaves it out keeps the stored value
factorPercentdecimalThe percentage of the ticked items (percent_of_items) or of their hours (hours_times_rate)
costPercentdecimalA % line's cost, as a percentage of costBasis
costBasisstringitems_sell (default) or items_cost
sellRatePerHour / costRatePerHourdecimalAn hours line's rates
flatSellAmount / flatCostAmountdecimalA flat-per-room line's amounts per room, or a project fee's amount
isTaxablebooleanA project fee is taxed. true when a new line leaves it out; a PUT that leaves it out keeps the stored value
itemsarrayWhat 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 - totals adds projectFees, projectFeesTax and taxableSubtotal, and the response lists projectFees (each with its sell, cost, tax and whether it is taxable). equipmentSell and nonEquipmentSell count the rooms only, so grandTotal = equipmentSell + nonEquipmentSell + projectFees + taxes. A project fee's cost is only in the projectFees list; equipmentCost and nonEquipmentCost leave it out. Each room lists its summaryLines.
  • POST /api/v1/projects/{id}/estimate - The response adds taxableSubtotal and projectFees.
  • Room invoices (includeProjectFees on both invoice-create endpoints) - true bills the project fees, false leaves 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.