v1
latestOpenAPI 3.0.32026-07-2632131.4 MBQuotes Open Api [Beta]
Add coupons to an existing quote
Add coupons to an existing quote
post/quotes/{quoteId}/coupons
Path parameters
quoteIdstring required
Example:5f92cbf10cf217478ba93561
Quote ID from Guesty
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
{
"coupons": [
"VeryCoolCoupon",
"VeryCoolCoupon2"
]
}Response
The coupons had been successfuly added to the quote
Example response
{
"_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
}
}