Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Operation

The result of this operation gives us the total amount of daily revenue produced throughout a time period

Rw ui textbox macro
typewarning

Only accessible with permission of pms.integration.revenue


Style
table {
width: 100%;
}
body.page-gadget {
padding-top: 20px;
}
.separator{
margin: 5px 0;
}



Div
style background-color: green; color: white; display: inline-block; padding: 5px; border-radius: 3px;

GET



Div
stylebackground-color: #0a2b1d; padding: 10px 1em; display: inline-block; color: white; border-radius: 3px;

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



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
offsetIntegerfalse0Offset of the array of results.
limitIntegerfalse10Limit of results.


Example request

Code Block
languagepowershell
themeDJango
GET https://publicapi-providers.ulysescloud.com:9797/public/api/v1/con/chain/1/property/1/revenue/detail



Response

PropertyTypeRequiredDescription
PagePagetrue

Entity


Insert excerpt
Revenue
Revenue
nopaneltrue

Example response

Code Block
themeDJango
{
  "count": 1770910,
  "offset": 0,
  "limit": 210,
  "list": [
    {
      "date": "2020-0406-0327",
      "product": {
        "id": 7168,
		
        "code": "MRDINNER",
        "name": "Meeting RoomDinner",
        "productType": {
          "id": 2,
          "code": "SER",
          "name": "Service",
          "nameI18n": "Service"
        }
      },
      "quantity": 21,
      "adults": 21,
      "juniors": 0,
      "children": 0,
      "infants": 0,
      "amountAfterTax": 2045.000000,
      "amountBeforeTax": 18.181818": 40.909091,
      "amountFoodBreakdownAfterTax": 40.500000,
      "amountFoodBreakdownBeforeTax": 36.818182,
      "amountBeverageBreakdownAfterTax": 2.250000,
      "amountBeverageBreakdownBeforeTax": 2.045455,
      "amountOtherBreakdownAfterTax": 2.250000,
      "amountOtherBreakdownBeforeTax": 2.045455,
      "amountNetAfterTax": 42.096774,
      "amountNetBeforeTax": 38.269795,
      "amountFoodBreakdownNetAfterTax": 37.887097,
      "amountFoodBreakdownNetBeforeTax": 34.442816,
      "amountBeverageBreakdownNetAfterTax": 2.104839,
      "amountBeverageBreakdownNetBeforeTax": 1.913490,
      "amountOtherBreakdownNetAfterTax": 2.104839,
      "amountOtherBreakdownNetBeforeTax": 1.913490,
      "amountDiscount": 0.000000,
      "amountTax": 14.818182090909,
      "amountCommission": 04.000000,
      "amountCommissionApplied": 0.000000,
      "segment": {
        "id": 2327,
        "code": "SPOCONL",
        "name": "SportCompany TeamsOnline"
      },
      "source": {
        "id": 1214,
        "code": "EMAWAL",
        "name": "EmailWalk-In"
      },
      "channel": {
        "id": 911,
        "code": "IDSWEB",
        "name": "IDSBooking Engine"
      },
      "rate": {
        "id": 2,
        "code": "BAR",
        "name": "Best Available Rate"
      },
      "offer": null,
      "promotion": null,
      "booker": {
        "id": 680847,
        "name": "LazzyYoufeed",
        "code": null"YOUFE",
        "taxId": "75074669",
        "iataId": null62711834",
        "companyEmailList": [
          {
            "id": 680847,
            "primary": true,
            "emailAddressType": {
              "id": 1,
              "code": "1",
              "name": "Personal",
              "nameI18n": "Personal"
            },
            "email": "jbowmanik@alexacfreemann5@biblegateway.com",
            "remark": null
          }
        ],
        "companyAddressList": [
          {
            "id": 680847,
            "primary": true,
            "communicationLocationType": {
              "id": 1,
              "code": "1",
              "name": "Home",
              "nameI18n": "Home"
            },
            "street": "82232 HighKim Crossing DriveWay",
            "city": "PlanoSpringfield",
            "stateProvName": "TexasLeón",
            "stateProvCode": null"ES-LE",
            "postalCode": "7507462711",
            "countryCode": "GAES",
            "remark": "Address Remark"
          }
        ],
        "companyPhoneList": [
          {
            "id": 680847,
            "primary": true,
            "phoneLocationType": {
              "id": 6,
              "code": "6",
              "name": "Home",
              "nameI18n": "Home"
            },
            "phoneTechType": {
              "id": 1,
              "code": "1",
              "name": "Voice",
              "nameI18n": "Voice"
            },
            "countryAccessCode": "+34",
            "areaCityCode": "B",
            "phoneNumber": "1-(214217)123690-73921739",
            "extension": "1",
            "remark": "Phone Remark"
          }
        ],
        "companyTaxAddress": {
          "id": 670837,
          "communicationLocationType": null,
          "street": "82232 HighKim Crossing DriveWay",
          "city": "PlanoSpringfield",
          "stateProvName": "TexasValladolid",
          "stateProvCode": null"ES-VA",
          "postalCode": "7507462711",
          "countryCode": "BYES",
          "remark": "Address Remark"
        },
        "remark": "Company Remarks"
      },
      "billTo": null,
      "central": null,
      "company": null,
      "countryCode": "MMTD"
    },
	...
  ]
}