EaserixDocs
DevelopersAPI referenceCronCrunchReports

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 Markdown
POST
/v1/billing/mark
AuthorizationBearer <token>

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}