TrellisDevelopers

Time Cards

GET
/labor/time-cards

Query Parameters

staffUserId?string
locationId?string
jobRole?string
startDate?string
Formatdate
endDate?string
Formatdate
businessDateStart?string
Formatdate
businessDateEnd?string
Formatdate
modifiedStartDate?string
Formatdate
modifiedEndDate?string
Formatdate
includeDeleted?boolean

Header Parameters

x-tenant-id?string

Selects the tenant by id. When both tenant headers are omitted, the server falls back to the configured default tenant slug.

x-tenant-slug?string

Selects the tenant by slug. Use this when you know the tenant slug instead of the tenant id.

x-location-id?string

Adds a location scope to the request for location-aware reads, writes, and audit entries.

x-auth-provider?"hexclave"

Test-only Hexclave provider identifier used with x-auth-user-id when trusted identity headers are explicitly enabled. Production clients must use a Hexclave bearer token.

Value in

  • "hexclave"
x-auth-user-id?string

Temporary auth subject used to resolve the acting staff user through the staff auth identity mapping.

Response Body

application/json

curl -X GET "https://example.com/labor/time-cards" \  -H "x-tenant-id: tenant-local" \  -H "x-tenant-slug: trellis-local" \  -H "x-location-id: loc-tasting-room" \  -H "x-auth-provider: hexclave" \  -H "x-auth-user-id: user_abc123"
{  "timeEntries": [    {      "id": "string",      "timeCardId": "string",      "tenantId": "string",      "shiftId": "string",      "locationId": "string",      "staffUserId": "string",      "jobRole": "string",      "source": "pos",      "status": "open",      "businessDate": "2019-08-24",      "autoClockedOut": true,      "deleted": true,      "clockInAt": "2019-08-24T14:15:22Z",      "clockOutAt": "2019-08-24T14:15:22Z",      "breaks": [        {          "id": "string",          "breakTypeId": "string",          "title": "string",          "paid": true,          "startedAt": "2019-08-24T14:15:22Z",          "endedAt": "2019-08-24T14:15:22Z",          "waived": true,          "payload": {            "property1": null,            "property2": null          },          "durationMinutes": 0        }      ],      "summary": {        "totalMinutes": 0,        "workedMinutes": 0,        "breakMinutes": 0,        "paidBreakMinutes": 0,        "unpaidBreakMinutes": 0,        "regularMinutes": 0,        "overtimeMinutes": 0,        "payableMinutes": 0,        "totalHours": 0,        "workedHours": 0,        "breakHours": 0,        "paidBreakHours": 0,        "unpaidBreakHours": 0,        "regularHours": 0,        "overtimeHours": 0,        "payableHours": 0      },      "declaredCashTips": 0,      "nonCashTips": 0,      "cashSales": 0,      "nonCashSales": 0,      "cashGratuityServiceCharges": 0,      "nonCashGratuityServiceCharges": 0,      "tipsWithheld": 0,      "hourlyWage": 0,      "notes": "string",      "payload": {        "property1": null,        "property2": null      },      "createdByStaffUserId": "string",      "updatedByStaffUserId": "string",      "deletedByStaffUserId": "string",      "createdDate": "2019-08-24T14:15:22Z",      "modifiedDate": "2019-08-24T14:15:22Z",      "deletedDate": "2019-08-24T14:15:22Z"    }  ],  "page": {    "total": 0  }}
GET
/labor/time-cards/{id}

Path Parameters

id*string

Header Parameters

x-tenant-id?string

Selects the tenant by id. When both tenant headers are omitted, the server falls back to the configured default tenant slug.

x-tenant-slug?string

Selects the tenant by slug. Use this when you know the tenant slug instead of the tenant id.

x-location-id?string

Adds a location scope to the request for location-aware reads, writes, and audit entries.

x-auth-provider?"hexclave"

Test-only Hexclave provider identifier used with x-auth-user-id when trusted identity headers are explicitly enabled. Production clients must use a Hexclave bearer token.

Value in

  • "hexclave"
x-auth-user-id?string

Temporary auth subject used to resolve the acting staff user through the staff auth identity mapping.

Response Body

application/json

curl -X GET "https://example.com/labor/time-cards/string" \  -H "x-tenant-id: tenant-local" \  -H "x-tenant-slug: trellis-local" \  -H "x-location-id: loc-tasting-room" \  -H "x-auth-provider: hexclave" \  -H "x-auth-user-id: user_abc123"
{  "id": "string",  "timeCardId": "string",  "tenantId": "string",  "shiftId": "string",  "locationId": "string",  "staffUserId": "string",  "jobRole": "string",  "source": "pos",  "status": "open",  "businessDate": "2019-08-24",  "autoClockedOut": true,  "deleted": true,  "clockInAt": "2019-08-24T14:15:22Z",  "clockOutAt": "2019-08-24T14:15:22Z",  "breaks": [    {      "id": "string",      "breakTypeId": "string",      "title": "string",      "paid": true,      "startedAt": "2019-08-24T14:15:22Z",      "endedAt": "2019-08-24T14:15:22Z",      "waived": true,      "payload": {        "property1": null,        "property2": null      },      "durationMinutes": 0    }  ],  "summary": {    "totalMinutes": 0,    "workedMinutes": 0,    "breakMinutes": 0,    "paidBreakMinutes": 0,    "unpaidBreakMinutes": 0,    "regularMinutes": 0,    "overtimeMinutes": 0,    "payableMinutes": 0,    "totalHours": 0,    "workedHours": 0,    "breakHours": 0,    "paidBreakHours": 0,    "unpaidBreakHours": 0,    "regularHours": 0,    "overtimeHours": 0,    "payableHours": 0  },  "declaredCashTips": 0,  "nonCashTips": 0,  "cashSales": 0,  "nonCashSales": 0,  "cashGratuityServiceCharges": 0,  "nonCashGratuityServiceCharges": 0,  "tipsWithheld": 0,  "hourlyWage": 0,  "notes": "string",  "payload": {    "property1": null,    "property2": null  },  "createdByStaffUserId": "string",  "updatedByStaffUserId": "string",  "deletedByStaffUserId": "string",  "createdDate": "2019-08-24T14:15:22Z",  "modifiedDate": "2019-08-24T14:15:22Z",  "deletedDate": "2019-08-24T14:15:22Z"}
DELETE
/labor/time-cards/{id}

Path Parameters

id*string

Header Parameters

x-tenant-id?string

Selects the tenant by id. When both tenant headers are omitted, the server falls back to the configured default tenant slug.

x-tenant-slug?string

Selects the tenant by slug. Use this when you know the tenant slug instead of the tenant id.

x-location-id?string

Adds a location scope to the request for location-aware reads, writes, and audit entries.

x-auth-provider?"hexclave"

Test-only Hexclave provider identifier used with x-auth-user-id when trusted identity headers are explicitly enabled. Production clients must use a Hexclave bearer token.

Value in

  • "hexclave"
x-auth-user-id?string

Temporary auth subject used to resolve the acting staff user through the staff auth identity mapping.

Response Body

curl -X DELETE "https://example.com/labor/time-cards/string" \  -H "x-tenant-id: tenant-local" \  -H "x-tenant-slug: trellis-local" \  -H "x-location-id: loc-tasting-room" \  -H "x-auth-provider: hexclave" \  -H "x-auth-user-id: user_abc123"
Empty