Skip to main content

booking_request_progress

Shows who still has to approve a CONFIRMED user request, level by level. It now takes the user request id directly.

It is a GraphQL query returning BookingRequestProgress. Any signed-in user can call it: ADMIN users for any company, other users only for their own company's requests.

Input​

input: BookingRequestProgressInput!

FieldTypeRequiredDescription
idStringOne of the twoA booking request id, as before. Now optional.
user_request_id newStringOne of the twoFind the booking request created for this user request.

Send one of the two; sending neither returns id_or_user_request_id_required.

Query
query {
booking_request_progress(input: { user_request_id: "3JMY..." }) {
approve_by { role level review { status note } reviewing_users { email first_name last_name } }
}
}

A request that never reached approvers has no booking request, so this returns not_found. That covers any status before CONFIRMED, and requests that resolved without needing approval.

The progress field on UserRequest that briefly existed on staging is removed; use this query instead.

Errors​

ErrorMeaning
id_or_user_request_id_requiredNeither input field was sent.
not_foundUnknown id, or the request has no booking request yet.
corporate_unauthorizedA non-admin who belongs to no company.

It can also return Middleware Errors.