API V2.0: Difference between revisions

Jump to navigation Jump to search
Line 311: Line 311:


Get properties matching specified criteria.
Get properties matching specified criteria.
==== Prices ====
To get price setup rules, include the "includePriceRules" parameter in GET /properties like this
/api/v2/properties?includePriceRules=true
A room can have up to 16 prices.
In the control panel, these can be set under Prices -> Daily Price Rules.
In the API these can be accessed through GET and POST /inventory/calendar
  {
    "data": [
      {
        "calendar": [
          {
            "price1": 100,
            "price2": 300,
            "price3": 200,
            ...
          }
        ]
      }
    ]
  }


=== POST /properties ===
=== POST /properties ===