Search for an informative price
The search price gives the best price of one or several products with the given conditions. If only some offer_id are provided, then it will return the best price for each product available for this/those offer(s). If only some product_id are provided, then it will return the best price for each product available for this/those product(s). If product_id and offer_id are provided, then it will return the best price for each product between those offers. The prices are for the given dates or the entire season if no dates are inputed. For a given product, date and family composition, it will only be possible to obtain one price.
Request
- Base URL: https://api.clubmed.com
- URL: https://api.clubmed.com/v1/search_price
- Auth: OpenID Connect (https://auth.clubmed.com/.well-known/openid-configuration, scopes: openid, email, profile, clubmed)
Query parameters
[ "MPAC" ]
Ex: EBB
length of stay (in days) ex: 3
Transport information indicating its class
Do you need a price for a stay with transport included or not? ex:true
The departure option id from product/id booking criteria. Ex: PAR
Total number of journey attendees.
List of birthdate of kids. Supported formats: YYYY-MM-DD, YYYYMMDD, YYYYMM
[ "2022-04-15" ]
First date of departure. Must be after the current date. Supported formats: YYYY-MM-DD, YYYYMMDD, YYYYMM
Last date of departure. The date must be after to the first date. Supported formats: YYYY-MM-DD, YYYYMMDD, YYYYMM
Allow to check other arrival dates if we can't find a proposal for the given parameters (false by default)
Allow to check other durations if we can't find a proposal for the given parameters (false by default)
Sales network id returned by the /partners/{partner_id}/sales_networks resources. Ex: OPERA_00_P2T
list of predefined accommodations for each product_id
Headers
Language/Country, as returned by <code>GET /v0/locales</code> ; e.g. "en-US", "fr-FR", "ja-JP"
Optional Access Token (bearer)
Api_key provided by ClubMed API team
Response
ok
Example response
[
{
"product_id": "MPAC",
"terms_and_conditions": {
"departure_city": {
"id": "PAR",
"label": "Paris"
},
"departure_location": {
"id": "CDG",
"label": "Charles de Gaulle airport"
},
"departure_date": "2016-01-25",
"arrival_date": "2016-01-25",
"duration": 7,
"transport_duration_in_min": 745,
"total_duration": 7,
"adults_count": 2,
"package": "AI",
"accommodations": [
{
"id": "C2",
"label": "Chambre Club",
"_links": [
{
"rel": "self",
"deprecated_rel": true,
"method": "GET",
"href": "https://api.clubmed.com/products",
"label": "A label"
}
]
}
],
"offers": [
{
"id": "EBB",
"label": "Early Booking Bonus",
"_links": [
{
"rel": "self",
"deprecated_rel": true,
"method": "GET",
"href": "https://api.clubmed.com/products",
"label": "A label"
}
]
}
],
"default_price_display": "per_trip",
"fees_included": true,
"instalment_count": 8,
"_links": [
{
"rel": "self",
"deprecated_rel": true,
"method": "GET",
"href": "https://api.clubmed.com/products",
"label": "A label"
}
],
"flights_connection_count": {
"inbound": 1
}
},
"price": {
"currency": "EUR",
"yield_pricing_variation": 50.5
},
"no_price_reason": {
"code": "NO_FLIGHT",
"description": "No flight available"
},
"_links": [
{
"rel": "self",
"deprecated_rel": true,
"method": "GET",
"href": "https://api.clubmed.com/products",
"label": "A label"
}
]
}
]Changes
No recorded changes to this operation across all 1 revision of this API.