Skip to content

updateBookingStatus

Mutation

Update a booking to a following status.

This call is used to progress bookings through a normal flow. The status must be specified as one of the statuses following for the current status, or an exception status. If organisationId is the carrier, the status must be a carrier available status. All required fields must be provided, or must have been provided in earlier calls.

If the organisation specified is the carrier, you need the ParticipateCarrierBookings permission. If the organisation specified is the location, you need the ParticipateLocationBookings permission.

mutation {
updateBookingStatus(
organisationId: UUID!
bookingId: ID!
statusId: UUID
fields: [FieldDataInput!]
formSubmissions: [FormSubmissionInput!]
statusReference: BookingStatusEntityRefInput
): Void
}
ArgumentTypeDefaultDescription
organisationId*UUID!The ID of the organisation
bookingId*ID!The ID of the booking
statusIdUUIDThe ID of the status to update to. Must be a subsequent status to the current status or an exception status
fields[FieldDataInput!]An array of inputs containing new or updated field data
formSubmissions[FormSubmissionInput!]An array of inputs containing new or updated form submissions
statusReferenceBookingStatusEntityRefInputA status reference input containing new or updated field data

Void (Void)

mutation UpdateBookingStatus($organisationId: UUID!, $bookingId: ID!, $statusId: UUID, $fields: [FieldDataInput!], $formSubmissions: [FormSubmissionInput!], $statusReference: BookingStatusEntityRefInput) {
updateBookingStatus(organisationId: $organisationId, bookingId: $bookingId, statusId: $statusId, fields: $fields, formSubmissions: $formSubmissions, statusReference: $statusReference)
}