Documentation

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 in Z: 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 with 400 INVALID_TIME. Responses give each time twice: startUtc/endUtc in UTC with Z, and startLocal/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 rowVersion number that changes whenever the entry is saved. An edit or delete must send back the rowVersion it read; if someone changed the entry in the meantime, the request is refused with 409 CONCURRENCY and 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, PUT and DELETE with 403 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 200 and 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
}
FieldTypeDescription
idintegerThe entry's id.
projectIdintegerThe project the time was worked on.
techUserIdstringThe user id of the person whose time this is.
techNamestringThat 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, laborTypeinteger, stringThe labor type's id and name.
startUtc, endUtcstringThe in and out times, UTC with Z, to the second. endUtc is null while the entry is Running.
startLocal, endLocalstringThe same times as the company time zone's wall clock, with no offset. endLocal is null while Running.
hoursdecimal or nullThe 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.
statusstringRunning, Open or Approved.
isEditedbooleanTrue when the entry was changed after it was clocked out or added.
isLongbooleanTrue when the entry is longer than 16 hours (a Running entry counts its time so far), which usually means a forgotten clock-out.
sourcestringClock (clocked in and out) or Manual (typed in).
approvedAtUtcstring or nullWhen the entry was approved, UTC with Z; null when not approved.
rowVersionintegerSend this back with an edit or delete.
isTm, tmNoteboolean, string or nullThe 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).
billedBystring or nullThe 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"
}
StatusCodeMeaning
403FEATURE_LOCKEDTime tracking is not included in your company's current plan. Every endpoint.
403NOT_A_MEMBERThe caller, or the tech named in the request (userId, techUserId), is not a member of your company.
403FORBIDDENThe 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.
403READ_ONLY_ACCESSA read-only user tried to write.
404PROJECT_NOT_FOUNDNo such project in your company.
404NOT_FOUNDNo such time entry in your company.
400INVALID_TIMEstartUtc or endUtc is missing or not ISO 8601 UTC with a trailing Z.
400INVALID_WEEKweekStart is missing (where required), not yyyy-MM-dd, or not a Monday.
400INVALID_INPUTNo request body, no rowVersion on an edit or delete, or a status filter other than running, open or approved.
400UNKNOWN_FIELDSThe body names a field the endpoint does not take.
400REASON_REQUIREDA delete, or an edit of someone else's or an Approved entry, was sent without a reason.
400END_NOT_AFTER_STARTThe out time is not after the in time.
400TOO_LONGAn added or edited entry is longer than 24 hours. Clocking out has no length limit.
400END_IN_FUTUREThe out time is more than five minutes after now.
400LABOR_TYPE_INACTIVEThe labor type does not exist in your company or has been deactivated.
409OVERLAPThe times overlap another entry of the same person, on any project; a Running entry counts as lasting until now. error.entry is that entry.
409ALREADY_RUNNINGClock-in while the caller is already clocked in, without switch. error.entry is the Running entry.
409NOT_RUNNINGClock-out while the caller is not clocked in.
409CONCURRENCYSomeone 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.
400TM_NOTE_REQUIREDAn entry tagged T&M (isTm: true) without a tmNote, or with a note over 500 characters.
409BILLEDThe 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.
400INVALIDA 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

ParameterTypeDescription
weekStartdateOnly 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.
techUserIdstringOnly this person's entries.
statusstringrunning, open or approved, in any case.
laborTypeIdintegerOnly 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

FieldTypeRequiredDescription
userIdstringNoThe person whose time this is. Left out: the caller. Only an administrator may add time for someone else.
laborTypeIdintegerYesAn active labor type of your company.
startUtcstringYesThe in time, UTC with Z.
endUtcstringYesThe out time, UTC with Z: after startUtc, at most 24 hours later, and no more than five minutes after now.
isTmbooleanNotrue tags the entry T&M (extra work on a fixed-price job) and then needs tmNote. Left out: untagged.
tmNotestringWhen isTm is trueWhat 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

FieldTypeRequiredDescription
laborTypeIdintegerYesThe labor type, changed or not.
startUtc, endUtcstringYesThe in and out times, UTC with Z, with the same limits as an add.
rowVersionintegerYesThe entry's rowVersion as you read it.
reasonstringWhen editing someone else's or an Approved entryWhy the entry is changing; kept in its change history.
isTmbooleanNotrue 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.
tmNotestringNoThe 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"
}
  • estimateSource is Contract when the active version has a contract (its hours, approved change orders included) and CurrentDesign otherwise. An empty versionName means the project has no active version, and every estimate is 0.
  • actual counts every entry with an out time, Open and Approved; Running entries are left out.
  • estimated and actual are hours to 2 decimal places. actual is 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. inEstimate is false for a labor type with no estimated hours; such a row has remaining and usedPercent of null and is never over the estimate (the Time page shows it as Not in estimate). Otherwise remaining is estimated − actual from those figures and is negative when over, and usedPercent is a whole number. The total row's actual is worked out from the total minutes and its estimated from the total estimated hours, each rounded once, so they can differ slightly from adding up the rounded rows; its inEstimate is false when 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 laborTypeId of null.

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"
}
  • kind is Product, Cable or FreeText (a typed-in part).
  • quantity is a whole count for a product or typed-in part; for a cable it is the feet of one run, with runs the number of runs. quantityText is the Time page's wording.
  • A product's description, and a cable's pricingMode and rates, are copied from your catalog when the part is logged; they are never taken from the request.
  • costEach and unitSell are 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 stays null, 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.
  • source is VanOrStock or BoughtOnSite, a record only. billing is Bill; Absorb, a part kept for the job's cost that is never billed; or NoChargeLine, a part billed as a $0 line.
  • billedBy is the change order or invoice the part is on, null while unbilled; a billed part answers 409 BILLED to 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.

FieldTypeRequiredDescription
kindstringYesproduct, cable or freeText, in any case.
productIdintegerFor productA product of your catalog.
cableTypeIdintegerFor cableOne of your cable types.
descriptionstringFor freeTextWhat the part is, at most 500 characters.
quantitydecimalYesA whole number for product and freeText; for cable, the feet of one run (more than 0).
runsintegerFor cableThe number of runs, 1 or more.
costEachdecimalNoproduct and freeText: what one cost, 0 or more, rounded to the cent. Never shown to the customer.
unitSelldecimalNoproduct 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.
billingstringNobill (the default), absorb (kept for the job's cost, never billed) or noCharge (billed as a $0 line).
sourcestringNovanOrStock (the default) or boughtOnSite.
notestringNoAt 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"
}
  • destination is ChangeOrder or Invoice. taxRate is the contract's frozen rate, which only an invoice can apply, and only when asked.
  • sellRate is null when the contract froze no rate for the hour's labor type; billing such an hour is refused.
  • A part's amount is its price to the cent, null while it cannot be priced; needsPrice is true for a typed-in part the bill must be sent a price for. billing is Bill or NoChargeLine, a $0 line that never needs a price; an absorbed part is never offered.
  • laborLines has one line per labor type: the minutes are added up first and turned into hours once, so a total never adds rounded hours.
  • subtotal covers 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.
  • refusal and refusalMessage say why a bill would be refused whatever is sent, such as NO_CONTRACT_ROOM (a fixed-price contract with no plain room to hold the change order's lines); both are null when 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
}
  • freeTextPrices gives the price of one for each typed-in part the preview marked needsPrice, keyed by part id.
  • applyTax applies 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 its rowVersion with 400 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.

StatusCodeMeaning
403FORBIDDENThe caller is not an administrator.
409ENTRY_CHANGED, CONCURRENCYA 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.
409NUMBER_CLASHAnother invoice took the number at the same moment. Try again.
422NO_CONTRACTThe project has no approved contract.
422NO_CONTRACT_ROOMA fixed-price contract with no plain room to hold the change order's lines.
422NOTHING_SELECTEDNo entries and no parts were sent, or nothing sent adds up to an amount (for example, only no-charge parts).
422ENTRY_NOT_BILLABLEAn hour's labor type has no rate in the contract; the message names it.
422PART_UNPRICEDA 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).
422NO_TAX_RATEapplyTax 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.