Revenue payments list [GET]
Operation
This operation gives as a result the total daily amount produced by one or more products (payment methods) throughout an specific period
GET
https://{environment}.ulysescloud.com/public/api/{version}/con/chain/{chainId}/property{propertyId}/revenue/payment
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. | |
productId | Integer | false | path parameter | Filter by productId | |
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/payment
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": 93, "offset": 0, "limit": 2, "list": [{ "date": "2020-03-30", "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": 910.800000, "amountBeforeTax": 910.800000, "amountDiscount": 0.000000, "amountTax": 0.000000, "amountCommission": 0.000000, "segment": null, "source": null, "channel": null, "rate": null, "offer": null, "promotion": null, "booker": null, "billTo": null, "central": null, "company": null, "countryCode": null }, { "date": "2020-03-30", "product": { "id": 49, "code":"AE", "name": "American Express", "productType": { "id": 3, "code": "PAY", "name": "Payment" } }, "quantity": 2, "adults": 0, "juniors": 0, "children": 0, "infants": 0, "amountAfterTax": 329.200000, "amountBeforeTax": 329.200000, "amountDiscount": 0.000000, "amountTax": 0.000000, "amountCommission": 0.000000, "segment": null, "source": null, "channel": null, "rate": null, "offer": null, "promotion": null, "booker": null, "billTo": null, "central": null, "company": null, "countryCode": null } ] }