Revenue payments list detailed [GET]
Operation
This endpoint gives as a result a daily list of payments done throughout a period.
GET
https://{environment}.ulysescloud.com/public/api/{version}/con/chain/{chainId}/property{propertyId}/revenue/paymentDetail
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 | |
offset | Integer | false | request parameter | 0 | Offset of the array of results. |
limit | Integer | false | request parameter | 10 | Limit of results. |
Example request
GET https://publicapi-providers.ulysescloud.com:9797/public/api/v1/con/chain/1/property/1/revenue/paymentDetail
Response
Property | Type | Required | Description |
---|---|---|---|
Page | Page | true |
Entity
Field | Type | Required | Description |
---|---|---|---|
date | LocalDate | true | Date of the revenue calculus |
product | Product | true | Product that groups the values |
quantity | Integer | true | |
adults | Integer | true | |
juniors | Integer | true | |
children | Integer | true | |
infants | Integer | true | |
amountAfterTax | BigDecimal | true | |
amountBeforeTax | BigDecimal | true | |
amountDiscount | BigDecimal | true | |
amountTax | BigDecimal | true | |
amountCommission | BigDecimal | true | |
amountCommissionApplied | BigDecimal | true | |
amountFoodBreakdownAfterTax | BigDecimal | ||
amountFoodBreakdownBeforeTax | BigDecimal | ||
amountBeverageBreakdownAfterTax | BigDecimal | ||
amountBeverageBreakdownBeforeTax | BigDecimal | ||
amountOtherBreakdownAfterTax | BigDecimal | ||
amountOtherBreakdownBeforeTax | BigDecimal | ||
amountNetAfterTax | BigDecimal | true | |
amountNetBeforeTax | BigDecimal | true | |
amountFoodBreakdownNetAfterTax | BigDecimal | ||
amountFoodBreakdownNetBeforeTax | BigDecimal | ||
amountBeverageBreakdownNetAfterTax | BigDecimal | ||
amountBeverageBreakdownNetBeforeTax | BigDecimal | ||
amountOtherBreakdownNetAfterTax | BigDecimal | ||
amountOtherBreakdownNetBeforeTax | BigDecimal | ||
amountInvoiceAfterTax | BigDecimal | ||
amountInvoiceBeforeTax | BigDecimal | ||
segment | |||
source | |||
channel | |||
rate | |||
offer | |||
promotion | |||
booker | |||
billTo | |||
central | |||
company | |||
countryCode | String |
Example response
{ "count": 134, "offset": 0, "limit": 2, "list": [ { "date": "2020-04-03", "product": { "id": 48, "code":"CS", "name": "Cash", "productType": { "id": 3, "code": "PAY", "name": "Payment" } }, "quantity": 1, "adults": 0, "juniors": 0, "children": 0, "infants": 0, "amountAfterTax": 20.000000, "amountBeforeTax": 20.000000, "amountDiscount": 0.000000, "amountTax": 0.000000, "amountCommission": 0.000000, "segment": { "id": 30, "code": "MEET", "name": "Meetings" }, "source": { "id": 13, "code": "PHO", "name": "Phone" }, "channel": { "id": 8, "code": "GDS", "name": "GDS" }, "rate": null, "offer": null, "promotion": null, "booker": null, "billTo": null, "central": null, "company": null, "countryCode": "TM" }, { "date": "2020-04-03", "product": { "id": 50, "code":"V", "name": "Visa", "productType": { "id": 3, "code": "PAY", "name": "Payment" } }, "quantity": 1, "adults": 0, "juniors": 0, "children": 0, "infants": 0, "amountAfterTax": 70.000000, "amountBeforeTax": 70.000000, "amountDiscount": 0.000000, "amountTax": 0.000000, "amountCommission": 0.000000, "segment": { "id": 31, "code": "CREWS", "name": "Crews" }, "source": { "id": 9, "code": "COM", "name": "Company" }, "channel": { "id": 8, "code": "GDS", "name": "GDS" }, "rate": null, "offer": null, "promotion": null, "booker": null, "billTo": null, "central": null, "company": null, "countryCode": "AT" } ] }