Reference
Time entries
GET/api/v1/time-entriesList time entries
Lists bookings, oldest first, at most 200: by default the signed-in person's own of the last 14 days. With tasks.admin, anybody's (user) or everybody's (user: "all").scope time
Query
| from | stringFirst day, YYYY-MM-DD. Default: 13 days ago. |
| to | stringLast day, YYYY-MM-DD. Default: today. |
| task | stringOnly bookings on this task (id or number). |
| user | stringA user id, or "all". tasks.admin only. |
Response 200
| from | string |
| to | string |
| entries[] | object[] |
| entries[].id | string |
| entries[].date | string | null |
| entries[].start | string | null |
| entries[].end | string | null |
| entries[].minutes | integer |
| entries[].task | object |
| entries[].task.number | string |
| entries[].task.title | string |
| entries[].task.url | string |
| entries[].person | string |
| entries[].description | string | null |
| entries[].kind | string |
| entries[].roleoptional | object | null |
| entries[].role.key | string |
| entries[].role.name | string |
| entries[].billableoptional | boolean |
| entries[].settledoptional | boolean |
| entries[].via_agent | boolean |
| count | integer |
| total_minutes | integer |
Schema
{
"type": "object",
"properties": {
"from": {
"type": "string"
},
"to": {
"type": "string"
},
"entries": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"date": {
"type": [
"string",
"null"
]
},
"start": {
"type": [
"string",
"null"
]
},
"end": {
"type": [
"string",
"null"
]
},
"minutes": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"task": {
"type": "object",
"properties": {
"number": {
"type": "string"
},
"title": {
"type": "string"
},
"url": {
"type": "string"
}
},
"required": [
"number",
"title",
"url"
],
"additionalProperties": false
},
"person": {
"type": "string"
},
"description": {
"type": [
"string",
"null"
]
},
"kind": {
"type": "string"
},
"role": {
"anyOf": [
{
"type": "object",
"properties": {
"key": {
"type": "string"
},
"name": {
"type": "string"
}
},
"required": [
"key",
"name"
],
"additionalProperties": false
},
{
"type": "null"
}
]
},
"billable": {
"type": "boolean"
},
"settled": {
"type": "boolean"
},
"via_agent": {
"type": "boolean"
}
},
"required": [
"id",
"date",
"start",
"end",
"minutes",
"task",
"person",
"description",
"kind",
"via_agent"
],
"additionalProperties": false
}
},
"count": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"total_minutes": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
}
},
"required": [
"from",
"to",
"entries",
"count",
"total_minutes"
],
"additionalProperties": false
}Refusals are problems with a code — see Errors.
POST/api/v1/time-entriesBook time
Books time on a task as the signed-in person's. Give a duration, or a start and an end (quarter-hour grid; the duration follows), or a start and a duration. A bare duration is rounded up to the next quarter hour. Answers with the booking as stored.scope time
Body (JSON)
| taskrequired | stringThe task's id or number, e.g. "AU-2026-0042". |
| daterequired | stringThe day the work happened, YYYY-MM-DD. |
| duration | stringe.g. "1:30", "1,5h", "90m". |
| start | string |
| end | string |
| description | string |
| billable | booleanDefault: true. |
| kind | one of work, travelDefault: work. Travel is billed at half the rate. |
| role | stringA billing role's id or key. Default: the role the order gives the person, if any. |
| user | stringBook for somebody else (user id). tasks.admin only. |
Response 200
| id | string |
| date | string | null |
| start | string | null |
| end | string | null |
| minutes | integer |
| task | object |
| task.number | string |
| task.title | string |
| task.url | string |
| person | string |
| description | string | null |
| kind | string |
| roleoptional | object | null |
| role.key | string |
| role.name | string |
| billableoptional | boolean |
| settledoptional | boolean |
| via_agent | boolean |
Schema
{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"date": {
"type": [
"string",
"null"
]
},
"start": {
"type": [
"string",
"null"
]
},
"end": {
"type": [
"string",
"null"
]
},
"minutes": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"task": {
"type": "object",
"properties": {
"number": {
"type": "string"
},
"title": {
"type": "string"
},
"url": {
"type": "string"
}
},
"required": [
"number",
"title",
"url"
],
"additionalProperties": false
},
"person": {
"type": "string"
},
"description": {
"type": [
"string",
"null"
]
},
"kind": {
"type": "string"
},
"role": {
"anyOf": [
{
"type": "object",
"properties": {
"key": {
"type": "string"
},
"name": {
"type": "string"
}
},
"required": [
"key",
"name"
],
"additionalProperties": false
},
{
"type": "null"
}
]
},
"billable": {
"type": "boolean"
},
"settled": {
"type": "boolean"
},
"via_agent": {
"type": "boolean"
}
},
"required": [
"id",
"date",
"start",
"end",
"minutes",
"task",
"person",
"description",
"kind",
"via_agent"
],
"additionalProperties": false
}Refusals are problems with a code — see Errors.
PATCH/api/v1/time-entries/{id}Update time entry
Changes a booking: only the fields given, the rest stays. Your own, or anybody's with tasks.admin, and never a settled one. A new duration without a start drops the stored start and end.scope time
Path
| idrequired | stringThe booking's id, from list_time_entries or book_time. |
Body (JSON)
| task | stringMove it to another task (id or number). |
| date | string |
| duration | string |
| start | string |
| end | string |
| description | string |
| billable | booleanDefault: true. |
| kind | one of work, travelDefault: work. Travel is billed at half the rate. |
| role | stringA billing role's id or key. Default: the role the order gives the person, if any. |
Response 200
| id | string |
| date | string | null |
| start | string | null |
| end | string | null |
| minutes | integer |
| task | object |
| task.number | string |
| task.title | string |
| task.url | string |
| person | string |
| description | string | null |
| kind | string |
| roleoptional | object | null |
| role.key | string |
| role.name | string |
| billableoptional | boolean |
| settledoptional | boolean |
| via_agent | boolean |
Schema
{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"date": {
"type": [
"string",
"null"
]
},
"start": {
"type": [
"string",
"null"
]
},
"end": {
"type": [
"string",
"null"
]
},
"minutes": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"task": {
"type": "object",
"properties": {
"number": {
"type": "string"
},
"title": {
"type": "string"
},
"url": {
"type": "string"
}
},
"required": [
"number",
"title",
"url"
],
"additionalProperties": false
},
"person": {
"type": "string"
},
"description": {
"type": [
"string",
"null"
]
},
"kind": {
"type": "string"
},
"role": {
"anyOf": [
{
"type": "object",
"properties": {
"key": {
"type": "string"
},
"name": {
"type": "string"
}
},
"required": [
"key",
"name"
],
"additionalProperties": false
},
{
"type": "null"
}
]
},
"billable": {
"type": "boolean"
},
"settled": {
"type": "boolean"
},
"via_agent": {
"type": "boolean"
}
},
"required": [
"id",
"date",
"start",
"end",
"minutes",
"task",
"person",
"description",
"kind",
"via_agent"
],
"additionalProperties": false
}Refusals are problems with a code — see Errors.
DELETE/api/v1/time-entries/{id}Delete time entry
Deletes a booking. Your own, or anybody's with tasks.admin, and never a settled one.scope time
Path
| idrequired | stringThe booking's id. |
Response 200
| deleted | string |
Schema
{
"type": "object",
"properties": {
"deleted": {
"type": "string"
}
},
"required": [
"deleted"
],
"additionalProperties": false
}Refusals are problems with a code — see Errors.
POST/api/v1/time-entries/settleSettle time entries
Marks bookings as settled -- for time invoiced outside nxva.base -- or, with settled false, takes the mark off again -- never on a booking an issued service report holds. tasks.admin only. A settled booking can no longer be changed or deleted, and its task no longer moves to another order. Issuing a service report settles a whole period by itself.scope time
Body (JSON)
| entriesrequired | string[]The bookings' ids, from list_time_entries. |
| settled | booleanDefault: true. |
Response 200
| settled | boolean |
| entries | string[] |
Schema
{
"type": "object",
"properties": {
"settled": {
"type": "boolean"
},
"entries": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"settled",
"entries"
],
"additionalProperties": false
}Refusals are problems with a code — see Errors.