Compare and apply counter-proposals
- Services
- 10 routes
How do I identify, compare, and apply a Club Med counter-proposal?
This scenario explains how Club Med exposes counter-proposals around a travel request. The flow first covers alternative date suggestions from booking criteria, then explores alternatives on an already created proposal, such as package, rate, transportation, or accommodation.
The goal is to help integrators build a reliable comparison experience: start from a reference proposal, inspect its current state, refresh it when needed, and only display alternatives that are actually applicable.
Overview
The counter-proposal concept is not handled by a single route. It relies on several resources that intervene at different moments of the booking flow:
- before final selection, with
POST/v0/proposals/date_suggestionto suggest alternative dates; - after proposal creation, with routes dedicated to package, rate, transportation, or accommodation alternatives.
Prerequisites
- Have a valid
x-api-key. - Provide
accept-languageon routes that require it. - Have booking criteria that can generate a reference proposal.
- Have a valid
proposal_idfor reading, refreshing, and arbitrating proposal alternatives. - Prepare a bearer token when your integration context requires one.
Expected result
At the end of this flow, the application can:
- generate a reference proposal;
- list counter-proposals by date;
- read and refresh the selected proposal;
- display applicable package, rate, transportation, and accommodation alternatives;
- apply a package or rate alternative when the corresponding route is used.
Process workflow
Legend:
Mandatory
Optional
1
Create a reference proposal
Mandatory
POST/v1/proposals/search/best
S2
List date-based counter-proposals
Optional
POST/v0/proposals/date_suggestion
S3
Read the selected proposal
Mandatory
GET/v2/proposals/{proposal_id}
S4
Refresh the proposal before arbitration
Optional
POST/v1/proposals/{proposal_id}/refresh
S5
Retrieve alternative packages
Optional
GET/v0/proposals/{proposal_id}/alternative_packages
S6
Apply an alternative package
Optional
PUT/v0/proposals/{proposal_id}/alternative_packages
S7
Retrieve alternative rates
Optional
GET/v0/proposals/{proposal_id}/alternative_rates
S8
Apply an alternative rate
Optional
PUT/v0/proposals/{proposal_id}/rates
S9
Retrieve alternative transports
Optional
POST/v1/proposals/{proposal_id}/available_transports
S10
Retrieve the best alternative accommodations
Optional
GET/v1/proposals/{proposal_id}/best_accommodations
S