List all variants
Lists variants belonging to the given accommodation. Each entry has the
same shape as GET /accommodations/{product_id}/variants/{id}.
Results are ordered by creation time, newest first, and paginated
with an opaque cursor in next_cursor; pass it back as next_cursor
on the next call to fetch the next page (null means there are no more
results). Malformed cursors are ignored and the first page is returned.
Any API key (app-installation-scoped or dashboard-user-scoped) can list variants under any accommodation in the company.
Path Parameters
Product ID for the accommodation type (e.g. acc_9fKbV3aQx7).
Query Parameters
Number of results per page. Default 50, maximum 200. Values above 200 or zero/negative are clamped to that range rather than rejected.
50Opaque pagination cursor returned in next_cursor of the previous response. Malformed values are ignored and the first page is returned.
Response Body
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/accommodations/string/variants" \ -H "Easol-API-Version: 2026-11-01"{
"object": "string",
"url": "string",
"has_more": true,
"next_cursor": "string",
"data": [
{
"object": "accommodation_variant",
"id": "string",
"name": "string",
"tagline": "string",
"min_occupancy": 1,
"max_occupancy": 1,
"hidden": true,
"position": 0,
"checkout_limit": 1,
"stock_strategy": "inventory",
"image_url": "http://example.com",
"price": {
"amount": 0,
"currency": "string"
},
"accommodation": "string"
}
]
}{
"error": {
"code": "string",
"message": "string"
}
}{
"error": {
"code": "string",
"message": "string"
}
}{
"error": {
"code": "string",
"message": "string"
}
}Accommodations
An accommodation is a place to stay — a hotel, villa, hostel, and so on. Each accommodation has one or more variants (the bookable room types, e.g. Deluxe Double) and carries its own imagery, location, and published state. Create accommodations here, then add variants under them. Variants carry occupancy, pricing, and stock, and inherit their parent accommodation's published state — use `hidden` to withhold a single variant from the storefront without unpublishing the whole accommodation.
Create a variant POST
Next Page