Skip to main content

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

    employer anyrequired

    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_grouping stringrequired

    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)

    from_date stringrequired

    Start of the range (YYYY-MM-DD). This is the shift date, not an invoice or billing date.

    to_date stringrequired

    End of the range (YYYY-MM-DD). This is the shift date, not an invoice or billing date.

Responses​

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

    request

    object

    employer_id int32

    The employer ID

    deployment_code string

    Deployment code (US or UK)

    from_date string

    Start date of the query

    to_date string

    End date of the query

    time_grouping string

    Time grouping period (DAY, WEEK, MONTH, YEAR)

    grouped_by string[]

    List of dimensions used for grouping

    filters

    object

    Filters applied to the query

    role_ids int32[]
    shift_rate_type_ids int32[]
    worker_types string[]

    report

    object

    insights

    object[]

    Aggregated insights data points

  • Array [

  • period_start string

    Period start date (ISO 8601 format)

    period_end string

    Period end date (ISO 8601 format)

    granularity string

    Time granularity

    dimensions

    object

    Dimensional breakdown (venue, role, area, etc.)

    venue_id int32
    venue_name string
    role_id int32
    role_name string
    area_id int32
    area_name string
    shift_rate_type_id int32
    worker_type string

    metrics

    object

    Aggregated metrics for this period/dimension

    shifts_posted int32

    Total number of shifts posted

    shifts_booked int32

    Total number of shifts booked

    shifts_booked_percentage double

    Percentage of shifts booked

    shifts_unfilled int32

    Total number of unfilled shifts

    shifts_unfilled_percentage double

    Percentage of unfilled shifts

    shifts_worked int32

    Total number of shifts worked

    shifts_worked_percentage double

    Client fulfilment rate (shifts_worked / shifts_posted * 100). Default when the user asks for fulfilment without specifying true demand.

    no_shows int32

    Total number of no-shows

    no_shows_percentage double

    Percentage of no-shows

    real_no_shows int32

    Number of real (actionable) no-shows on regular shifts

    real_no_shows_percentage double

    Percentage of real no-shows relative to shifts posted

    buffer_no_shows int32

    Number of demand-buffer no-shows (total no-shows minus real no-shows)

    buffer_no_shows_percentage double

    Percentage of buffer no-shows relative to shifts posted

    hours_scheduled double

    Total hours scheduled

    hours_worked double

    Total hours worked

    preferred_workers int32

    Total number of preferred agency workers who worked (Agency-only; 0 for Flex/Internal)

    preferred_worker_hours double

    Total hours worked by preferred agency workers (Agency-only; 0 for Flex/Internal)

    workers_accepted int32

    Total workers the agency accepted to fill (Agency-only; mirrors demand for Flex/Internal)

    workers_requested int32

    Total workers the employer originally requested (Agency-only; mirrors demand for Flex/Internal)

    overbook_shifts int32

    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.

    overbook_shift_demand int32

    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.

    adhoc_shift_demand int32

    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.

    agency_retro_demand int32

    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.

    timeclock_shift_demand int32

    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 int32

    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_percentage double

    True fulfilment rate (shifts_worked / true_demand * 100). Only use when the user explicitly asks for true demand or true fulfilment.

    true_booked_percentage double

    Percentage of shifts booked relative to true demand

    true_unfilled_percentage double

    Percentage of shifts unfilled relative to true demand

    true_no_show_percentage double

    Percentage of no-shows relative to true demand

    true_real_no_show_percentage double

    Percentage of real no-shows relative to true demand

    true_buffer_no_show_percentage double

    Percentage of buffer no-shows relative to true demand

    number_of_pending_timesheets int32

    Number of Pending Timesheets

    percentage_of_pending_timesheets double

    Percentage of Pending Timesheets relative to shifts posted

  • ]

  • metadata

    object

    total_records int32

    Total number of records returned

    total_periods int64

    Total number of unique time periods

    execution_time_ms int64

    Query execution time in milliseconds

    generated_at date-time

    Timestamp when the response was generated

Loading...

Was this page helpful?