Operation
The result of this operation gives us the total amount of daily revenue produced by an specific product or product category throughout a time period
Rw ui textbox macro | ||
---|---|---|
| ||
Only accessible with permission of pms.integration.revenue |
Style |
---|
table { width: 100%; } body.page-gadget { padding-top: 20px; } .separator{ margin: 5px 0; } |
Div | ||
---|---|---|
| ||
GET Single property request |
Div | ||
---|---|---|
| ||
https://{environment}.ulysescloud.com/public/api/{version}/con/chain/{chainId}/property/{propertyId}/revenue |
Div | ||
---|---|---|
| ||
GET Multiproperty request |
Div | ||
---|---|---|
| ||
https://{environment}.ulysescloud.com/public/api/{version}/con/chain/{chainId}/property/revenue |
Request
Property | Type | Required | Type parameter | Default value | Description |
---|---|---|---|---|---|
chainId | Integer | true | path parameter | Unique identificator of the chain. | |
propertyId | Integer | true | path parameter | Unique identificator of the property. | |
from | LocalDate | true | request parameter | Start of date range | |
to | LocalDate | true | request parameter | End of date range | |
productId | Integer | false | request parameter | Filter by only one product | |
productTypeIdList | List of Integer | false | request parameter | Filter by a type of Product | |
offset | Integer | false | request parameter | 0 | Offset of the array of results. |
limit | Integer | false | request parameter | 10 | Limit of results. |
Example Single Property request
Code Block | ||||
---|---|---|---|---|
| ||||
GET https://publicapi-providers.ulysescloud.com:9797/public/api/v1/con/chain/1/property/1/revenue |
Example Multiproperty request
Code Block | ||||
---|---|---|---|---|
| ||||
GET https://publicapi-providers.ulysescloud.com:9797/public/api/v1/con/chain/1/property/revenue |
Response
Property | Type | Required | Description |
---|---|---|---|
Page | Page | true |
Entity
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
Example response
Code Block | ||
---|---|---|
| ||
{ "date": "2020-05-10", "product": { "id": 56, "code": "DEPRE", "name": "Deposit Receipt", "productType": { "id": 4, "code": "DEP", "name": "Deposit", "nameI18n": "Deposit" } }, "quantity": 0, "adults": 0, "juniors": 0, "children": 0, "infants": 0, "amountAfterTax": 0.000000, "amountBeforeTax": 0.000000, "amountDiscount": 0.000000, "amountTax": 0.000000, "amountCommission": 0.000000, "amountCommissionApplied": 0.000000, "amountFoodBreakdownAfterTax": 0.000000, "amountFoodBreakdownBeforeTax": 0.000000, "amountBeverageBreakdownAfterTax": 0.000000, "amountBeverageBreakdownBeforeTax": 0.000000, "amountOtherBreakdownAfterTax": 0.000000, "amountOtherBreakdownBeforeTax": 0.000000, "amountNetAfterTax": 0.000000, "amountNetBeforeTax": 0.000000, "amountFoodBreakdownNetAfterTax": 0.000000, "amountFoodBreakdownNetBeforeTax": 0.000000, "amountBeverageBreakdownNetAfterTax": 0.000000, "amountBeverageBreakdownNetBeforeTax": 0.000000, "amountOtherBreakdownNetAfterTax": 0.000000, "amountOtherBreakdownNetBeforeTax": 0.000000, "segment": null, "source": null, "channel": null, "rate": null, "offer": null, "promotion": null, "booker": null, "billTo": null, "central": null, "company": null, "countryCode": null } |