Operation
Information of the operation
Style |
---|
table { width: 100%; } body.page-gadget { padding-top: 20px; } .separator{ margin: 5px 0; } |
Div | ||
---|---|---|
| ||
GET |
Div | ||
---|---|---|
| ||
https://{environment}.ulysescloud.com/api/{version}/chain/{chainId}/property{propertyId}/revenue |
Request
Property | Type | Required | Default value | Description |
---|---|---|---|---|
chainId | Integer | true | Unique identificator of the chain. | |
propertyId | Integer | true | Unique identificator of the property. | |
from | LocalDate | true | Start of date range | |
to | LocalDate | true | End of date range | |
productId | Integer | false | Filter by only one product | |
productTypeIdList | List of Integer | false | Filter by a type of Product | |
offset | Integer | false | 0 | Offset of the array of results. |
limit | Integer | false | 10 | Limit of results. |
Example request
Code Block | ||||
---|---|---|---|---|
| ||||
GET https://prod.ulysescloud.com/api/v1/chain/1/property/1/revenue |
Response
Property | Type | Required | Description |
---|---|---|---|
Page | Page | true |
Entity
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
Example response
Code Block | ||
---|---|---|
| ||
{ "count": 3, "offset": 0, "limit": 10, "list": [{ "date": "2019-01-21", "product": { "productIdid": 79, "name": "Junior Suite" }, "quantity": 1, "adults": 1, "juniors": 0, "children": 0, "infants": 0, "amountAfterTax": 380, "amountBeforeTax": 342, "amountDiscount": 0, "amountTax": 38, "amountCommission": 42 }, { "date": "2019-01-21", "productIdproduct": { "id": 288, "name": "Television" }, "quantity": 1, "adults": 1, "juniors": 0, "children": 0, "infants": 0, "amountAfterTax": 10, "amountBeforeTax": 7.9, "amountDiscount": 0, "amountTax": 2.1, "amountCommission": 0 }, { "date": "2019-01-21", "productId"product": { "id": 365, "name": "Pet" }, "quantity": 1, "adults": 1, "juniors": 0, "children": 0, "infants": 0, "amountAfterTax": 10, "amountBeforeTax": 7.9, "amountDiscount": 0, "amountTax": 2.1, "amountCommission": 0 } ] } |