Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 16 Next »

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 

GET
https://{environment}.ulysescloud.com/public/api/{version}/con/chain/{chainId}/property{propertyId}/revenue


Request

PropertyTypeRequiredDefault valueDescription
chainIdIntegertrue
Unique identificator of the chain.
propertyIdIntegertrue
Unique identificator of the property.
fromLocalDatetrue
Start of date range
toLocalDatetrue
End of date range
productIdIntegerfalse
Filter by only one product
productTypeIdListList of Integerfalse
Filter by a type of Product
offsetIntegerfalse0Offset of the array of results.
limitIntegerfalse10Limit of results.

Example request

GET https://publicapi-providers.ulysescloud.com:9797/public/api/v1/con/chain/1/property/1/revenue


Response

PropertyTypeRequiredDescription
PagePagetrue

Entity



FieldTypeRequiredDescription
dateLocalDatetrueDate of the revenue calculus
productProducttrueProduct that groups the values
quantityIntegertrue
adultsIntegertrue
juniorsIntegertrue
childrenIntegertrue
infantsIntegertrue
amountAfterTaxBigDecimaltrue
amountBeforeTaxBigDecimaltrue
amountDiscountBigDecimaltrue
amountTaxBigDecimaltrue
amountCommissionBigDecimaltrue
amountCommissionAppliedBigDecimaltrue

amountFoodBreakdownAfterTax

BigDecimal

amountFoodBreakdownBeforeTax

BigDecimal

amountBeverageBreakdownAfterTax

BigDecimal

amountBeverageBreakdownBeforeTax

BigDecimal

amountOtherBreakdownAfterTax

BigDecimal



amountOtherBreakdownBeforeTax

BigDecimal



amountNetAfterTaxBigDecimaltrue
amountNetBeforeTaxBigDecimaltrue
amountFoodBreakdownNetAfterTaxBigDecimal

amountFoodBreakdownNetBeforeTaxBigDecimal

amountBeverageBreakdownNetAfterTaxBigDecimal

amountBeverageBreakdownNetBeforeTaxBigDecimal

amountOtherBreakdownNetAfterTaxBigDecimal

amountOtherBreakdownNetBeforeTaxBigDecimal

amountInvoiceAfterTaxBigDecimal

amountInvoiceBeforeTaxBigDecimal

segment

Segment



source

Source



channel

Channel



rate

Rate



offer

Offer



promotion

Promotion



booker

Company



billTo

Company



central

Company



company

Company



countryCode

String



Example response

{
      "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
}
  • No labels