---
uuid: 535e43f2-e26b-41f9-981d-d249e62e3c53
date_created: 2025-07-05T08:07:52.282Z
date_updated: 2026-03-11T09:25:34.696Z
outdated: true
end_of_support_date: 2025-03-09
routes: 
  - POST /v0/accommodations_arrangement/search
---

# Impact Migration of POST/v0/accommodations\_arrangement/search to POST /v1/accommodations\_arrangement/search

Upgrade from `POST/v0/accommodations_arrangement/search` to `POST /v1/accommodations_arrangement/search`

ℹ️ In the Response -> the differential\_prices. offer\_types tab becomes a list of objects `discounts` in a tab
And we add a new field discounts.code

## Impacts

Call  `POST /v1/accommodations_arrangement/search` instead of `POST/v0/accommodations_arrangement/search`

## Output

**Example value**

```diff
[
  {
    "differential_prices": [
      {
--    "offer_types": [
--          "ROL"
--        ],
        "discounts": [
          {
++            "offer_id": "ROL",
++            "code": "ROLLIN",
++            "_links": [
++              {
++                "rel": "offer_detail_v1",
++                "method": "GET",
++                "href": "https://api.staging.clubmed.com/v1/offers/ROL"
              }
            ]
          }
        ],
        "amount": -50.5,
        "currency": "EUR"
      }
    ],
    "remaining_stock": 5,
    "is_upgradable_online": true,
    "accommodation_arrangement": [
      {
        "id": "A2",
        "quantity": 2,
        "occupancy": 2,
        "shared_room": true,
        "attendees": [
          {
            "id": "A",
            "type": "MAIN",
            "birthdate": "20100430",
            "customer_id": "143890448"
          }
        ],
        "accommodation_categories": [
          {
            "id": "000021",
            "label": "5-Trident Luxury Space Deluxe",
            "_links": [
              {
                "rel": "self",
                "method": "GET",
                "href": "https://api.clubmed.com/products",
                "label": "A label"
              }
            ]
          }
        ],
        "_links": [
          {
            "rel": "self",
            "method": "GET",
            "href": "https://api.clubmed.com/products",
            "label": "A label"
          }
        ]
      }
    ]
  }
]
```

**Model**

| Champ API      | O/F | Description | Type   | Exemple |
| -------------- | --- | ----------- | ------ | ------- |
| discounts.code | O   | Offer code  | String | FRFAM   |
