Get shift fulfilment data with flexible aggregation
POST/v1/reporting/:employer/reports/shift_fulfilment/aggregated
Retrieves shift fulfilment data aggregated by time and optional dimensions (venue, role, area, shift rate type, worker type). Time grouping is always required (DAY, WEEK, MONTH, YEAR, DAY_OF_WEEK, or OVERALL for entire date range); other dimensions are optional.
Request
Path Parameters
Use me, or the numeric employer id bound to this client id. me means that employer. Any other id is rejected. The OAuth application does not choose the employer.
Query Parameters
Time period for aggregation. Must be one of: DAY, WEEK, MONTH, YEAR, DAY_OF_WEEK (groups by day of week, US starts with Sunday, UK starts with Monday), OVERALL (aggregates across entire date range)
Start of the range (YYYY-MM-DD). This is the shift date, not an invoice or billing date.
End of the range (YYYY-MM-DD). This is the shift date, not an invoice or billing date.
Responses
- 200
- 400
- 403
- 404
- 429
- 500
- 503
- 504
Successfully retrieved aggregated shift fulfilment data
Response Headers
RateLimit-Limit
integer
Requests allowed each minute.
RateLimit-Remaining
integer
Requests left in the current minute.
RateLimit-Reset
integer
Seconds until the limit resets.
- */*
- Schema
- Example (from schema)
Schema
Array [
]
request
object
The employer ID
Deployment code (US or UK)
Start date of the query
End date of the query
Time grouping period (DAY, WEEK, MONTH, YEAR)
List of dimensions used for grouping
filters
object
Filters applied to the query
report
object
insights
object[]
Aggregated insights data points
Period start date (ISO 8601 format)
Period end date (ISO 8601 format)
Time granularity
dimensions
object
Dimensional breakdown (venue, role, area, etc.)
metrics
object
Aggregated metrics for this period/dimension
Total number of shifts posted
Total number of shifts booked
Percentage of shifts booked
Total number of unfilled shifts
Percentage of unfilled shifts
Total number of shifts worked
Client fulfilment rate (shifts_worked / shifts_posted * 100). Default when the user asks for fulfilment without specifying true demand.
Total number of no-shows
Percentage of no-shows
Number of real (actionable) no-shows on regular shifts
Percentage of real no-shows relative to shifts posted
Number of demand-buffer no-shows (total no-shows minus real no-shows)
Percentage of buffer no-shows relative to shifts posted
Total hours scheduled
Total hours worked
Total number of preferred agency workers who worked (Agency-only; 0 for Flex/Internal)
Total hours worked by preferred agency workers (Agency-only; 0 for Flex/Internal)
Total workers the agency accepted to fill (Agency-only; mirrors demand for Flex/Internal)
Total workers the employer originally requested (Agency-only; mirrors demand for Flex/Internal)
Worked shifts in excess of posted demand: every worked shift on an overbook, adhoc, timeclock or agency retro shift, plus worked shifts above demand on a regular shift. The in-product fulfilment report labels this column Overbook shifts. For requested overbook shifts, use overbook_shift_demand.
Requested overbook shifts: demand on overbook shifts (duplicate shifts of category overbook, check-in overbook or no-show replacement), net of accepted absences, plus the demand buffer. A demand figure, not a count of shifts posted. A label on demand, not an addition to shifts_posted or true_demand.
Requested adhoc shifts: demand on adhoc shifts (duplicates created by a worker clocking in on the mobile app), net of accepted absences. A label on demand, not an addition to shifts_posted or true_demand.
Requested agency retro shifts: demand on agency retro shifts (posted after the shift started, not adhoc or a duplicate, and with no excluded retro reason), net of accepted absences. A label on demand, not an addition to shifts_posted or true_demand.
Requested timeclock shifts: demand on timeclock shifts (adhoc or agency-allocation duplicates not created on the mobile app), net of accepted absences. A label on demand, not an addition to shifts_posted or true_demand.
True demand: the larger of shifts_posted and shifts_worked, so work on adhoc and agency retro shifts can raise it. Not the sum of the shift-type demand fields.
True fulfilment rate (shifts_worked / true_demand * 100). Only use when the user explicitly asks for true demand or true fulfilment.
Percentage of shifts booked relative to true demand
Percentage of shifts unfilled relative to true demand
Percentage of no-shows relative to true demand
Percentage of real no-shows relative to true demand
Percentage of buffer no-shows relative to true demand
Number of Pending Timesheets
Percentage of Pending Timesheets relative to shifts posted
metadata
object
Total number of records returned
Total number of unique time periods
Query execution time in milliseconds
Timestamp when the response was generated
{ "request": { "employer_id": 0, "deployment_code": "string", "from_date": "string", "to_date": "string", "time_grouping": "string", "grouped_by": [ "string" ], "filters": { "role_ids": [ 0 ], "shift_rate_type_ids": [ 0 ], "worker_types": [ "string" ] } }, "report": { "insights": [ { "period_start": "2024-01-01", "period_end": "2024-01-07", "granularity": "WEEK", "dimensions": { "venue_id": 0, "venue_name": "string", "role_id": 0, "role_name": "string", "area_id": 0, "area_name": "string", "shift_rate_type_id": 0, "worker_type": "string" }, "metrics": { "shifts_posted": 120, "shifts_booked": 115, "shifts_booked_percentage": 95.83, "shifts_unfilled": 5, "shifts_unfilled_percentage": 4.17, "shifts_worked": 110, "shifts_worked_percentage": 91.67, "no_shows": 5, "no_shows_percentage": 4.35, "real_no_shows": 3, "real_no_shows_percentage": 2.61, "buffer_no_shows": 2, "buffer_no_shows_percentage": 1.74, "hours_scheduled": 960, "hours_worked": 920, "preferred_workers": 42, "preferred_worker_hours": 336, "workers_accepted": 100, "workers_requested": 120, "overbook_shifts": 2, "overbook_shift_demand": 4, "adhoc_shift_demand": 3, "agency_retro_demand": 2, "timeclock_shift_demand": 1, "true_demand": 120, "true_fulfilment_percentage": 85, "true_booked_percentage": 87.5, "true_unfilled_percentage": 12.5, "true_no_show_percentage": 5, "true_real_no_show_percentage": 3, "true_buffer_no_show_percentage": 2, "number_of_pending_timesheets": 3, "percentage_of_pending_timesheets": 2.5 } } ] }, "metadata": { "total_records": 0, "total_periods": 0, "execution_time_ms": 0, "generated_at": "2026-12-02T12:03:41.278Z" }}Invalid request parameters. The response body follows the ErrorResponse schema.
- application/json
- Schema
- Example (from schema)
Schema
Human-readable error message.
Machine-readable error classification (e.g. VALIDATION_ERROR, TIMEOUT_ERROR, CIRCUIT_BREAKER_OPEN).
Whether the request can be safely retried.
When the error occurred.
{ "error": "string", "errorType": "string", "retryable": true, "timestamp": "2026-12-02T12:03:41.279Z"}The Bearer token is missing, expired, or invalid, the employer id in the path is not the employer bound to this client id, or this client may not call this report. me means that employer. The RateLimit-* headers are present only on a refusal after the token was accepted.
Response Headers
RateLimit-Limit
integer
Requests allowed each minute.
RateLimit-Remaining
integer
Requests left in the current minute.
RateLimit-Reset
integer
Seconds until the limit resets.
- application/json
- Schema
- Example (from schema)
Schema
When the request was refused.
The HTTP status code.
The status name.
The path the request asked for.
{ "timestamp": "2026-12-02T12:03:41.279Z", "status": 0, "error": "string", "path": "string"}The path is not a reporting endpoint.
Rate limit exceeded. Retry after the interval indicated by the Retry-After response header. The response body is plain text rather than the ErrorResponse schema.
Response Headers
Retry-After
integer
Seconds to wait before retrying.
RateLimit-Limit
integer
Requests allowed each minute.
RateLimit-Remaining
integer
Requests left in the current minute.
RateLimit-Reset
integer
Seconds until the limit resets.
- text/plain
- Schema
- Example
Schema
string
Too Many RequestsInternal server error. The response body follows the ErrorResponse schema.
- application/json
- Schema
- Example (from schema)
Schema
Human-readable error message.
Machine-readable error classification (e.g. VALIDATION_ERROR, TIMEOUT_ERROR, CIRCUIT_BREAKER_OPEN).
Whether the request can be safely retried.
When the error occurred.
{ "error": "string", "errorType": "string", "retryable": true, "timestamp": "2026-12-02T12:03:41.280Z"}The reporting database is temporarily unavailable. The response body follows the ErrorResponse schema. Retry the request.
- application/json
- Schema
- Example (from schema)
Schema
Human-readable error message.
Machine-readable error classification (e.g. VALIDATION_ERROR, TIMEOUT_ERROR, CIRCUIT_BREAKER_OPEN).
Whether the request can be safely retried.
When the error occurred.
{ "error": "string", "errorType": "string", "retryable": true, "timestamp": "2026-12-02T12:03:41.280Z"}Upstream timeout. The reporting backend did not respond in time. The response body follows the ErrorResponse schema.
- application/json
- Schema
- Example (from schema)
Schema
Human-readable error message.
Machine-readable error classification (e.g. VALIDATION_ERROR, TIMEOUT_ERROR, CIRCUIT_BREAKER_OPEN).
Whether the request can be safely retried.
When the error occurred.
{ "error": "string", "errorType": "string", "retryable": true, "timestamp": "2026-12-02T12:03:41.280Z"}