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 Products. Description of the Product entity:
Field Type Required Description id int true Unique identifier for the Product. code String true Code of the Product. name String true Name of the Product. productType ProductType true Type of Product (payment, service, accomodation... nameI18n String false itemList Item false List of Items. Only show if you call of Services Endpoint
Example response
{ "count": 9, "offset": 0, "limit": 3, "list": [ { "id": 1, "name": "Single" }, { "id": 6, "name": "Single Deluxe" }, { "id": 11, "name": "Double" } ] }