Get worker turnover totals for a specific employer
POST/v1/reporting/:employer/reports/worker_turnover/totals
Retrieves aggregate turnover metrics for a single period: beginning/end headcount, total/voluntary/involuntary turnover, headcount reduction, new hires, rehires, and turnover rate. Powers the 'At a Glance' and 'Headcount Variation' UI sections.
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). Bookings are included by booking start date. Turnover events are included by the date the worker left. This is not an invoice or billing date.
End of the range (YYYY-MM-DD). Bookings are included by booking start date. Turnover events are included by the date the worker left. This is not an invoice or billing date.
Responses
- 200
- 400
- 403
- 404
- 429
- 500
- 503
- 504
Successfully retrieved turnover totals
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
request
object
totals
object
metadata
object
Possible values: [NO_MATCH, AVAILABLE, INCOMPLETE]
{ "request": { "employer_id": 0, "deployment_code": "string", "from_date": "string", "to_date": "string" }, "totals": { "beginning_headcount": 0, "total_turnover": 0, "voluntary_turnover": 0, "involuntary_turnover": 0, "headcount_reduction": 0, "new_hires": 0, "rehires": 0, "new_and_returning_hires": 0, "subtotal": 0, "end_headcount": 0, "turnover_rate": 0, "turnover_percentage": 0 }, "metadata": { "execution_time_ms": 0, "generated_at": "2026-12-02T12:03:41.287Z", "result_state": "NO_MATCH" }}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.287Z"}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.287Z", "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.288Z"}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.288Z"}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.288Z"}