{
  "opencollection": "1.0.0",
  "info": {
    "name": "Smoobu Apartments Rates and Availability API",
    "version": "1.0"
  },
  "request": {
    "auth": {
      "type": "apikey",
      "key": "Api-Key",
      "value": "{{Api-Key}}",
      "placement": "header"
    }
  },
  "items": [
    {
      "info": {
        "name": "Rates and Availability",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get rates and availability",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://login.smoobu.com/api/rates",
            "params": [
              {
                "name": "start_date",
                "value": "",
                "type": "query"
              },
              {
                "name": "end_date",
                "value": "",
                "type": "query"
              },
              {
                "name": "apartments[]",
                "value": "",
                "type": "query",
                "description": "One or more apartment ids to return rates for."
              }
            ]
          },
          "docs": "Returns daily rate, price, availability, and minimum-length-of-stay data per apartment over a date range."
        },
        {
          "info": {
            "name": "Update rates and availability",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://login.smoobu.com/api/rates",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Pushes rate, price, availability, and restriction updates to Smoobu, which propagates them to connected channels."
        },
        {
          "info": {
            "name": "Check apartment availability",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://login.smoobu.com/booking/checkApartmentAvailability",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Checks which of the given apartments are available for a stay and returns the price. Used by booking flows to quote a reservation before creating it."
        }
      ]
    }
  ],
  "bundled": true
}