Proposals: Add or change accommodations
- Option creation
- 4 routes
How do I add more rooms or change the accommodation split in a proposal?
This guide explains how to add rooms or change the accommodation split of a proposal before confirmation.
The journey starts by retrieving a workable proposal, continues with the product accommodation catalog and the proposal-level arrangement search, and ends by applying the selected arrangement to the proposal.
Overview
This journey helps you evolve the accommodation setup of a proposal without leaving the booking flow. It combines product-level accommodation metadata with proposal-level availability and price differentials.
The two reads do not serve the same purpose:
GET/v2/products/{product_id}/accommodationsdescribes room types, capacities, and product attributes.POST/v1/accommodations_arrangement/searchreturns the room splits actually available for a given proposal, together with their differential prices.
Prerequisites
- Have a valid
proposal_id, or be able to generate one withPOST/v3/proposals/search. - Have a valid
product_idto browse the product accommodation catalog. - Send
accept-languageandx-api-keyon every route in the journey. - Make sure the proposal is still valid before applying a new arrangement.
Notes
- The product catalog is not a guarantee of proposal-level availability.
- The final update mutates the proposal in place.
- The exact request body expected by
PUT/v1/proposals/{proposal_id}/accommodations_arrangementis not verifiable with the consulted sources.
Process workflow
Legend:
Mandatory
Optional
1
Generate a baseline proposal
Mandatory
POST/v3/proposals/search
S2
Browse the product accommodation catalog
Optional
GET/v2/products/{product_id}/accommodations
S3
Compare the available room arrangements
Mandatory
POST/v1/accommodations_arrangement/search
S4
Apply the selected room arrangement
Mandatory
PUT/v1/proposals/{proposal_id}/accommodations_arrangement
S