Get shift fulfilment data for a specific employer
POST/v1/reporting/:employer/reports/shift_fulfilment
Retrieves shift fulfilment data with optional filtering by date range, venue, role, and worker type
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
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
- 502
- 503
- 504
Successfully retrieved 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
report
object
shifts
object[]
metadata
object
{ "request": { "employer_id": 0, "deployment_code": "string", "from_date": "string", "to_date": "string" }, "report": { "shifts": [ {} ] }, "metadata": { "total_shifts": 0, "generated_at": "2026-12-02T12:03:41.284Z", "execution_time_ms": 0, "note": "string" }}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.284Z"}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.284Z", "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.285Z"}The report could not be prepared for a client, so the body is withheld. Retry the request.
- application/json
- Schema
- Example (from schema)
- Example
Schema
Why the report was withheld.
{ "error": "string"}{ "error": "upstream response error"}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.285Z"}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.285Z"}