Mark a window of time invoiced or paid
Owner or admin only. Moves finished billable entries in the window one step: unbilled to invoiced, or invoiced to paid. In a team workspace that is every member's time in the workspace; elsewhere it is the caller's own. Exactly one of clientId or projectId. Running entries and non-billable entries are left alone. In a team workspace, unbilled time is invoiced only when its week is an approved timesheet. Other entries in the window are counted in skipped, and the call is 409 when none of them are approved. Does not number or send an invoice.
View as MarkdownAuthorization
bearer In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/billing/mark" \ -H "Content-Type: application/json" \ -d '{ "from": "2019-08-24T14:15:22Z", "to": "2019-08-24T14:15:22Z", "status": "invoiced" }'{ "updated": 0, "skipped": 0}Expense report as CSV
The same window as the JSON report, one row per expense, oldest first. Columns: date, type, client, project, pricing, quantity, unit_rate, amount, billable, note, receipt. A value that would be a spreadsheet formula is prefixed with an apostrophe.
Display preferences
The caller's per-user display/tracking preferences. Defaults when never configured: weekStart monday, roundingMinutes 0, currency USD.