Impacts migration de la route GET /v1/customers/{customer_id}/bookings
- Outdated
- September 1, 2021
- 1 related route
Contexte
This new resource retrieve all client's bookings.
Impacts
Route to call: GET/v3/customers/{customer_id}/bookings
Input parameters:
- add a sort
- delete type
Output model:
[
{
"id": "90162244",
"creation_date": "20211229",
"departure_date": "20220118",
"return_date": "20220126",
"multiple_sale_contracts": false,
- "departure_countdown_href": null,
- "expiration_date_time": null,
+ "option_durability": {
+ "expiration_date_time": "20230101T01:00:00Z",
+ "is_reliable": true
+ },
+ "is_renewed_option": true,
"booking_status": "VALIDATED",
"payment_status": "PAID",
"allowed_to_pay": true,
"locale": "fr-FR",
- "type": "CLUBMED_RESORT",
"vendor": {
"sold_by": "CLUBMED",
"name": "CLUB MED INTERNET",
"contact": "0969323487",
"type": "SHOP"
},
+ "total_price": {
+ "amount": 1660,
+ "currency": "EUR"
+ },
"stays": [
{
"id": "CANC20220118",
"product_id": "CANC",
"label": "Cancún",
"product_type": "VILLAGE",
"resort_arrival_date": "20220118",
+ "resort_leaving_date": "20220125",
"duration": 7,
- "gm_feedback": {
- "status": "AVAILABLE",
- "_links": [
- {
- "rel": "gm_feedback_detail",
- "method": "GET",
- "href": "https://api.integ.clubmed.com/gmfeedback/app/auth?booking_id=90162244&customer_id=144884218&locale=fr-FR&product_id=CANC"
- }
- ]
- },
"outward_trip": {
"departure_city": "PARIS",
"arrival_city": "CANCUN",
- "transportation": "PLANE",
+ "transportation": [
+ "PLANE"
+ ],
- "attendees_count": 2
},
"api_upsell_available": true,
"accommodations": [
{
"start_date": "20220118",
"end_date": "20220125",
"quantity": 1,
"baby_bed": false,
"occupation": 2,
"accommodation_id": "A+",
"rooms": [],
"_links": [
{
"rel": "accommodation_detail_v1",
"method": "GET",
"href": "https://api.integ.clubmed.com/v1/products/CANC/accommodations/A+?stay_date=20220118"
}
]
}
],
+ "attendees": [
+ {
+ "start_date": "20220118",
+ "end_date": "20220125",
+ "adults_count": 2,
+ "children_count": 0,
+ "attendee_ids": [
+ "A",
+ "B"
+ ],
+ "_links": [
+ {
+ "rel": "attendee_detail",
+ "method": "GET",
+ "href": "https://api.integ.clubmed.com/v0/bookings/90162244/attendees"
+ }
+ ]
+ }
+ ],
- "attendees": {
- "adults_count": 2,
- "children_count": 0,
- "_links": [
- {
- "rel": "attendee_detail",
- "method": "GET",
- "href": "https://api.integ.clubmed.com/v0/customers/144884218/bookings/90162244/attendees"
- }
- ]
- },
- "total_adults_count": 2,
- "total_children_count": 0,
"packages": [
{
"id": "AI",
"label": "All inclusive",
"attendee_ids": [
"A",
"B"
],
"_links": [
{
"rel": "package",
"method": "GET",
"href": "https://api.integ.clubmed.com/v0/products/CANC/packages/AI"
}
]
}
],
"_links": [
{
"rel": "product_detail",
"method": "GET",
"href": "https://api.integ.clubmed.com/v1/products/CANC"
}
]
}
],
- "easy_arrival": {
- "status": "UNAVAILABLE",
- "_links": []
- },
+ "events": [],
"_links": [
{
"rel": "self",
"method": "GET",
"href": "https://api.integ.clubmed.com/v2/customers/144884218/bookings/90162244"
},
{
"rel": "payment_schedules",
"method": "GET",
"href": "https://api.integ.clubmed.com/v0/customers/144884218/bookings/90162244/payment_schedules"
},
{
"rel": "sell_contracts",
"method": "GET",
"href": "https://api.integ.clubmed.com/v0/customers/144884218/bookings/90162244/sell_contracts"
},
{
"rel": "transfers",
"method": "GET",
"href": "https://api.integ.clubmed.com/v0/customers/144884218/bookings/90162244/transfers"
},
{
"rel": "price_details",
"method": "GET",
"href": "https://api.integ.clubmed.com/v1/customers/144884218/bookings/90162244/price_details"
},
{
"rel": "services",
"method": "GET",
"href": "https://api.integ.clubmed.com/v1/customers/144884218/bookings/90162244/services"
},
{
"rel": "transport_details",
"method": "GET",
"href": "https://api.integ.clubmed.com/v1/customers/144884218/bookings/90162244/transport_details"
}
]
}
]