Uniform list query handling
Use this page as the single contract for every list endpoint. It states exact parameter names, defaults, maximum limits, validation, and empty result shapes in one place. Where a fragment in another guide differs, this page controls.
Canonical parameters
Use only the names below. A name not in this table is an unknown parameter. A value outside the stated default, range, or list is invalid. Do not rename a parameter, do not add a synonym, and do not read a legacy name as a new value.
Pagination
limit, default 50, minimum 1, maximum 200. offset, default 0, minimum 0. Both must be whole numbers. A limit or offset that is not a whole number, is below the minimum, or is above the maximum is invalid and returns the error shape below naming limit or offset. Never clamp silently and never return an unbounded list.
Search
q, default empty. Search takes a text term only. A blank q matches every record in scope in the stated sort order. Search never changes the sort and never widens a list beyond the signed in workspace.
Sorting
sort, default updated_at for general lists and pickup_at for the schedule and day board. Sort fields allowed are pickup_at, call_time, and updated_at only, in snake case. dir, default desc for updated_at and asc for pickup_at, allowed values asc and desc only. A sort field or direction outside that list is invalid.
Field selection
fields, default omitted. When present, a comma list of snake case field names listed for that resource only. An unknown field, an empty fields value, or a field outside the signed in role is invalid and returns the error shape naming fields, with no partial list.
Filters
Only the filters below are accepted for bookings, the schedule, and invoices. Customers, chauffeurs, and vehicles accept no filter beyond workspace scope and the search fields listed for that list in the search and filters guide.
Booking filters
pickup_date_start and pickup_date_end, inclusive, by pickup date in the company timezone. status, any selected status matches, allowed values Quote, Confirmed, Driver confirmed, En route, On location, Passenger on board, Complete, Cancelled. service_type, any selected service matches, allowed slugs airport_arrival, airport_departure, hourly, point_to_point, event. client_id and assignee_id, one record picked by search and selection, default none. vehicle_id, separate from assignee_id. flagged_only, default off.
Composition and defaults
Groups combine with AND. Inside status and inside service_type, any selected value matches. Clearing one group does not clear another group. Defaults are pickup date range cleared except the day board default of the selected pickup date as both start and end, status all, service_type all, client_id none, assignee_id none, vehicle_id none, flagged_only off, limit 50, offset 0. If pickup_date_start is after pickup_date_end, return the error shape naming pickup_date_start, show no list, and keep the other entries.
Invoice filters
Invoices use the same client_id filter and the same pickup_date_start and pickup_date_end range, where the range is the pickup date of the Complete bookings behind the invoice. invoice_state, Issued or Paid, and payment_status, Unpaid or Paid, are two separate filter groups. Payments have no separate list.
Unknown values
An unknown parameter name, an unknown filter name, or a value outside the lists above is invalid. Return the error shape below naming that parameter, with no partial list and no silent change to a default.
Response shapes
Success and error shapes are the same on every list endpoint. A list never returns a bare array at the top level.
List success
Status 200. ok true. Rows under the resource name in plural, such as bookings, at the top level of the flat envelope. A pagination object with limit, offset, total, and has_more beside the rows. The pagination object echoes the limit and offset that were applied. Every page uses the same workspace scope, the same search, filter, and sort.
Empty result
A valid search or filter that matches no rows returns a success list with an empty array, total 0, and has_more false, plus the next step for that list, not an error. When a filter or search is active, the screen states the active search and filters, offers one Clear all action for a search or filter match of none, and does not offer Create a booking in that state. When no search and no filter are active and total is 0, use the unfiltered empty state for that list.
Error
ok false. error with one plain sentence that names what to do. field with the first invalid parameter. Status 400 for an invalid limit, offset, filter, sort, direction, or fields value. No partial list and no silent change to a default on an error.
Null, dates, and numbers
A field with no value is null in JSON, never an empty string and never zero as a sentinel. Every field ending in at is one ISO 8601 date and time in UTC. Every field ending in date is one calendar date as YYYY-MM-DD in the company timezone. Money fields ending in cents and passenger counts are whole numbers, never strings.
Standardized filter sets, presets, and URL state
Use this section for every signed in list. A filter set is the search term, every filter group with a value, the sort field and direction, and the pagination values, read together. A preset is a named filter set built only from parameters in the canonical tables above. No preset adds a parameter, a value, or a record that the list does not already accept.
Inventory and parity: bookings and schedule
Search fields, filter groups, and sort are stated in the canonical tables above, with the day board default of the selected pickup date as both start and end. This is the fullest filter set in the pack. A preset for this list may use any group in that set, and a value sent to this list must be read with the same composition and defaults as on the screen.
Inventory and parity: invoices
Invoices use the same client_id and pickup date range as bookings, plus invoice_state and payment_status as two separate groups. Sort follows the general list default of updated_at descending unless the list states the day board sort. A booking preset that uses status, service_type, assignee_id, vehicle_id, or flagged_only must not be sent to invoices, because those groups are not listed for invoices.
Inventory and parity: customers, chauffeurs, and vehicles
These lists accept q and workspace scope, with active state or readiness only where the list states it, and the general sort default. They accept no pickup date range, status, service_type, client, assignee, vehicle, or flag group. Sending a booking filter to one of these lists is invalid and returns the error shape naming that parameter. The parity gap is recorded here and no date or status preset is added for these lists, because no such field is listed for them.
Inventory and parity: other lists
Drafts, issues, daily checks, service logs, and activity and report lists state their own booking, kind or type, vehicle, date, or item filters in their own guides. Those names are not added to the booking filter set above, and a booking filter value must not be sent to those lists. Each of those lists still follows the URL state and one clear action rules below for the parameters it does accept, with the same defaults omitted from the address.
Named presets from existing parameters only
Show each preset name on the screen for the list it applies to. Selecting a preset sets only the parameters named for that preset and updates the address. A preset is not saved on the server and does not change any record.
- All records: every parameter at its default for that list, with a clean address and no query string, except the day board default of the selected pickup date as both start and end
- Flagged only, for bookings and the schedule only: flagged_only set to on, with every other group at its default or as separately selected, and flagged_only omitted from the address when it is off
- Unassigned, for bookings and the schedule only: assignee_id set to the explicit unassigned choice, never the default, with no other group changed unless separately selected
- One pickup date, for bookings, the schedule, and invoices: pickup_date_start and pickup_date_end both set to the same YYYY-MM-DD date in the company timezone
- One client, one chauffeur, or one vehicle, for bookings and the schedule and, for one client, invoices: client_id, assignee_id, or vehicle_id set to the one record picked by search and selection, with vehicle_id kept separate from assignee_id
- Invoice state or payment status, for invoices only: invoice_state set to Issued or Paid, or payment_status set to Unpaid or Paid, as two separate groups that may be combined with AND
- Search only, for customers, chauffeurs, and vehicles: q set to the entered term with every other parameter at its default, and no preset that filters by a date, status, service, client, assignee, vehicle, or flag
URL state for a filter set
Write the filter set in the address query string with the canonical names above, in this order: q, pickup_date_start, pickup_date_end, status, service_type, client_id, assignee_id, vehicle_id, flagged_only, invoice_state, payment_status, sort, dir, limit, offset, fields. Use the same order on every list so two addresses can be compared word for word.
- Encode status and service_type as one comma list of canonical values in canonical order, with no spaces, for example status=Confirmed,Driver confirmed, and a single value with no comma. Encode fields the same way. URL encode q and every value, and trim q before encoding
- Write dates as YYYY-MM-DD, write flagged_only only when it is on, and write no parameter at all when its value is the default for that list. A default view therefore has no query string, except the day board pickup date default stated above
- Read the address on load, on refresh, on back and forward, and on every page change. Changing q, a filter group, or the sort keeps every other part of the set. Changing the page keeps the search, filters, and sort and changes only limit and offset
- Carry no record data, contact detail, booking token, or workspace identifier in the address. A shared address shows only records for the signed in workspace and role scope, and My day scope is never widened by a shared address
- An unknown name or a value outside the lists above in a shared address is invalid in the same way as on the screen, with the error shape naming that parameter and no partial list
One clear action for the whole set
Use one button labelled Clear all at the top of the filter bar, beside the search box. Show it whenever q, any filter group, a non default sort, or non default pagination is active, and show it in the filtered empty state. A person must not need two actions to return a list to its defaults.
- Clear all removes q, every filter group, sort and direction, and pagination in one action, and returns each list to the defaults above. On the day board it keeps the selected pickup date as both start and end and clears every other group
- Clear all removes the query string from the address, states the new total count, and moves focus to the search box. The list then reads in the default sort with limit 50 and offset 0
- Clearing one group with its own remove control clears only that group and keeps the other groups, as stated in the composition rule above. That per group control is not a second way to clear the whole set, and Clear all is the only action that resets the whole set
- When no search and no filter are active, Clear all is hidden or disabled, so a default list shows no dead action. The unfiltered empty state for that list then offers its next step, such as Create a booking, instead of Clear all
Acceptance checks
Run each check before a list change ships. Each check names the screen, the field, and the result.
- An invalid limit, offset, filter, sort, direction, or fields value returns the error shape naming that field, with no partial list and no silent default
- A limit above 200 is invalid, never clamped, and never returns an unbounded list
- A valid filter or search with no rows returns an empty array, total 0, and has_more false, with the correct next step for the active search or filter
- The schedule reads in pickup_at ascending with call time first, and general lists read in updated_at descending, with and without a search term
- Every page uses the same workspace scope and the same sort, the export matches the screen, and a refresh restores the same search, filters, sort, limit, and offset from the address
- Clear all removes q, every filter group, sort and direction, and pagination in one action, returns each list to the defaults above, removes the query string from the address, states the new total count, and moves focus to the search box
- Every preset above returns the same list from the screen control and from a shared address, with default values omitted, and a multi value status or service_type address returns the same rows as the same values selected on the screen
- Sending a booking filter such as status or flagged_only to the customers, chauffeurs, or vehicles list returns the error shape naming that parameter, with no partial list
Use one contract for every list
Read this page with the list API contract guide, then open the schedule for the live day.