# Quote Booking Book, confirm, update and cancel quotes, search bookings and update booking payment status. Book and confirm are also listed under Flights as New Flights. ## Get Bookings - [GET /api/external/quote/bookings](https://developer.fl3xx.com/reference/accounting/getbookings.md): Searches for bookings using the provided filters. ## Create a Booked Quote - [POST /api/external/quote/book](https://developer.fl3xx.com/reference/new-flights/postquotebook.md): This endpoint creates a new booked quote. The booking and its flights are created in one call. Note: Creating a booked quote via this endpoint does NOT generate a notification in Sales and sends no email notifications. Key Features - Creation: Creates the booking and its flights with the provided details. - Flight number: A flight number sent in legs[].flightNumber is set on the created flight. - Duplicates: A request with a reference that already exists returns 400. Why Use This Endpoint? Using this endpoint helps to streamline the quote creation process, it is an essential tool for managing quotes efficiently and effectively. Account Selection Logic When submitting a quote, the system will attempt to create or pick the account provided in the following order: 1. Account ID: If customer.account.accountid is provided and valid, the account is retrieved using the ID. 2. External Reference: If no account is found, the system will search for an account using the customer.account.externalReference field. 3. Account Name: If no account is found, the system will search for an account using the customer.account.name field. 4. Account Number: If both customer.account.name and customer.account.accountNumber fields are provided, the system will attempt to find a match. 5. User Full Name: If no account is found by the above methods, the system will search for an account using the user's full name (concatenation offirstName and lastName). Pricing Engine Note When the aircraft uses the pricing engine, a price will only be returned if the request satisfies the pricing rules defined by the operator. If no applicable pricing rule is matched, the returned price will be 0. To ensure accurate pricing, it is recommended to contact the operator directly for details on the specific conditions required for price calculation. ## Update a Booked Quote - [PUT /api/external/quote/book/{reference}](https://developer.fl3xx.com/reference/new-flights/putquotebookbybookingreference.md): Updates a booked quote using its booking reference. If you modify the departure time, you need to make sure to update the arrival time too since FL3XX only calculates it at the first time. ## Cancel a Booked Quote - [DELETE /api/external/quote/book/{reference}](https://developer.fl3xx.com/reference/new-flights/deletequotebookbybookingreference.md): Cancels a booked quote using its booking reference. ## Create a Confirmed Quote - [POST /api/external/quote/confirm](https://developer.fl3xx.com/reference/new-flights/postquoteconfirm.md): This endpoint creates a new booking with confirmed status (BOOKING_SENT workflow state) and assigns it a booking number. It mirrors POST /api/external/quote/book and accepts/returns the same schema. Note: Creating a confirmed quote via this endpoint does NOT generate a notification in Sales and sends no email notifications. Key Features - Creation: Creates the booking and its flights with the provided details. - Confirmation: The booking is created in the BOOKING_SENT workflow state and receives a booking number. - Flight number: A flight number sent in legs[].flightNumber is set on the created flight. - Duplicates: A request with a reference that already exists returns 409. Why Use This Endpoint? Using this endpoint helps to streamline the quote creation process, it is an essential tool for managing quotes efficiently and effectively. Account Selection Logic When submitting a quote, the system will attempt to create or pick the account provided in the following order: 1. Account ID: If customer.account.accountid is provided and valid, the account is retrieved using the ID. 2. External Reference: If no account is found, the system will search for an account using the customer.account.externalReference field. 3. Account Name: If no account is found, the system will search for an account using the customer.account.name field. 4. Account Number: If both customer.account.name and customer.account.accountNumber fields are provided, the system will attempt to find a match. 5. User Full Name: If no account is found by the above methods, the system will search for an account using the user's full name (concatenation offirstName and lastName). Pricing Engine Note When the aircraft uses the pricing engine, a price will only be returned if the request satisfies the pricing rules defined by the operator. If no applicable pricing rule is matched, the returned price will be 0. To ensure accurate pricing, it is recommended to contact the operator directly for details on the specific conditions required for price calculation. ## Update a Confirmed Quote - [PUT /api/external/quote/confirm/{reference}](https://developer.fl3xx.com/reference/new-flights/putquoteconfirmbybookingreference.md): Updates a confirmed (booked) quote using its booking reference. If you modify the departure time, you need to make sure to update the arrival time too since FL3XX only calculates it at the first time. This endpoint mirrors PUT /api/external/quote/book/{reference} and accepts/returns the same schema. ## Cancel a Confirmed Quote - [DELETE /api/external/quote/confirm/{reference}](https://developer.fl3xx.com/reference/new-flights/deletequoteconfirmbybookingreference.md): Cancels a confirmed (booked) quote using its booking reference. This endpoint mirrors DELETE /api/external/quote/book/{reference} and accepts/returns the same schema. ## Get Bookings - [GET /api/external/quote/bookings](https://developer.fl3xx.com/reference/quote-booking/getbookings.md): Searches for bookings using the provided filters. ## Create a Booked Quote - [POST /api/external/quote/book](https://developer.fl3xx.com/reference/quote-booking/postquotebook.md): This endpoint creates a new booked quote. The booking and its flights are created in one call. Note: Creating a booked quote via this endpoint does NOT generate a notification in Sales and sends no email notifications. Key Features - Creation: Creates the booking and its flights with the provided details. - Flight number: A flight number sent in legs[].flightNumber is set on the created flight. - Duplicates: A request with a reference that already exists returns 400. Why Use This Endpoint? Using this endpoint helps to streamline the quote creation process, it is an essential tool for managing quotes efficiently and effectively. Account Selection Logic When submitting a quote, the system will attempt to create or pick the account provided in the following order: 1. Account ID: If customer.account.accountid is provided and valid, the account is retrieved using the ID. 2. External Reference: If no account is found, the system will search for an account using the customer.account.externalReference field. 3. Account Name: If no account is found, the system will search for an account using the customer.account.name field. 4. Account Number: If both customer.account.name and customer.account.accountNumber fields are provided, the system will attempt to find a match. 5. User Full Name: If no account is found by the above methods, the system will search for an account using the user's full name (concatenation offirstName and lastName). Pricing Engine Note When the aircraft uses the pricing engine, a price will only be returned if the request satisfies the pricing rules defined by the operator. If no applicable pricing rule is matched, the returned price will be 0. To ensure accurate pricing, it is recommended to contact the operator directly for details on the specific conditions required for price calculation. ## Update a Booked Quote - [PUT /api/external/quote/book/{reference}](https://developer.fl3xx.com/reference/quote-booking/putquotebookbybookingreference.md): Updates a booked quote using its booking reference. If you modify the departure time, you need to make sure to update the arrival time too since FL3XX only calculates it at the first time. ## Cancel a Booked Quote - [DELETE /api/external/quote/book/{reference}](https://developer.fl3xx.com/reference/quote-booking/deletequotebookbybookingreference.md): Cancels a booked quote using its booking reference. ## Create a Confirmed Quote - [POST /api/external/quote/confirm](https://developer.fl3xx.com/reference/quote-booking/postquoteconfirm.md): This endpoint creates a new booking with confirmed status (BOOKING_SENT workflow state) and assigns it a booking number. It mirrors POST /api/external/quote/book and accepts/returns the same schema. Note: Creating a confirmed quote via this endpoint does NOT generate a notification in Sales and sends no email notifications. Key Features - Creation: Creates the booking and its flights with the provided details. - Confirmation: The booking is created in the BOOKING_SENT workflow state and receives a booking number. - Flight number: A flight number sent in legs[].flightNumber is set on the created flight. - Duplicates: A request with a reference that already exists returns 409. Why Use This Endpoint? Using this endpoint helps to streamline the quote creation process, it is an essential tool for managing quotes efficiently and effectively. Account Selection Logic When submitting a quote, the system will attempt to create or pick the account provided in the following order: 1. Account ID: If customer.account.accountid is provided and valid, the account is retrieved using the ID. 2. External Reference: If no account is found, the system will search for an account using the customer.account.externalReference field. 3. Account Name: If no account is found, the system will search for an account using the customer.account.name field. 4. Account Number: If both customer.account.name and customer.account.accountNumber fields are provided, the system will attempt to find a match. 5. User Full Name: If no account is found by the above methods, the system will search for an account using the user's full name (concatenation offirstName and lastName). Pricing Engine Note When the aircraft uses the pricing engine, a price will only be returned if the request satisfies the pricing rules defined by the operator. If no applicable pricing rule is matched, the returned price will be 0. To ensure accurate pricing, it is recommended to contact the operator directly for details on the specific conditions required for price calculation. ## Update a Confirmed Quote - [PUT /api/external/quote/confirm/{reference}](https://developer.fl3xx.com/reference/quote-booking/putquoteconfirmbybookingreference.md): Updates a confirmed (booked) quote using its booking reference. If you modify the departure time, you need to make sure to update the arrival time too since FL3XX only calculates it at the first time. This endpoint mirrors PUT /api/external/quote/book/{reference} and accepts/returns the same schema. ## Cancel a Confirmed Quote - [DELETE /api/external/quote/confirm/{reference}](https://developer.fl3xx.com/reference/quote-booking/deletequoteconfirmbybookingreference.md): Cancels a confirmed (booked) quote using its booking reference. This endpoint mirrors DELETE /api/external/quote/book/{reference} and accepts/returns the same schema. ## Update Booking Payment Status - [PUT /api/external/quote/bookings/payment/{reference}](https://developer.fl3xx.com/reference/quote-booking/putbookingpaymentstatusbybookingreference.md): Updates the payment status of a booking using its reference.