Events
List timesheet, invoice and purchase order events through the TimeSubmit API to catch up after an outage: every event type and the event's fields.
The event object
What happened to timesheets and invoices, for the last 30 days.
When a timesheet or an invoice moves, TimeSubmit records an event. An event carries its type, when it happened and the record's id, and nothing else: read the record through its own endpoint to see what changed. There is no timesheet endpoint, so for a timesheet the event is what the API tells you: which timesheet, and what happened to it.
{
"id": "r83e6g9j2m5p8s1u4w7y0b3d6f9h2k5n",
"type": "invoice.sent",
"occurredAt": "2026-11-02T10:05:42.118Z",
"data": {
"id": "p15v8x2z5b9d3f7h1k4m6q0s3u5w8y2a"
}
}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.
| Field | Type | About it | ||||||
|---|---|---|---|---|---|---|---|---|
id required | string | The event's id. A webhook delivery's webhook-id is the same, so a repeat can be dropped. | ||||||
type required | string | What happened. One of 22 values.Show values
| ||||||
occurredAt required | time (ISO 8601) | When it happened. | ||||||
data required | object | The record it happened to. | ||||||
Show the 1 fields of | ||||||||
| Field | Type | About it |
|---|---|---|
data.id required | string | The timesheet's, the invoice's or the purchase order's id. |
This list can grow within /v1, so ignore any you don't recognise rather than failing on it. See versioning.
Event types
| Type | Recorded when |
|---|---|
timesheet.submitted | A consultant submitted a timesheet for approval. |
timesheet.approved | A timesheet was finally approved, once: by a consultancy admin, by its last approver where the consultancy has chosen that, or by an admin override. An approver signing off a step that is not the last is not this event. |
timesheet.rejected | A timesheet was rejected, by an admin or by one of its approvers. |
invoice.raised | An invoice was raised, of either kind. A consultant's time in more than one currency is raised as one payable per currency, each with its own event. |
invoice.sent | An invoice was marked as sent. |
invoice.paid | An invoice was marked as paid. |
invoice.discarded | An invoice was discarded. |
invoice.rejected | The consultancy rejected a consultant's invoice it had been sent, with a reason. Its weeks can be invoiced again. |
client_purchase_order.created | A client purchase order was recorded. |
client_purchase_order.changed | A client purchase order's number, dates, budget or projects were changed. |
client_purchase_order.closed | A client purchase order was closed. |
client_purchase_order.deleted | A client purchase order was deleted. Its id no longer reads. |
client_purchase_order.budget_near | Invoiced plus committed on a client purchase order reached the consultancy's nearly-used percentage of its budget, 85% unless the consultancy changed it. Recorded once by the daily check, and again after its budget is changed, or after the consultancy changes its nearly-used percentage while the purchase order is past the new one. |
client_purchase_order.budget_used | A client purchase order reached 100% of its budget, invoiced plus committed. Recorded once by the daily check, and again only after its budget is changed. A change of the nearly-used percentage never repeats it. |
client_purchase_order.ending | A client purchase order is 30 days or fewer from its end date. Recorded once by the daily check, and again only after its end date is changed. |
consultant_purchase_order.created | A consultant purchase order was recorded. |
consultant_purchase_order.changed | A consultant purchase order's number, dates, budget or assignments were changed. |
consultant_purchase_order.closed | A consultant purchase order was closed. |
consultant_purchase_order.deleted | A consultant purchase order was deleted. Its id no longer reads. |
consultant_purchase_order.budget_near | Invoiced plus committed on a consultant purchase order reached the consultancy's nearly-used percentage of its budget, 85% unless the consultancy changed it. Recorded once by the daily check, and again after its budget is changed, or after the consultancy changes its nearly-used percentage while the purchase order is past the new one. |
consultant_purchase_order.budget_used | A consultant purchase order reached 100% of its budget, invoiced plus committed. Recorded once by the daily check, and again only after its budget is changed. A change of the nearly-used percentage never repeats it. |
consultant_purchase_order.ending | A consultant purchase order is 30 days or fewer from its end date. Recorded once by the daily check, and again only after its end date is changed. |
This list can grow within /v1, so ignore any you don't recognise rather than failing on it. See versioning.
Catching up
Events are kept for 30 days. GET /events?since= lists them oldest first, from the time you give: pass the occurredAt of the last event you handled to catch up after an outage, and drop the one repeat by its id. The same events are sent to your webhook endpoints as they happen.
Operations
GET /events
List events. Timesheet, invoice and purchase order events, oldest first, from since or the start of the 30 days kept. Use it to catch up after a webhook outage. Needs the events:read scope. Succeeds with 200, a page of them.
| Query parameter | Type | About it |
|---|---|---|
since optional | time (ISO 8601) | Only events at or after this time. |
limit optional | integer | How many to a page, 1 to 100. 25 when absent. From 1 to 100. |
cursor optional | string | The nextCursor from the page before. |
Example request. The key is read from TIMESUBMIT_API_KEY:
curl 'https://www.timesubmit.com/api/v1/events' \
-H "Authorization: Bearer $TIMESUBMIT_API_KEY"const response = await fetch("https://www.timesubmit.com/api/v1/events", {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.TIMESUBMIT_API_KEY}`,
},
});
const answer = await response.json();import os
import requests
response = requests.request(
"GET",
"https://www.timesubmit.com/api/v1/events",
headers={
"Authorization": f"Bearer {os.environ['TIMESUBMIT_API_KEY']}",
},
)
answer = response.json()Example response, with status 200:
{
"data": [
{
"id": "r83e6g9j2m5p8s1u4w7y0b3d6f9h2k5n",
"type": "invoice.sent",
"occurredAt": "2026-11-02T10:05:42.118Z",
"data": {
"id": "p15v8x2z5b9d3f7h1k4m6q0s3u5w8y2a"
}
}
],
"nextCursor": "eyJjcmVhdGVkQXQiOjE3NjQwNjA4MDB9"
}The error codes it can answer with:
unauthorised(401)api_not_included(403)insufficient_scope(403)invalid_request(400)rate_limited(429)