Migration of the route GET /v1/customers/{customer_id}/bookings/{booking_id}/services

  • Outdated
  • May 16, 2024
  • 1 related route

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 APIDéfinitionExampleType
statusressource's typeVALIDATEDENUM

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"
      }
    ]
  }
]