Versions Compared

Key

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

Operation

Information of the operation

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



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

GET



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}/budget/segment



Request

PropertyTypeRequiredType parameterDefault valueDescription
chainIdIntegertruepath parameter0Unique identificator of the chain.
propertyIdIntegertruepath parameter
Unique identificator of the property.
yearIntegertruerequest parameter
Year to perform operation.


Example request

Code Block
languagepowershell
themeDJango
GET https://publicapi-providers.ulysescloud.com:9797/public/api/v1/con/chain/1/property/2/budget/segment?year=2022



Response

Entity


Insert excerpt
ProductBudgetDailySegmentBudgetProductBudgetDaily
SegmentBudget
nopaneltrue


Code Block
themeDJango
[{
		"segment": {
			"id": 17,
			"code": "TAGE",
			"name": "Travel Agent"
		},
		"budgetMonthlyList": [{
				"month": 1,
				"pax": 267,
				"roomNights": 56,
				"revenue": 3039.000000
			},
			{
				"month": 2,
				"pax": 47,
				"roomNights": 265,
				"revenue": 18909.000000
			},
			{
				"month": 3,
				"pax": 216,
				"roomNights": 230,
				"revenue": 22542.000000
			},
			{
				"month": 4,
				"pax": 119,
				"roomNights": 206,
				"revenue": 29836.000000
			},
			{
				"month": 5,
				"pax": 213,
				"roomNights": 15,
				"revenue": 8812.000000
			},
			{
				"month": 6,
				"pax": 147,
				"roomNights": 256,
				"revenue": 11386.000000
			},
			{
				"month": 7,
				"pax": 241,
				"roomNights": 240,
				"revenue": 18705.000000
			},
			{
				"month": 8,
				"pax": 205,
				"roomNights": 133,
				"revenue": 8039.000000
			},
			{
				"month": 9,
				"pax": 142,
				"roomNights": 235,
				"revenue": 18574.000000
			},
			{
				"month": 10,
				"pax": 225,
				"roomNights": 191,
				"revenue": 7191.000000
			},
			{
				"month": 11,
				"pax": 271,
				"roomNights": 111,
				"revenue": 19195.000000
			},
			{
				"month": 12,
				"pax": 84,
				"roomNights": 210,
				"revenue": 15119.000000
			}
		]
	},
	{
		"segment": {
			"id": 18,
			"code": "WEDD",
			"name": "Wedding"
		},
		"budgetMonthlyList": [{
				"month": 1,
				"pax": 74,
				"roomNights": 131,
				"revenue": 25543.000000
			},
			{
				"month": 2,
				"pax": 121,
				"roomNights": 23,
				"revenue": 11807.000000
			},
			{
				"month": 3,
				"pax": 101,
				"roomNights": 69,
				"revenue": 2236.000000
			},
			{
				"month": 4,
				"pax": 253,
				"roomNights": 254,
				"revenue": 21904.000000
			},
			{
				"month": 5,
				"pax": 103,
				"roomNights": 34,
				"revenue": 17671.000000
			},
			{
				"month": 6,
				"pax": 162,
				"roomNights": 216,
				"revenue": 22757.000000
			},
			{
				"month": 7,
				"pax": 247,
				"roomNights": 30,
				"revenue": 7115.000000
			},
			{
				"month": 8,
				"pax": 103,
				"roomNights": 259,
				"revenue": 27162.000000
			},
			{
				"month": 9,
				"pax": 93,
				"roomNights": 133,
				"revenue": 14619.000000
			},
			{
				"month": 10,
				"pax": 172,
				"roomNights": 34,
				"revenue": 23144.000000
			},
			{
				"month": 11,
				"pax": 256,
				"roomNights": 103,
				"revenue": 25098.000000
			},
			{
				"month": 12,
				"pax": 130,
				"roomNights": 183,
				"revenue": 26224.000000
			}
		]
	}
]