Versions Compared

Key

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

Operation

Returns the prices in availability of a Rate for every date selected in rangeReference Rate configured in Property Preferences.

Rw ui textbox macro
typewarning

Only accessible with permission of pms.integration.profilerate


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}/rate/referenceRate



Request

PropertyTypeRequiredType parameterDefault valueDescription
chainIdIntegertruepath parameter

propertyIdIntegertruepath parameter

rateIdproductIdIntegertruefalsepath request parameter

productIdadultIntegerfalserequest parameter

adultjuniorIntegerfalserequest parameter

juniorchildIntegerfalserequest parameter

childinfantIntegerfalserequest parameter

infantoffsetLocalDatefalserequest parameter

limitIntegerfalserequest parameter10


Example request

Code Block
languagepowershell
themeDJango
GET https://publicapi-providers.ulysescloud.com:9797/public/api/v1/con/chain/1/property/2/rate/referenceRate?offset=2023-08-01&limit=25



Response

Insert excerpt
RateReferencePropertyProductAvailability
RateReferencePropertyProductAvailability
nopaneltrue

Example response

Code Block
themeDJango
[
  {
    "chainProductId": 47,
    "chainProductCode": "SGL",
    "productName": "Single",
    "productId": 692,
    "productOccupancySet": [
      {
        "id": 1,
        "product": {
          "id": 692,
          "chainProductId": 47,
          "code": "SGL",
          "name": "Single",
          "nameI18n": "Single",
          "productType": {
            "id": 1,
            "code": "ACC",
            "name": "Accommodation",
            "nameI18n": "Accommodation"
          }
        },
        "adult": 1,
        "junior": 0,
        "child": 0,
        "infant": 0,
        "rateProductOccupancySet": [
          {
            "id": 1,
            "rateId": 2,
            "productOccupancyId": 1,
            "rateProductOccupancyAvailabilitySet": [
              {
                "id": 920,
                "rateProductOccupancyId": 1,
                "date": "2023-01-01",
                "amountAfterTax": 193,
                "closed": false,
                "minStay": 0,
                "maxStay": 0,
                "closedToArrival": false,
                "closedToDeparture": false,
                "percentDiscount": null,
                "amountDiscount": null
              }
            ]
          }
        ]
      }
    ]
  }
]