Operation
Get a list of all the accommodations.
GET
https://{environment}.ulysescloud.com/api/{version}/chain/{chainId}/property/{propertyId}/accommodation
Request
Property | Type | Required | Default value | Description |
---|---|---|---|---|
chainId | Integer | true | Unique identificator of the chain. | |
propertyId | Integer | true | Unique identificator of the property. | |
offset | Integer | false | 0 | Offset of the array of results. |
limit | Integer | false | 10 | Limit of results. |
sort | string | false | id | Property of the entity to sort by. |
sortMode | string | false | Asc | Mode of sorting. |
Example request
GET https://prod.ulysescloud.com/api/v1/chain/1/property/1/service
Response
Property | Type | Required | Description |
---|---|---|---|
Page | Page | true | Description of the response of the success operation |
Entity
The entity returned is a Page with a list of Accommodations. Description of the Accommodation entity:
Field Type Required Description id int true Unique identifier for the Service. code String true Code of the Service. name String true Name of the Service. forecastList ProductServiceAvailability false A list of associated ProductServiceAvailability to this Service. Only apears if we have data.
Example response
{ "count": 9, "offset": 0, "limit": 3, "list": [ { "id": 1, "name": "Single" }, { "id": 6, "name": "Single Deluxe" }, { "id": 11, "name": "Double" } ] }