Zum Inhalt

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

fromstringFirst day, YYYY-MM-DD. Default: 13 days ago.
tostringLast day, YYYY-MM-DD. Default: today.
taskstringOnly bookings on this task (id or number).
userstringA user id, or "all". tasks.admin only.

Response 200

fromstring
tostring
entries[]object[]
entries[].idstring
entries[].datestring | null
entries[].startstring | null
entries[].endstring | null
entries[].minutesinteger
entries[].taskobject
entries[].task.numberstring
entries[].task.titlestring
entries[].task.urlstring
entries[].personstring
entries[].descriptionstring | null
entries[].kindstring
entries[].roleoptionalobject | null
entries[].role.keystring
entries[].role.namestring
entries[].billableoptionalboolean
entries[].settledoptionalboolean
entries[].via_agentboolean
countinteger
total_minutesinteger
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)

taskrequiredstringThe task's id or number, e.g. "AU-2026-0042".
daterequiredstringThe day the work happened, YYYY-MM-DD.
durationstringe.g. "1:30", "1,5h", "90m".
startstring
endstring
descriptionstring
billablebooleanDefault: true.
kindone of work, travelDefault: work. Travel is billed at half the rate.
rolestringA billing role's id or key. Default: the role the order gives the person, if any.
userstringBook for somebody else (user id). tasks.admin only.

Response 200

idstring
datestring | null
startstring | null
endstring | null
minutesinteger
taskobject
task.numberstring
task.titlestring
task.urlstring
personstring
descriptionstring | null
kindstring
roleoptionalobject | null
role.keystring
role.namestring
billableoptionalboolean
settledoptionalboolean
via_agentboolean
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

idrequiredstringThe booking's id, from list_time_entries or book_time.

Body (JSON)

taskstringMove it to another task (id or number).
datestring
durationstring
startstring
endstring
descriptionstring
billablebooleanDefault: true.
kindone of work, travelDefault: work. Travel is billed at half the rate.
rolestringA billing role's id or key. Default: the role the order gives the person, if any.

Response 200

idstring
datestring | null
startstring | null
endstring | null
minutesinteger
taskobject
task.numberstring
task.titlestring
task.urlstring
personstring
descriptionstring | null
kindstring
roleoptionalobject | null
role.keystring
role.namestring
billableoptionalboolean
settledoptionalboolean
via_agentboolean
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

idrequiredstringThe booking's id.

Response 200

deletedstring
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)

entriesrequiredstring[]The bookings' ids, from list_time_entries.
settledbooleanDefault: true.

Response 200

settledboolean
entriesstring[]
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.