Reference

Clients

List, read, create, update and archive clients through the TimeSubmit API: each operation, its scope, its body and the client's fields.

The client object

The organisations your consultancy bills.

{
  "id": "j57c2m8q4t1w9y3z6b0d5f7h2k4n8p1r",
  "name": "Fernhill Logistics Ltd",
  "status": "active",
  "email": "accounts@fernhill-logistics.example",
  "phone": "+44 20 7946 0321",
  "website": "https://fernhill-logistics.example",
  "logoUrl": null,
  "contactName": "Priya Natarajan",
  "contactEmail": "priya.natarajan@fernhill-logistics.example",
  "contactPhone": "+44 20 7946 0322",
  "currency": "GBP",
  "paymentTermDays": 30,
  "purchaseOrderRequired": true,
  "address": {
    "street": "14 Quayside Walk",
    "city": "Bristol",
    "region": "City of Bristol",
    "postalCode": "BS1 4XE",
    "country": "United Kingdom"
  },
  "createdAt": "2026-08-14T10:02:31.000Z",
  "updatedAt": "2026-10-01T15:47:09.000Z"
}

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 client object
FieldTypeAbout it
id requiredstringThe client's id.
name requiredstringThe client's name.
status required"active" | "archived" | "pending_authorization"Active, or archived.
email nullablestring or nullA general email address for the client.
phone nullablestring or nullA general phone number.
website nullablestring or nullThe client's website.
logoUrl nullablestring or nullThe client's logo.
contactName nullablestring or nullThe person to contact.
contactEmail nullablestring or nullThat person's email address.
contactPhone nullablestring or nullThat person's phone number.
currency nullablestring or nullAn ISO 4217 code. One of 7 values.
Show values

GBP, USD, EUR, AUD, CAD, NZD, ZAR

paymentTermDays nullableinteger or nullDays the client has to pay an invoice. Unset uses the organisation's default. From 0 to 365.
purchaseOrderRequired requiredbooleanWhether invoicing this client needs a purchase order.
address requiredobjectThe postal address. Each part is optional.
Show the 5 fields of address
Fields of address
FieldTypeAbout it
address.street nullablestring or nullStreet lines.
address.city nullablestring or nullTown or city.
address.region nullablestring or nullCounty, state or region.
address.postalCode nullablestring or nullPostcode or ZIP.
address.country nullablestring or nullCountry.
createdAt nullabletime (ISO 8601) or nullWhen it was created.
updatedAt nullabletime (ISO 8601) or nullWhen it last changed.

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

Operations

GET /clients

List clients. A page of your organisation's clients, in the order they were created. Needs the clients:read scope. Succeeds with 200, a page of them.

Query parameters of List clients
Query parameterTypeAbout it
limit optionalintegerHow many to a page, 1 to 100. 25 when absent. From 1 to 100.
cursor optionalstringThe nextCursor from the page before.

Example request. The key is read from TIMESUBMIT_API_KEY:

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

Example response, with status 200:

{
  "data": [
    {
      "id": "j57c2m8q4t1w9y3z6b0d5f7h2k4n8p1r",
      "name": "Fernhill Logistics Ltd",
      "status": "active",
      "email": "accounts@fernhill-logistics.example",
      "phone": "+44 20 7946 0321",
      "website": "https://fernhill-logistics.example",
      "logoUrl": null,
      "contactName": "Priya Natarajan",
      "contactEmail": "priya.natarajan@fernhill-logistics.example",
      "contactPhone": "+44 20 7946 0322",
      "currency": "GBP",
      "paymentTermDays": 30,
      "purchaseOrderRequired": true,
      "address": {
        "street": "14 Quayside Walk",
        "city": "Bristol",
        "region": "City of Bristol",
        "postalCode": "BS1 4XE",
        "country": "United Kingdom"
      },
      "createdAt": "2026-08-14T10:02:31.000Z",
      "updatedAt": "2026-10-01T15:47:09.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 /clients/{id}

Read a client. One client. Needs the clients:read scope. Succeeds with 200.

Example request. The key is read from TIMESUBMIT_API_KEY:

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

Example response, with status 200:

{
  "id": "j57c2m8q4t1w9y3z6b0d5f7h2k4n8p1r",
  "name": "Fernhill Logistics Ltd",
  "status": "active",
  "email": "accounts@fernhill-logistics.example",
  "phone": "+44 20 7946 0321",
  "website": "https://fernhill-logistics.example",
  "logoUrl": null,
  "contactName": "Priya Natarajan",
  "contactEmail": "priya.natarajan@fernhill-logistics.example",
  "contactPhone": "+44 20 7946 0322",
  "currency": "GBP",
  "paymentTermDays": 30,
  "purchaseOrderRequired": true,
  "address": {
    "street": "14 Quayside Walk",
    "city": "Bristol",
    "region": "City of Bristol",
    "postalCode": "BS1 4XE",
    "country": "United Kingdom"
  },
  "createdAt": "2026-08-14T10:02:31.000Z",
  "updatedAt": "2026-10-01T15:47:09.000Z"
}

The error codes it can answer with:

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

POST /clients

Create a client. Adds a client, within your plan's client limit. Audited under the key's name. Needs the clients:write scope. Accepts an Idempotency-Key. Succeeds with 201.

The body is a JSON object. Any other field is refused with its name.

Body fields of Create a client
FieldTypeAbout it
name requiredstringThe client's name. Required, and not blank.
phone optional nullablestring or nullA general phone number.
email optional nullablestring or nullA general email address; it must look like one.
website optional nullablestring or nullA full URL, such as https://example.com.
contactName optional nullablestring or nullThe person to contact.
contactEmail optional nullablestring or nullThat person's email address.
contactPhone optional nullablestring or nullThat person's phone number.
currency optional nullablestring or nullAn ISO 4217 code. One of 7 values.
Show values

GBP, USD, EUR, AUD, CAD, NZD, ZAR

paymentTermDays optional nullableinteger or nullDays the client has to pay an invoice. Unset uses the organisation's default. From 0 to 365.
address optional nullableobject or nullThe postal address. Each part is optional.
Show the 5 fields of address
Fields of address
FieldTypeAbout it
address.street optional nullablestring or nullStreet lines.
address.city optional nullablestring or nullTown or city.
address.region optional nullablestring or nullCounty, state or region.
address.postalCode optional nullablestring or nullPostcode or ZIP.
address.country optional nullablestring or nullCountry.

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

Example request, with a fresh Idempotency-Key each time it runs. The key is read from TIMESUBMIT_API_KEY:

curl -X POST 'https://www.timesubmit.com/api/v1/clients' \
  -H "Authorization: Bearer $TIMESUBMIT_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "Fernhill Logistics Ltd",
  "email": "accounts@fernhill-logistics.example",
  "phone": "+44 20 7946 0321",
  "website": "https://fernhill-logistics.example",
  "contactName": "Priya Natarajan",
  "contactEmail": "priya.natarajan@fernhill-logistics.example",
  "contactPhone": "+44 20 7946 0322",
  "currency": "GBP",
  "paymentTermDays": 30,
  "address": {
    "street": "14 Quayside Walk",
    "city": "Bristol",
    "region": "City of Bristol",
    "postalCode": "BS1 4XE",
    "country": "United Kingdom"
  }
}'

Example response, with status 201:

{
  "id": "j57c2m8q4t1w9y3z6b0d5f7h2k4n8p1r",
  "name": "Fernhill Logistics Ltd",
  "status": "active",
  "email": "accounts@fernhill-logistics.example",
  "phone": "+44 20 7946 0321",
  "website": "https://fernhill-logistics.example",
  "logoUrl": null,
  "contactName": "Priya Natarajan",
  "contactEmail": "priya.natarajan@fernhill-logistics.example",
  "contactPhone": "+44 20 7946 0322",
  "currency": "GBP",
  "paymentTermDays": 30,
  "purchaseOrderRequired": true,
  "address": {
    "street": "14 Quayside Walk",
    "city": "Bristol",
    "region": "City of Bristol",
    "postalCode": "BS1 4XE",
    "country": "United Kingdom"
  },
  "createdAt": "2026-08-14T10:02:31.000Z",
  "updatedAt": "2026-10-01T15:47:09.000Z"
}

The error codes it can answer with:

  • unauthorised (401)
  • api_not_included (403)
  • insufficient_scope (403)
  • read_only (403)
  • client_limit_reached (403)
  • invalid_request (400)
  • idempotency_conflict (409)
  • rate_limited (429)

PATCH /clients/{id}

Update a client. Changes the fields sent and keeps the rest. null clears a field. Audited under the key's name. Needs the clients:write scope. Accepts an Idempotency-Key. Succeeds with 200.

The body is a JSON object. Send only the fields to change. Any other field is refused with its name.

Body fields of Update a client
FieldTypeAbout it
name optionalstringThe client's name. Required, and not blank.
phone optional nullablestring or nullA general phone number.
email optional nullablestring or nullA general email address; it must look like one.
website optional nullablestring or nullA full URL, such as https://example.com.
contactName optional nullablestring or nullThe person to contact.
contactEmail optional nullablestring or nullThat person's email address.
contactPhone optional nullablestring or nullThat person's phone number.
currency optional nullablestring or nullAn ISO 4217 code. One of 7 values.
Show values

GBP, USD, EUR, AUD, CAD, NZD, ZAR

paymentTermDays optional nullableinteger or nullDays the client has to pay an invoice. Unset uses the organisation's default. From 0 to 365.
address optional nullableobject or nullThe postal address. Each part is optional.
Show the 5 fields of address
Fields of address
FieldTypeAbout it
address.street optional nullablestring or nullStreet lines.
address.city optional nullablestring or nullTown or city.
address.region optional nullablestring or nullCounty, state or region.
address.postalCode optional nullablestring or nullPostcode or ZIP.
address.country optional nullablestring or nullCountry.
purchaseOrderRequired optionalbooleanWhether invoicing the client needs a purchase order. Turning it on needs purchase orders on your plan.

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

Example request, with a fresh Idempotency-Key each time it runs. The key is read from TIMESUBMIT_API_KEY:

curl -X PATCH 'https://www.timesubmit.com/api/v1/clients/j57c2m8q4t1w9y3z6b0d5f7h2k4n8p1r' \
  -H "Authorization: Bearer $TIMESUBMIT_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "contactName": "Owen Bradshaw",
  "contactEmail": "owen.bradshaw@fernhill-logistics.example",
  "paymentTermDays": 45
}'

Example response, with status 200:

{
  "id": "j57c2m8q4t1w9y3z6b0d5f7h2k4n8p1r",
  "name": "Fernhill Logistics Ltd",
  "status": "active",
  "email": "accounts@fernhill-logistics.example",
  "phone": "+44 20 7946 0321",
  "website": "https://fernhill-logistics.example",
  "logoUrl": null,
  "contactName": "Owen Bradshaw",
  "contactEmail": "owen.bradshaw@fernhill-logistics.example",
  "contactPhone": "+44 20 7946 0322",
  "currency": "GBP",
  "paymentTermDays": 45,
  "purchaseOrderRequired": true,
  "address": {
    "street": "14 Quayside Walk",
    "city": "Bristol",
    "region": "City of Bristol",
    "postalCode": "BS1 4XE",
    "country": "United Kingdom"
  },
  "createdAt": "2026-08-14T10:02:31.000Z",
  "updatedAt": "2026-10-01T15:47:09.000Z"
}

The error codes it can answer with:

  • unauthorised (401)
  • api_not_included (403)
  • insufficient_scope (403)
  • read_only (403)
  • not_on_plan (403)
  • not_found (404)
  • invalid_request (400)
  • idempotency_conflict (409)
  • rate_limited (429)

POST /clients/{id}/archive

Archive a client. Archives a client. There is no permanent delete. Takes no body. Needs the clients:write scope. Accepts an Idempotency-Key. Succeeds with 200.

Example request, with a fresh Idempotency-Key each time it runs. The key is read from TIMESUBMIT_API_KEY:

curl -X POST 'https://www.timesubmit.com/api/v1/clients/j57c2m8q4t1w9y3z6b0d5f7h2k4n8p1r/archive' \
  -H "Authorization: Bearer $TIMESUBMIT_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"

Example response, with status 200:

{
  "id": "j57c2m8q4t1w9y3z6b0d5f7h2k4n8p1r",
  "name": "Fernhill Logistics Ltd",
  "status": "archived",
  "email": "accounts@fernhill-logistics.example",
  "phone": "+44 20 7946 0321",
  "website": "https://fernhill-logistics.example",
  "logoUrl": null,
  "contactName": "Priya Natarajan",
  "contactEmail": "priya.natarajan@fernhill-logistics.example",
  "contactPhone": "+44 20 7946 0322",
  "currency": "GBP",
  "paymentTermDays": 30,
  "purchaseOrderRequired": true,
  "address": {
    "street": "14 Quayside Walk",
    "city": "Bristol",
    "region": "City of Bristol",
    "postalCode": "BS1 4XE",
    "country": "United Kingdom"
  },
  "createdAt": "2026-08-14T10:02:31.000Z",
  "updatedAt": "2026-10-01T15:47:09.000Z"
}

The error codes it can answer with:

  • unauthorised (401)
  • api_not_included (403)
  • insufficient_scope (403)
  • read_only (403)
  • not_found (404)
  • invalid_request (400)
  • idempotency_conflict (409)
  • rate_limited (429)