Migration of the route GET /v1/customers/{customer_id}/bookings/{booking_id}/services
- Obsolète
- 16 mai 2024
- 1 route liée
Context
Upgrade from GET - /v1/customers/{customer_id}/bookings/{booking_id}/services to GET - /v2/customers/{customer_id}/bookings/{booking_id}/services
⭐ Key benefits : Having information about services for bookings with option status ℹ️ Add new field 'status'
As a Customer account Dev I want to be able to have more details about services for bookings with option status In order to be sure of my booking choices
Impacts
Route to call :
- GET -
/v2/customers/{customer_id}/bookings/{booking_id}/services
Model
| Champ API | Définition | Example | Type |
|---|---|---|---|
| status | ressource's type | VALIDATED | ENUM |
Output Example value
[
{
"id": "CM21M5",
"type": "WELLNESS",
"currency": "EUR",
"stay_index": 0,
+ "status":"VALIDATED",
"schedules": [
{
"start_date": "20240107",
"end_date": "20240107",
"attendees": [
{
"id": "A",
"price": 93
}
],
"transfer_information": null
}
],
"_links": [
{
"rel": "activity_details",
"method": "GET",
"href": "https://api.staging.clubmed.com/v2/products/CM2C_20240106_20240118/activities/ACT_SOTHYS_WELL_wellness_getaway_massage_50_minutes"
}
]
},
{
"id": "CM21V5",
"type": "WELLNESS",
"currency": "EUR",
"stay_index": 0,
+ "status":"VALIDATED",
"schedules": [
{
"start_date": "20240114",
"end_date": "20240114",
"attendees": [
{
"id": "A",
"price": 99
}
],
"transfer_information": null
}
],
"_links": [
{
"rel": "activity_details",
"method": "GET",
"href": "https://api.staging.clubmed.com/v2/products/CM2C_20240106_20240118/activities/ACT_SOTHYS_WELL_wellness_getaway_facial_50_minutes"
}
]
}
]