Time Tracking API
Read and record the hours your team works on projects: list entries, add, edit and delete them, clock in and out, approve a week, read the estimated-against-actual hours table, download the payroll Excel, log the parts used, and bill T&M hours and parts.
These endpoints do what the project's Time page does and follow the same rules; see Time Tracking for what an entry, a status and an approval are. Every request is made as the signed-in caller. Writes act as that caller, and whether the caller is an administrator is read from your team's records at the time of the request, not from the token.
Rules for Every Endpoint
- Times are UTC with a trailing
Z. Send times in ISO 8601 form in UTC, ending inZ:2026-11-19T13:00:00Z(seconds and fractions of a second are optional). A time with an offset such as+02:00, or with no zone at all, is refused with400 INVALID_TIME. Responses give each time twice:startUtc/endUtcin UTC withZ, andstartLocal/endLocal, the same moment as the wall clock in your company time zone, with no offset. - Weeks are given by their Monday, written
yyyy-MM-dd, and run Monday to Sunday in the company time zone. An entry belongs to the week in which it starts. - Row versions. Each entry carries a
rowVersionnumber that changes whenever the entry is saved. An edit or delete must send back therowVersionit read; if someone changed the entry in the meantime, the request is refused with409 CONCURRENCYand nothing changes. Read the entry again and retry. - Unknown fields in a request body are refused with
400 UNKNOWN_FIELDS, listing the valid fields. - Read-only users are refused every
POST,PUTandDELETEwith403 READ_ONLY_ACCESS. - Plan. Time tracking is included in paid plans and the free trial. While it is locked for your company, every endpoint answers
403 FEATURE_LOCKED. - Successful responses are
200and use the standard envelope{ "success": true, "data": ..., "message": ..., "timestamp": ... }; the payroll download is the one exception, returning the file itself.
The Time Entry Object
{
"id": 412,
"projectId": 845,
"techUserId": "8f0c2d1e-5b7a-4c3e-9d21-6a4b3f2e1c90",
"techName": "Dana Ruiz",
"laborTypeId": 1,
"laborType": "Installation",
"startUtc": "2026-11-19T13:00:00Z",
"endUtc": "2026-11-19T17:30:00Z",
"startLocal": "2026-11-19T08:00:00",
"endLocal": "2026-11-19T12:30:00",
"hours": 4.5,
"status": "Open",
"isEdited": false,
"isLong": false,
"source": "Manual",
"approvedAtUtc": null,
"rowVersion": 81234,
"isTm": true,
"tmNote": "Moved the lobby display at the client's request",
"billedBy": null
}
| Field | Type | Description |
|---|---|---|
id | integer | The entry's id. |
projectId | integer | The project the time was worked on. |
techUserId | string | The user id of the person whose time this is. |
techName | string | That person's name. In the entry returned by an add, edit, delete or clock action it is the name saved on the entry when it was made. |
laborTypeId, laborType | integer, string | The labor type's id and name. |
startUtc, endUtc | string | The in and out times, UTC with Z, to the second. endUtc is null while the entry is Running. |
startLocal, endLocal | string | The same times as the company time zone's wall clock, with no offset. endLocal is null while Running. |
hours | decimal or null | The worked hours: the whole minutes between the in and out times shown, as hours to 2 decimal places, the same figure as the Time page and the payroll Excel; null while Running. |
status | string | Running, Open or Approved. |
isEdited | boolean | True when the entry was changed after it was clocked out or added. |
isLong | boolean | True when the entry is longer than 16 hours (a Running entry counts its time so far), which usually means a forgotten clock-out. |
source | string | Clock (clocked in and out) or Manual (typed in). |
approvedAtUtc | string or null | When the entry was approved, UTC with Z; null when not approved. |
rowVersion | integer | Send this back with an edit or delete. |
isTm, tmNote | boolean, string or null | The T&M tag: true marks the hours as extra work on a fixed-price job, billable by change order, and tmNote says what the work was. This is the stored tag only; on a T&M job every approved hour is billable, tagged or not (see T&M Billing). |
billedBy | string or null | The bill the entry is on: a change order such as CO-003, or an invoice number; null while unbilled. A billed entry cannot be edited or deleted until that bill is voided. An entry returned by an add, edit, delete or clock action always has null here. |
Errors
Errors use the standard envelope:
{
"success": false,
"error": {
"code": "FEATURE_LOCKED",
"message": "Time tracking needs an active AVstackr plan or free trial. Choose a plan at https://avstackr.com/billing/plans.",
"details": null
},
"timestamp": "2026-11-21T12:00:00Z"
}
Two refusals also carry the entry they are about, in error.entry (in place of details): OVERLAP carries the entry the times clash with, and ALREADY_RUNNING carries the caller's Running entry.
{
"success": false,
"error": {
"code": "ALREADY_RUNNING",
"message": "You're clocked in at Corporate HQ · Installation.",
"entry": { "id": 415, "projectId": 845, "status": "Running", "endUtc": null, ... }
},
"timestamp": "2026-11-21T12:00:00Z"
}
| Status | Code | Meaning |
|---|---|---|
| 403 | FEATURE_LOCKED | Time tracking is not included in your company's current plan. Every endpoint. |
| 403 | NOT_A_MEMBER | The caller, or the tech named in the request (userId, techUserId), is not a member of your company. |
| 403 | FORBIDDEN | The caller may not do this: a tech changing someone else's entry or an Approved one, adding time for someone else, or a non-administrator approving a week or downloading payroll. |
| 403 | READ_ONLY_ACCESS | A read-only user tried to write. |
| 404 | PROJECT_NOT_FOUND | No such project in your company. |
| 404 | NOT_FOUND | No such time entry in your company. |
| 400 | INVALID_TIME | startUtc or endUtc is missing or not ISO 8601 UTC with a trailing Z. |
| 400 | INVALID_WEEK | weekStart is missing (where required), not yyyy-MM-dd, or not a Monday. |
| 400 | INVALID_INPUT | No request body, no rowVersion on an edit or delete, or a status filter other than running, open or approved. |
| 400 | UNKNOWN_FIELDS | The body names a field the endpoint does not take. |
| 400 | REASON_REQUIRED | A delete, or an edit of someone else's or an Approved entry, was sent without a reason. |
| 400 | END_NOT_AFTER_START | The out time is not after the in time. |
| 400 | TOO_LONG | An added or edited entry is longer than 24 hours. Clocking out has no length limit. |
| 400 | END_IN_FUTURE | The out time is more than five minutes after now. |
| 400 | LABOR_TYPE_INACTIVE | The labor type does not exist in your company or has been deactivated. |
| 409 | OVERLAP | The times overlap another entry of the same person, on any project; a Running entry counts as lasting until now. error.entry is that entry. |
| 409 | ALREADY_RUNNING | Clock-in while the caller is already clocked in, without switch. error.entry is the Running entry. |
| 409 | NOT_RUNNING | Clock-out while the caller is not clocked in. |
| 409 | CONCURRENCY | Someone else changed the entry or part (or, for an approval, one of the week's entries; for a bill, one of its rows) since it was read, or at the same moment. Nothing changed; read again and retry. |
| 400 | TM_NOTE_REQUIRED | An entry tagged T&M (isTm: true) without a tmNote, or with a note over 500 characters. |
| 409 | BILLED | The entry or part is on a change order or an invoice: This entry is billed on CO-003. Void that bill to change it. Administrators are refused too. |
| 400 | INVALID | A part whose fields do not fit its kind, a fractional count, or a note or description over 500 characters. |
The T&M bill routes have codes of their own, listed under POST /api/v1/projects/{projectId}/bill-tm below.
GET /api/v1/projects/{projectId}/time-entries
List a project's time entries, newest first.
Query Parameters
| Parameter | Type | Description |
|---|---|---|
weekStart | date | Only the week starting on this Monday (yyyy-MM-dd, company time zone); every entry of that week is returned. Left out: the newest 200 entries of any week. |
techUserId | string | Only this person's entries. |
status | string | running, open or approved, in any case. |
laborTypeId | integer | Only entries of this labor type. |
Response
{
"success": true,
"data": {
"projectId": 845,
"timeZone": "America/New_York",
"count": 1,
"total": 1,
"truncated": false,
"entries": [ { ...time entry... } ]
},
"message": "Retrieved 1 of 1 time entries",
"timestamp": "2026-11-21T12:00:00Z"
}
count is the number of entries returned and total the number that match. Without weekStart, when more than 200 match, truncated is true; pass weekStart to read older weeks. timeZone is the company time zone the ...Local times are in.
Errors: PROJECT_NOT_FOUND, INVALID_WEEK, INVALID_INPUT (status).
POST /api/v1/projects/{projectId}/time-entries
Add a closed (not Running) time entry.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
userId | string | No | The person whose time this is. Left out: the caller. Only an administrator may add time for someone else. |
laborTypeId | integer | Yes | An active labor type of your company. |
startUtc | string | Yes | The in time, UTC with Z. |
endUtc | string | Yes | The out time, UTC with Z: after startUtc, at most 24 hours later, and no more than five minutes after now. |
isTm | boolean | No | true tags the entry T&M (extra work on a fixed-price job) and then needs tmNote. Left out: untagged. |
tmNote | string | When isTm is true | What the extra work was, at most 500 characters. Ignored unless isTm is true. |
{
"laborTypeId": 1,
"startUtc": "2026-11-19T13:00:00Z",
"endUtc": "2026-11-19T17:30:00Z",
"isTm": true,
"tmNote": "Moved the lobby display at the client's request"
}
Response
The saved time entry in data, with the message Time entry added.
Errors: INVALID_INPUT, UNKNOWN_FIELDS, NOT_A_MEMBER, PROJECT_NOT_FOUND, INVALID_TIME, FORBIDDEN, END_NOT_AFTER_START, TOO_LONG, END_IN_FUTURE, LABOR_TYPE_INACTIVE, OVERLAP, CONCURRENCY, TM_NOTE_REQUIRED.
PUT /api/v1/time-entries/{id}
Change an entry's labor type, times and T&M tag. The project and the person never change; to move an entry, delete it and add a new one. A tech edits only their own entries that are not approved; an administrator edits anyone's. Changing an Approved entry's labor type or times removes its approval; changing only its T&M tag or note keeps the approval (a reason is still required). Every edit sets isEdited. Editing a Running entry gives it the out time you send. A billed entry (billedBy set) is refused with 409 BILLED.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
laborTypeId | integer | Yes | The labor type, changed or not. |
startUtc, endUtc | string | Yes | The in and out times, UTC with Z, with the same limits as an add. |
rowVersion | integer | Yes | The entry's rowVersion as you read it. |
reason | string | When editing someone else's or an Approved entry | Why the entry is changing; kept in its change history. |
isTm | boolean | No | true tags the entry T&M (and then it needs a note); false removes the tag and its note. Left out: the entry keeps its tag. |
tmNote | string | No | The T&M note, at most 500 characters. Left out: the entry keeps its note. Ignored on an entry that is not tagged, unless isTm: true tags it in the same request. |
{
"laborTypeId": 1,
"startUtc": "2026-11-19T13:00:00Z",
"endUtc": "2026-11-19T18:00:00Z",
"rowVersion": 81234,
"reason": "Tech stayed to finish the rack"
}
Response
The saved time entry, with its new rowVersion, and the message Time entry updated.
Errors: INVALID_INPUT, UNKNOWN_FIELDS, NOT_A_MEMBER, INVALID_TIME, NOT_FOUND, FORBIDDEN, REASON_REQUIRED, END_NOT_AFTER_START, TOO_LONG, END_IN_FUTURE, LABOR_TYPE_INACTIVE, OVERLAP, CONCURRENCY, TM_NOTE_REQUIRED, BILLED (409).
DELETE /api/v1/time-entries/{id}?rowVersion=&reason=
Delete an entry, with the same permission rule as an edit. Both query parameters are required: rowVersion as you read it, and a reason, which is kept with the record of the deleted entry.
Response
The entry as it was before the delete, with the message Time entry deleted.
Errors: INVALID_INPUT (no rowVersion), NOT_A_MEMBER, NOT_FOUND, FORBIDDEN, REASON_REQUIRED, CONCURRENCY, BILLED (409).
POST /api/v1/projects/{projectId}/time-entries/approve-week
Approve every Open entry of this project in one week, for everyone or for one person. Administrators only. Running and already Approved entries are left as they are.
Request Body
{
"weekStart": "2026-11-16",
"techUserId": null
}
weekStart (required) is the week's Monday, yyyy-MM-dd. techUserId (optional) limits the approval to that person's entries.
Response
{
"success": true,
"data": {
"projectId": 845,
"weekStart": "2026-11-16",
"approvedCount": 6
},
"message": "Approved 6 time entries",
"timestamp": "2026-11-21T12:00:00Z"
}
An approvedCount of 0 is a success with nothing to approve.
Errors: INVALID_INPUT, UNKNOWN_FIELDS, NOT_A_MEMBER, PROJECT_NOT_FOUND, INVALID_WEEK, FORBIDDEN, CONCURRENCY.
GET /api/v1/projects/{projectId}/hours
The project's estimated against actual hours per labor type, with the same figures as the Time page's Hours by labor type table.
Response
{
"success": true,
"data": {
"projectId": 845,
"estimateSource": "Contract",
"versionName": "V2",
"rows": [
{ "laborTypeId": 1, "name": "Installation", "estimated": 40.00, "actual": 12.50, "remaining": 27.50, "usedPercent": 31, "inEstimate": true },
{ "laborTypeId": 2, "name": "Programming", "estimated": 8.00, "actual": 9.00, "remaining": -1.00, "usedPercent": 113, "inEstimate": true },
{ "laborTypeId": 5, "name": "Site survey", "estimated": 0.00, "actual": 1.50, "remaining": null, "usedPercent": null, "inEstimate": false }
],
"total": { "laborTypeId": null, "name": "Total", "estimated": 48.00, "actual": 23.00, "remaining": 25.00, "usedPercent": 48, "inEstimate": true }
},
"timestamp": "2026-11-21T12:00:00Z"
}
estimateSourceisContractwhen the active version has a contract (its hours, approved change orders included) andCurrentDesignotherwise. An emptyversionNamemeans the project has no active version, and every estimate is 0.actualcounts every entry with an out time, Open and Approved; Running entries are left out.estimatedandactualare hours to 2 decimal places.actualis worked out from the whole minutes between each entry's in and out times, the same figure the Time page and the payroll Excel show.inEstimateisfalsefor a labor type with no estimated hours; such a row hasremainingandusedPercentofnulland is never over the estimate (the Time page shows it as Not in estimate). Otherwiseremainingisestimated − actualfrom those figures and is negative when over, andusedPercentis a whole number. Thetotalrow'sactualis worked out from the total minutes and itsestimatedfrom the total estimated hours, each rounded once, so they can differ slightly from adding up the rounded rows; itsinEstimateisfalsewhen the project has no estimated hours at all.- Labor types with neither estimated nor actual hours are left out. A row whose labor type has since been deleted has a
laborTypeIdofnull.
Errors: PROJECT_NOT_FOUND.
POST /api/v1/time/clock-in
Clock the caller in now: start a Running entry on a project as a labor type. It always acts for the caller, never for someone else.
{
"projectId": 845,
"laborTypeId": 1,
"switch": false
}
A person can have only one Running entry. With switch left out or false, clocking in while Running anywhere is refused with 409 ALREADY_RUNNING. With switch: true, the Running entry is clocked out and the new one started in the same step.
Response
The new Running entry, with the message Clocked in.
Errors: INVALID_INPUT, UNKNOWN_FIELDS, NOT_A_MEMBER, PROJECT_NOT_FOUND, LABOR_TYPE_INACTIVE, ALREADY_RUNNING, CONCURRENCY.
POST /api/v1/time/clock-out
Clock the caller out now, on whichever project they are clocked in. No body. The entry is closed however long it ran; an entry over 16 hours comes back with isLong: true, to be corrected with an edit.
Response
The closed entry, now Open, with the message Clocked out.
Errors: NOT_A_MEMBER, NOT_RUNNING, CONCURRENCY.
GET /api/v1/time/payroll?weekStart=&projectId=
Download the payroll Excel of one week's Approved entries. Administrators only. weekStart (required) is the week's Monday, yyyy-MM-dd, in the company time zone; projectId (optional) limits it to one project, and leaving it out covers every project.
Response
200 with the workbook itself, not the JSON envelope: content type application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, file name such as Payroll 2026-11-16 26-893.xlsx or Payroll 2026-11-16 All projects.xlsx. The workbook's sheets are described under Payroll Excel. There is no public link to this file; it is only returned to a signed-in administrator.
Errors (JSON envelope): NOT_A_MEMBER, INVALID_WEEK, FORBIDDEN, PROJECT_NOT_FOUND.
Parts Used
The parts the team used on a project: catalog products, cable and typed-in parts. Logging a part is what makes it billable (see T&M Billing). Anyone in your company logs parts; a tech changes only the parts they logged, an administrator anyone's. Logging a part takes nothing from stock.
The Part Object
{
"id": 57,
"projectId": 845,
"loggedByUserId": "8f0c2d1e-5b7a-4c3e-9d21-6a4b3f2e1c90",
"loggedByName": "Dana Ruiz",
"loggedAtUtc": "2026-11-19T15:12:00Z",
"kind": "Cable",
"productId": null,
"cableTypeId": 3,
"description": "Cat6 plenum",
"quantity": 150,
"runs": 2,
"quantityText": "150 ft/run · 2 runs",
"pricingMode": "PerFoot",
"sellPerFoot": 0.4275,
"sellPerRun": 12.3456,
"unitSell": null,
"note": null,
"rowVersion": 90412,
"billedBy": null,
"costEach": null,
"source": "VanOrStock",
"billing": "Bill"
}
kindisProduct,CableorFreeText(a typed-in part).quantityis a whole count for a product or typed-in part; for a cable it is the feet of one run, withrunsthe number of runs.quantityTextis the Time page's wording.- A product's
description, and a cable'spricingModeand rates, are copied from your catalog when the part is logged; they are never taken from the request. costEachandunitSellare what one product or typed-in part cost you and what it sells for. The cost is never shown to the customer. A sell left out when the part is saved is set then: the cost (costEach, else a product's catalog price) plus the contract's equipment markup. Before the project has an approved contract it staysnull, and the part is priced when it is billed; a typed-in part without a price is priced by the lead on the bill. A cable has neither: its rates price it.sourceisVanOrStockorBoughtOnSite, a record only.billingisBill;Absorb, a part kept for the job's cost that is never billed; orNoChargeLine, a part billed as a $0 line.billedByis the change order or invoice the part is on,nullwhile unbilled; a billed part answers409 BILLEDto an edit or delete.
GET /api/v1/projects/{projectId}/part-entries
List the project's parts, newest first. data is { "projectId": 845, "count": 1, "parts": [ { ...part... } ] }, with the message Retrieved 1 parts.
Errors: PROJECT_NOT_FOUND.
POST /api/v1/projects/{projectId}/part-entries
Log a part.
| Field | Type | Required | Description |
|---|---|---|---|
kind | string | Yes | product, cable or freeText, in any case. |
productId | integer | For product | A product of your catalog. |
cableTypeId | integer | For cable | One of your cable types. |
description | string | For freeText | What the part is, at most 500 characters. |
quantity | decimal | Yes | A whole number for product and freeText; for cable, the feet of one run (more than 0). |
runs | integer | For cable | The number of runs, 1 or more. |
costEach | decimal | No | product and freeText: what one cost, 0 or more, rounded to the cent. Never shown to the customer. |
unitSell | decimal | No | product and freeText: the price of one, to the cent. Left out, it is the cost plus the contract's equipment markup; before the project has a contract, the part is priced when it is billed. |
billing | string | No | bill (the default), absorb (kept for the job's cost, never billed) or noCharge (billed as a $0 line). |
source | string | No | vanOrStock (the default) or boughtOnSite. |
note | string | No | At most 500 characters. |
{
"kind": "cable",
"cableTypeId": 3,
"quantity": 150,
"runs": 2
}
The saved part in data, with the message Part logged.
Errors: INVALID_INPUT (no body, or a kind, billing or source that is not one of its values), UNKNOWN_FIELDS, NOT_A_MEMBER, PROJECT_NOT_FOUND, NOT_FOUND (the product or cable type is not one of yours), INVALID, FORBIDDEN.
PUT /api/v1/projects/{projectId}/part-entries/{id}
Replace a logged part's fields: send every field, as for a POST, plus the rowVersion you read. A field left out is cleared, not kept: a costEach or unitSell left out is cleared and the sell set again as for a POST, and a billing left out is re-set to bill and a source left out to vanOrStock, so an absorbed or no-charge part becomes billable, and a part bought on site reads as from the van or stock, unless you send its billing and source again. Changing neither the product nor the cable type keeps the copied description and rates. The part's project never changes; a part of another project answers 404 NOT_FOUND. Returns the saved part, with the message Part updated.
Errors: as for a POST, plus CONCURRENCY and BILLED (409).
DELETE /api/v1/projects/{projectId}/part-entries/{id}?rowVersion=
Delete a logged part; rowVersion is required. Returns { "id": 57, "projectId": 845 } with the message Part deleted.
Errors: INVALID_INPUT (no rowVersion), NOT_A_MEMBER, NOT_FOUND, FORBIDDEN, CONCURRENCY, BILLED (409).
T&M Billing
Bill a project's approved T&M hours and logged parts, as the Time page's Bill now does (see T&M Billing). Only approved, un-billed hours and un-billed parts can be billed, and each bills exactly once. The contract decides the destination: a draft change order on a fixed-price job (where only hours tagged T&M are billable), an invoice on a T&M job (where every approved hour is). Administrators only: anyone else is refused with 403 FORBIDDEN.
GET /api/v1/projects/{projectId}/tm-preview
What a bill would take now.
{
"success": true,
"data": {
"projectId": 845,
"destination": "Invoice",
"contractId": 77,
"taxRate": 8.25,
"hours": [
{ "entryId": 412, "techName": "Dana Ruiz", "laborTypeId": 1, "laborType": "Install", "date": "2026-11-19",
"minutes": 390, "hours": 6.50, "note": null, "sellRate": 95.125, "rowVersion": 81234 }
],
"parts": [
{ "partId": 57, "loggedByName": "Dana Ruiz", "date": "2026-11-19", "kind": "Cable", "description": "Cat6 plenum",
"quantity": 150, "runs": 2, "quantityText": "150 ft/run · 2 runs", "unitSell": null, "amount": 128.25,
"needsPrice": false, "rowVersion": 90412, "billing": "Bill" }
],
"laborLines": [
{ "laborTypeId": 1, "laborType": "Install", "minutes": 390, "hours": 6.50, "rate": 95.125, "amount": 618.31 }
],
"subtotal": 746.56,
"refusal": null,
"refusalMessage": null
},
"message": "1 time entries and 1 parts ready to bill",
"timestamp": "2026-11-21T12:00:00Z"
}
destinationisChangeOrderorInvoice.taxRateis the contract's frozen rate, which only an invoice can apply, and only when asked.sellRateisnullwhen the contract froze no rate for the hour's labor type; billing such an hour is refused.- A part's
amountis its price to the cent,nullwhile it cannot be priced;needsPriceistruefor a typed-in part the bill must be sent a price for.billingisBillorNoChargeLine, a $0 line that never needs a price; an absorbed part is never offered. laborLineshas one line per labor type: the minutes are added up first and turned into hours once, so a total never adds rounded hours.subtotalcovers every row that can be priced now, before tax, added as the destination's document adds them: an invoice adds its lines rounded to the cent, a change order rounds its total once.refusalandrefusalMessagesay why a bill would be refused whatever is sent, such asNO_CONTRACT_ROOM(a fixed-price contract with no plain room to hold the change order's lines); both arenullwhen it can bill.
Errors: FORBIDDEN (403), NO_CONTRACT (422, the project has no approved contract), NOT_A_MEMBER, PROJECT_NOT_FOUND.
POST /api/v1/projects/{projectId}/bill-tm
Bill the ticked hours and parts, in one save. Send each with the rowVersion the preview returned.
{
"entries": [ { "id": 412, "rowVersion": 81234 } ],
"parts": [ { "id": 57, "rowVersion": 90412 }, { "id": 58, "rowVersion": 90420 } ],
"freeTextPrices": { "58": 4.50 },
"applyTax": true
}
freeTextPricesgives the price of one for each typed-in part the preview markedneedsPrice, keyed by part id.applyTaxapplies the contract's frozen tax rate to an invoice. Left out: no tax. A change order is taxed by its contract as usual.- Unknown fields, at the top or in a row, are refused with
400 UNKNOWN_FIELDS; a row without itsrowVersionwith400 INVALID_INPUT.
Response
{
"success": true,
"data": {
"projectId": 845,
"destination": "Invoice",
"changeOrderId": null,
"changeOrderNumber": null,
"invoiceId": 301,
"invoiceNumber": "Riverside HQ-INV-004",
"entryCount": 1,
"partCount": 2,
"totalHours": 6.50,
"billTotal": 813.02
},
"message": "Billed on Riverside HQ-INV-004",
"timestamp": "2026-11-21T12:00:00Z"
}
billTotal is the change order's total, or the invoice's total with its tax. On a fixed-price job, changeOrderId and changeOrderNumber (such as CO-003) are set instead; the change order is a draft, to send for approval and approve as any other.
| Status | Code | Meaning |
|---|---|---|
| 403 | FORBIDDEN | The caller is not an administrator. |
| 409 | ENTRY_CHANGED, CONCURRENCY | A row was edited, deleted or billed since the preview, or another bill took it at the same moment, or a part sent is absorbed (never billed). Read the preview again. |
| 409 | NUMBER_CLASH | Another invoice took the number at the same moment. Try again. |
| 422 | NO_CONTRACT | The project has no approved contract. |
| 422 | NO_CONTRACT_ROOM | A fixed-price contract with no plain room to hold the change order's lines. |
| 422 | NOTHING_SELECTED | No entries and no parts were sent, or nothing sent adds up to an amount (for example, only no-charge parts). |
| 422 | ENTRY_NOT_BILLABLE | An hour's labor type has no rate in the contract; the message names it. |
| 422 | PART_UNPRICED | A typed-in part without a price in freeTextPrices, a price that is negative or not to the cent, or a catalog part with no price of its own and none in the catalog (edit the part to price it). |
| 422 | NO_TAX_RATE | applyTax on a contract with no tax rate. |
Nothing is written on a refusal. Also INVALID_INPUT, UNKNOWN_FIELDS, NOT_A_MEMBER, PROJECT_NOT_FOUND, and 403 READ_ONLY_ACCESS for a read-only user.
