List trips in the back office
Lists trips for the back office, newest first, with the fields a list shows (read the whole record with GET /backoffice/trips/{travelersTripId}). The agency is named by the x-nicer-company header and nothing else. In an agency: its trips, 50 a page (limit, at most 200), paged with nextToken. Nicer staff who name no agency get the newest trips of every agency in one page, nextToken null; this view returns at most limit trips, so it is capped, not complete. With userId: the trips that person is on, in any relationship, newest first, in one page, each with isArchived (whether they archived it); for an agency admin, only the ones in their agency. Nicer staff may name any agency or none; an agency admin may name only an agency they administer, and may leave the header out when they administer one. Errors: 400 ERROR_INVALID_QUERY for a bad limit or token; 400 ERROR_COMPANY_REQUIRED for an admin of several agencies who names none; 403 ERROR_DO_NOT_HAVE_PERMISSION for a caller who is neither Nicer staff nor an admin of the agency named.
Authorization
Query parameters
Header parameters
Returns
200
OK