Reference

Invoices

List and read receivable and payable invoices through the TimeSubmit API: filters, each operation's scope and every invoice field.

The invoice object

Receivables to clients and payables from consultants. Read only.

{
  "id": "p15v8x2z5b9d3f7h1k4m6q0s3u5w8y2a",
  "kind": "receivable",
  "invoiceNumber": "INV-0107",
  "status": "sent",
  "isOverdue": false,
  "daysPastDue": null,
  "currency": "GBP",
  "total": 9120,
  "invoiceDate": "2026-11-02T00:00:00.000Z",
  "issuedAt": "2026-11-02T00:00:00.000Z",
  "dueDate": "2026-12-02T00:00:00.000Z",
  "paidAt": null,
  "clientId": "j57c2m8q4t1w9y3z6b0d5f7h2k4n8p1r",
  "consultantId": null,
  "projectId": "k93d6f1h8j2m5q7s0v4x6z9b3c1e8g2t",
  "clientPurchaseOrderId": "q47b1d4f8h2k6m9p3s5v7x0z4c6e9g1j",
  "purchaseOrderNumber": "FL-PO-2291",
  "consultantPurchaseOrderNumbers": [],
  "createdAt": "2026-11-02T09:41:17.000Z",
  "updatedAt": "2026-11-02T10:05:42.000Z",
  "client": {
    "id": "j57c2m8q4t1w9y3z6b0d5f7h2k4n8p1r",
    "name": "Fernhill Logistics Ltd"
  },
  "overBudgetReason": null,
  "notCoveredReason": null,
  "consultantPurchaseOrders": [],
  "subtotal": 7600,
  "taxLines": [
    {
      "name": "VAT",
      "rate": 20,
      "registrationNumber": "GB123456789",
      "amount": 1520
    }
  ],
  "lines": [
    {
      "description": "Warehouse Platform Migration, October: Tomasz Wierzbicki",
      "quantity": 10,
      "unit": "days",
      "unitPrice": 760,
      "amount": 7600,
      "currency": "GBP",
      "consultantId": "m24p7r9t3w6y8a1c5e0g2j4l7n9q3s6v"
    }
  ]
}

A list answers each invoice without client, the reasons, the purchase order shares, subtotal, taxLines and lines. Reading one answers all of it.

Every field below is in every answer. A required field always has a value; a nullable one is null when it has none. More fields may be added within /v1, so have your code ignore any it doesn't recognise.

Fields of the invoice object
FieldTypeAbout it
id requiredstringThe invoice's id.
kind required"receivable" | "payable"A receivable is what the organisation bills its client; a payable is what a consultant bills the organisation.
invoiceNumber requiredstringThe number printed on it.
status requiredstringIts status as the dashboard reports it: a sent invoice past its due date is overdue. One of 7 values.
Show values

draft, sent, paid, overdue, archived, discarded, rejected

isOverdue requiredbooleanWhether it is overdue now.
daysPastDue nullableinteger or nullWhole days past its due date, when overdue.
currency requiredstringAn ISO 4217 code.
total requirednumberThe total, tax included, as stored.
invoiceDate nullabletime (ISO 8601) or nullIts date: the issue date, or for a draft the day it was made.
issuedAt nullabletime (ISO 8601) or nullWhen it was sent.
dueDate nullabletime (ISO 8601) or nullWhen it falls due.
paidAt nullabletime (ISO 8601) or nullWhen it was paid.
clientId nullablestring or nullThe client, for a receivable.
consultantId nullablestring or nullThe consultant, for a payable.
projectId nullablestring or nullThe project.
clientPurchaseOrderId nullablestring or nullThe client purchase order it was raised against.
purchaseOrderNumber nullablestring or nullThe client's purchase order number, frozen at raising.
consultantPurchaseOrderNumbers requiredstring[]For a payable, the consultancy's purchase order numbers, frozen at raising.
createdAt nullabletime (ISO 8601) or nullWhen it was created.
updatedAt nullabletime (ISO 8601) or nullWhen it last changed.
client nullableobject or nullThe client, for a receivable.
Show the 2 fields of client
Fields of client
FieldTypeAbout it
client.id requiredstringThe client's id.
client.name requiredstringIts name.
overBudgetReason nullablestring or nullWhy it was raised past its purchase order's budget, when it was.
notCoveredReason nullablestring or nullWhy time no purchase order covered was billed, when it was.
consultantPurchaseOrders[] requiredarray of objectsFor a payable, the consultant purchase orders it drew on, and how much of each.
Show the 2 fields of consultantPurchaseOrders[]
Fields of consultantPurchaseOrders[]
FieldTypeAbout it
consultantPurchaseOrders[].id requiredstringThe purchase order's id.
consultantPurchaseOrders[].amount requirednumberThe amount drawn.
subtotal requirednumberThe total of the lines, before tax.
taxLines[] requiredarray of objectsEach tax, as printed.
Show the 4 fields of taxLines[]
Fields of taxLines[]
FieldTypeAbout it
taxLines[].name requiredstringThe tax's name.
taxLines[].rate requirednumberIts rate, as a percentage.
taxLines[].registrationNumber nullablestring or nullThe registration number printed with it.
taxLines[].amount requirednumberThe tax charged.
lines[] requiredarray of objectsThe lines, as printed. On a payable, one per timesheet period, naming the projects it bills. A period whose time is in more than one currency is on one payable per currency, and each of those lines carries only its own currency's projects.
Show the 7 fields of lines[]
Fields of lines[]
FieldTypeAbout it
lines[].description requiredstringWhat it is for.
lines[].quantity requirednumberHow many units.
lines[].unit required"hours" | "days"What the quantity counts.
lines[].unitPrice requirednumberThe price of one unit.
lines[].amount requirednumberThe line's amount.
lines[].currency requiredstringAn ISO 4217 code.
lines[].consultantId nullablestring or nullThe consultant whose work it is.

This list can grow within /v1, so ignore any you don't recognise rather than failing on it. See versioning.

This list can grow within /v1, so ignore any you don't recognise rather than failing on it. See versioning.

Operations

GET /invoices

List invoices. A page of one kind of your organisation's invoices, in the order they were raised. Discarded invoices are left out unless asked for. A filtered page can hold fewer than limit, or none, while nextCursor leads on. Needs the invoices:read scope. Succeeds with 200, a page of them.

Query parameters of List invoices
Query parameterTypeAbout it
kind required"receivable" | "payable"Which kind. Required: the two are never listed together.
status optionalstringOnly invoices in this status, as the dashboard reports it. One of 7 values.
Show values

draft, sent, paid, overdue, archived, discarded, rejected

from optionaldate (YYYY-MM-DD)Only invoices dated on or after this day.
to optionaldate (YYYY-MM-DD)Only invoices dated on or before this day.
discarded optionalbooleanInclude discarded invoices.
limit optionalintegerHow many to a page, 1 to 100. 25 when absent. From 1 to 100.
cursor optionalstringThe nextCursor from the page before.

This list can grow within /v1, so ignore any you don't recognise rather than failing on it. See versioning.

Example request. The key is read from TIMESUBMIT_API_KEY:

curl 'https://www.timesubmit.com/api/v1/invoices?kind=receivable' \
  -H "Authorization: Bearer $TIMESUBMIT_API_KEY"

Example response, with status 200:

{
  "data": [
    {
      "id": "p15v8x2z5b9d3f7h1k4m6q0s3u5w8y2a",
      "kind": "receivable",
      "invoiceNumber": "INV-0107",
      "status": "sent",
      "isOverdue": false,
      "daysPastDue": null,
      "currency": "GBP",
      "total": 9120,
      "invoiceDate": "2026-11-02T00:00:00.000Z",
      "issuedAt": "2026-11-02T00:00:00.000Z",
      "dueDate": "2026-12-02T00:00:00.000Z",
      "paidAt": null,
      "clientId": "j57c2m8q4t1w9y3z6b0d5f7h2k4n8p1r",
      "consultantId": null,
      "projectId": "k93d6f1h8j2m5q7s0v4x6z9b3c1e8g2t",
      "clientPurchaseOrderId": "q47b1d4f8h2k6m9p3s5v7x0z4c6e9g1j",
      "purchaseOrderNumber": "FL-PO-2291",
      "consultantPurchaseOrderNumbers": [],
      "createdAt": "2026-11-02T09:41:17.000Z",
      "updatedAt": "2026-11-02T10:05:42.000Z"
    }
  ],
  "nextCursor": "eyJjcmVhdGVkQXQiOjE3NjQwNjA4MDB9"
}

The error codes it can answer with:

  • unauthorised (401)
  • api_not_included (403)
  • insufficient_scope (403)
  • invalid_request (400)
  • rate_limited (429)

GET /invoices/{id}

Read an invoice. One invoice in full: its lines, totals and tax as printed, its client and purchase orders. There is no invoice write and no PDF. Needs the invoices:read scope. Succeeds with 200.

Example request. The key is read from TIMESUBMIT_API_KEY:

curl 'https://www.timesubmit.com/api/v1/invoices/p15v8x2z5b9d3f7h1k4m6q0s3u5w8y2a' \
  -H "Authorization: Bearer $TIMESUBMIT_API_KEY"

Example response, with status 200:

{
  "id": "p15v8x2z5b9d3f7h1k4m6q0s3u5w8y2a",
  "kind": "receivable",
  "invoiceNumber": "INV-0107",
  "status": "sent",
  "isOverdue": false,
  "daysPastDue": null,
  "currency": "GBP",
  "total": 9120,
  "invoiceDate": "2026-11-02T00:00:00.000Z",
  "issuedAt": "2026-11-02T00:00:00.000Z",
  "dueDate": "2026-12-02T00:00:00.000Z",
  "paidAt": null,
  "clientId": "j57c2m8q4t1w9y3z6b0d5f7h2k4n8p1r",
  "consultantId": null,
  "projectId": "k93d6f1h8j2m5q7s0v4x6z9b3c1e8g2t",
  "clientPurchaseOrderId": "q47b1d4f8h2k6m9p3s5v7x0z4c6e9g1j",
  "purchaseOrderNumber": "FL-PO-2291",
  "consultantPurchaseOrderNumbers": [],
  "createdAt": "2026-11-02T09:41:17.000Z",
  "updatedAt": "2026-11-02T10:05:42.000Z",
  "client": {
    "id": "j57c2m8q4t1w9y3z6b0d5f7h2k4n8p1r",
    "name": "Fernhill Logistics Ltd"
  },
  "overBudgetReason": null,
  "notCoveredReason": null,
  "consultantPurchaseOrders": [],
  "subtotal": 7600,
  "taxLines": [
    {
      "name": "VAT",
      "rate": 20,
      "registrationNumber": "GB123456789",
      "amount": 1520
    }
  ],
  "lines": [
    {
      "description": "Warehouse Platform Migration, October: Tomasz Wierzbicki",
      "quantity": 10,
      "unit": "days",
      "unitPrice": 760,
      "amount": 7600,
      "currency": "GBP",
      "consultantId": "m24p7r9t3w6y8a1c5e0g2j4l7n9q3s6v"
    }
  ]
}

The error codes it can answer with:

  • unauthorised (401)
  • api_not_included (403)
  • insufficient_scope (403)
  • not_found (404)
  • rate_limited (429)
  • unreadable_invoice (500)