Find Price for Rate by base accommodation [GET]

Operation

Returns the prices in availability of a Rate for accommodations and dates.

GET
https://{environment}.ulysescloud.com/public/api/{version}/con/chain/{chainId}/property/{propertyId}/rate/{rateId}/availability/baseAccommodation


Request

PropertyTypeRequiredType parameterDefault valueDescription
chainIdIntegertruepath parameter

propertyIdIntegertruepath parameter

rateIdIntegertruepath parameter

Example request

GET https://publicapi-providers.ulysescloud.com:9797/public/api/v1/con/chain/1/property/2/rate/2/availability/baseAccommodation


Response


FieldTypeRequiredDescription
rateRatetrueRate of this relationship.
rateBaseAccommodationAccommodationListArray of RateBaseAccommodationAccommodationtrueThe list of related accommodations with a list of availability per day.

Example response

{
	"rate": {
		"id": 17,
		"code": "DAYUSE",
		"name": "Day Use Rate",
		"rateType": {
			"id": 5,
			"code": "DRT",
			"name": "Day rate"
		}
	},
	"rateBaseAccommodationAccommodationList": [{
			"accommodation": {
				"id": 692,
				"name": "Single",
				"code": null,
				"roomType": {
					"id": 2,
					"chainRoomTypeId": 1,
					"name": "Single",
					"nameI18n": "Single",
					"mainImage": "1/2/propertyroomtypeimages/d9ce9c3f-9877-435d-9313-922537e26912.jpg",
					"active": true
				}
			},
			"rateBaseAccommodationAvailabilityList": [{
					"date": "2022-11-18",
					"price": 155.000000,
					"closed": false,
					"minStay": 0,
					"maxStay": 0,
					"closedToArrival": false,
					"closedToDeparture": false
				},
				{
					"date": "2022-11-16",
					"price": 155.000000,
					"closed": false,
					"minStay": 0,
					"maxStay": 0,
					"closedToArrival": false,
					"closedToDeparture": false
				},
				{
					"date": "2022-11-17",
					"price": 155.000000,
					"closed": false,
					"minStay": 0,
					"maxStay": 0,
					"closedToArrival": false,
					"closedToDeparture": false
				}
			]
		},
		{
			"accommodation": {
				"id": 707,
				"name": "Single Deluxe",
				"code": null,
				"roomType": {
					"id": 2,
					"chainRoomTypeId": 1,
					"name": "Single",
					"nameI18n": "Single",
					"mainImage": "1/2/propertyroomtypeimages/d9ce9c3f-9877-435d-9313-922537e26912.jpg",
					"active": true
				}
			},
			"rateBaseAccommodationAvailabilityList": [{
				"date": "2022-11-18",
				"price": 135.000000,
				"closed": false,
				"minStay": 0,
				"maxStay": 0,
				"closedToArrival": false,
				"closedToDeparture": false
			}]
		}
	]
}