Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Operation

Updates the prices in Occupancy type of a Rate for certain accommodations and dates.

Rw ui textbox macro
typewarning

Only accessible with permission of pms.integration.profile


Style
table {
width: 100%;
}
body.page-gadget {
padding-top: 20px;
}
.separator{
margin: 5px 0;
}



Div
style background-color: khaki; color: black; display: inline-block; padding: 5px; border-radius: 3px;

PUT



Div
stylebackground-color: #0a2b1d; padding: 10px 1em; display: inline-block; color: white; border-radius: 3px;

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



Request

PropertyTypeRequiredType parameterDefault valueDescription
chainIdIntegertruepath parameter

propertyIdIntegertruepath parameter

rateIdIntegertruepath parameter


Example request

Code Block
languagepowershell
themeDJango
PUT https://publicapi-providers.ulysescloud.com:9797/public/api/v1/con/chain/1/property/2/rate/2/availability



Entity

Insert excerpt
RateAccommodation
RateAccommodation
nopaneltrue

Example Body

The body that will be sent in the operation

Code Block
themeDJango
{{
	"rate": {
		"id": 2,
		"code": "BAR",
		"name": "Best Available Rate",
		"rateType": {
			"id": 14,
			"code": "TOU",
			"name": "Tour/Wholesale"
		}
	},
	"rateAccommodationOccupancyList": [{
		"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
			}
		},
		"adult": 1,
		"junior": 0,
		"child": 0,
		"infant": 0,
		"rateAccommodationAvailabilityList": [{
				"date": "2022-11-18",
				"price": 131.000000,
				"closed": false,
				"minStay": null,
				"maxStay": null,
				"closedToArrival": false,
				"closedToDeparture": false
			},
			{
				"date": "2022-11-19",
				"price": 133.000000,
				"closed": false,
				"minStay": null,
				"maxStay": null,
				"closedToArrival": false,
				"closedToDeparture": false
			}
		]
	}]
}


Response

PropertyTypeRequiredDescription
ResponseApiMessageResponseApiMessagetrueDescription of the response of the success operation


Example response

Code Block
themeDJango
{
  "httpStatus": "201",
  "userMessage": "Success",
  "technicalMessage": "Success prices updated",
  "errorCode": "0",
  "id": 1
}