Creates a booking
Behind the scene, this endpoint acts like calling the POST /v3/proposals/search and the PUT /v2/proposals/{proposal_id}/attendees before creating the booking. To create a booking, the proposal must contain attendees information. The booking can be created with different statuses impacting the booking life cycle. The booking creation will decrease Club Med stock. The booking creation is required to create a payment. The accept-language must be the same as the one in the proposal creation.
Request
- Base URL: https://api.clubmed.com
- URL: https://api.clubmed.com/v3/bookings
- Auth: one of:
- OpenID Connect (https://accounts.clubmed.com/.well-known/openid-configuration, scopes: openid, email, profile, clubmed)
- OpenID Connect (https://auth.clubmed.com/.well-known/openid-configuration, scopes: openid, email, profile, clubmed)
Query parameters
Technical information provided, if needed, by Club Med to the partner
Headers
Optional Access Token (bearer)
Access Token (bearer)
Language/Country, as returned by <code>GET /v0/locales</code> ; e.g. "en-US", "fr-FR", "ja-JP"
Api_key provided by ClubMed API team
Request body
Example request
{
"resort_arrival_date": "20100430",
"duration": 7,
"product_id": "MPAC",
"package_id": "PAI",
"voucher_code": "CDDEZS",
"sales_network_id": "OPERA_00_P2T",
"transfer_code": "AGAVSY",
"departure_option_id": "PAR",
"accommodation_id": "A4+",
"households": [
{
"household_id": "A",
"address": {
"number": "15",
"street": "AVENUE DES CHAMPS ELYSEES",
"add_on": "6A",
"town": "Luynes",
"city": "Aix-en-Provence",
"zip_code": "75000",
"state_or_district": "CA",
"country": "FRANCE",
"country_code": "FR",
"additional_information_1": "Chez M. Dupont",
"additional_information_2": "Entreprise Clubmed"
},
"attendees": [
{
"id": "A",
"customer_id": "123456789",
"first_name": "Marc",
"unicode_first_name": "北",
"last_name": "Dupont",
"unicode_last_name": "王",
"email": "bei.wang@123.com",
"civility_code": "MR",
"health_pass_id": "1234567892",
"identity": {
"number": "E001241",
"type": "TAX_NUMBER"
},
"birthdate": "2022-04-15",
"travel_documents": [
{
"document_number": "09PR5121F",
"type": "PASSPORT",
"expiration_date": "20281015",
"issuing_date": "20181015",
"nationality": "FR",
"issuing_country": "FR",
"birth_country": "FR",
"authority": "Prefecture de Torcy"
}
],
"phones": [
{
"number": "0623456789",
"type": "MOBILE"
}
],
"optins": [
{
"channel": "EMAIL",
"optin": true,
"optin_partners": true
}
]
}
],
"language_code": "FR"
}
],
"opportunity_id": "456789123",
"sending_option_information": true,
"booking_status": "OPTION",
"seller_email": "pierre.dupont@partner.com",
"salesman_id": "45535786",
"comment": "blablabla blablabla",
"expired_option_booking_id_for_renewal": "0123456789",
"proposal_id": "123456",
"price": {
"requested_price": 12345
}
}Response
Successful
Example response
{
"booking_id": "654321",
"households": [
{
"attendees": [
{
"customer_id": 987654,
"type": "MAIN"
}
]
}
],
"option_durability": {
"is_reliable": true,
"expiration_date_time": "20160415T10:23:00.234Z"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.