Quotes Open Api [Beta]

Create multiple quotes for reservation

This endpoint allows the creation of multiple price quotes for a reservation.

post/quotes/multiple

Request

  • Base URL
    https://open-api.guesty.com/v1
  • URL
    https://open-api.guesty.com/v1/quotes/multiple
  • Auth
    API key in header authorization

Query parameters

mergeAccommodationFarePriceComponentsboolean

If set to true, Markups, ExtraPersonFee, and Discounts are hidden from both the nightly rates and invoice items—they are included within the Accommodation Fee (AF). If set to false, these components are itemized separately in the response.

Request body

Example request

{
  "quotes": [
    {
      "checkInDateLocalized": "2021-01-04",
      "checkOutDateLocalized": "2021-01-05",
      "unitId": "6213b03e7f0ba50032296f4a",
      "unitTypeId": "6213b03e7f0ba50032296f4a",
      "guestsCount": 2,
      "bookerId": "1e384c9fc2700d002670b61c",
      "source": "fb-campaign",
      "count": 2
    }
  ]
}

Response

The quotes have been successfully created

Example response

{
  "results": [
    {
      "_id": "df7hf01cnduhdb2125854dj8",
      "guestsCount": 1,
      "source": "source-fb-for-bi",
      "stay": [
        {
          "checkInDateLocalized": "2021-12-20",
          "checkOutDateLocalized": "2021-12-22",
          "guestsCount": 3,
          "numberOfGuests": {
            "numberOfAdults": 3,
            "numberOfChildren": 0,
            "numberOfInfants": 0
          },
          "unitTypeId": "5e384c9fc2700d002670b61b",
          "unitId": "5e384c9fc2700d002670b61b",
          "ratePlanId": "5e384c9fc2700d002670b61b"
        }
      ],
      "numberOfGuests": {
        "numberOfChildren": 1,
        "numberOfInfants": 1,
        "numberOfPets": 1,
        "numberOfAdults": 1
      }
    }
  ]
}

Changes

No recorded changes to this operation across all 2 revisions of this API.