Skip to main content

Get shift fulfilment data with flexible aggregation

POST 
/v1/reporting/:employer_id/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_id stringrequired

    Use me (recommended) to resolve the employer associated with your OAuth credentials, or pass your numeric employer ID. The value must match the employer your token is issued for.

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 date for filtering (ISO 8601 format: YYYY-MM-DD)

    to_date stringrequired

    End date for filtering (ISO 8601 format: YYYY-MM-DD)

Responses

Successfully retrieved aggregated shift fulfilment data

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

    venue_and_area_ids

    object[]

  • Array [

  • venue_id int32required

    The venue ID

    area_ids int32[]

    List of area IDs within this venue. Omit/empty = all areas, [0] = venue-level only, [5843] = specific area(s), [0, 5843] = venue-level + specific. Note: 0 represents NULL areas.

  • ]

  • 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

    Percentage of shifts worked

    no_shows int32

    Total number of no-shows

    no_shows_percentage double

    Percentage of no-shows

    hours_scheduled double

    Total hours scheduled

    hours_worked double

    Total hours worked

    overbook_shifts int32

    Total number of overbooked shifts

    true_demand int32

    Total true demand (actual shifts needed)

    true_fulfilment_percentage double

    Percentage of shifts worked relative to true demand

    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

  • ]

  • metadata

    object

    total_records int32

    Total number of records returned

    total_periods int64

    Total number of unique time periods

    total_groups int64

    Total number of unique dimensional groups

    execution_time_ms int64

    Query execution time in milliseconds

    generated_at date-time

    Timestamp when the response was generated

    current_page int32

    Current page number (if pagination is used)

    per_page int32

    Number of records per page (if pagination is used)

Loading...

Was this page helpful?