---
updatedAt: 2026-10-25T14:35:33.000Z
agentTools:
  projectIndex: https://booking-api-docs.guesty.com/llms.txt
---

# Update coupon in a quote

Ability to add/remove a coupon from existing quote.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "paths": {
    "/api/reservations/quotes/{quoteId}/coupons": {
      "post": {
        "operationId": "manageRatePlanQuoteCoupons",
        "summary": "Update coupon in a quote",
        "description": "Ability to add/remove a coupon from existing quote.",
        "parameters": [
          {
            "name": "quoteId",
            "required": true,
            "in": "path",
            "description": "ID of quote",
            "schema": {
              "example": "5d6e7a7ebf8e3800207735ae",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "coupons": {
                    "example": [
                      "coupon-1",
                      "coupon-3"
                    ],
                    "description": "it will set quote coupons to coupon-1 and coupon-2 and if the quote had another ones the request will remove them",
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "successful operation",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "_id": {
                      "type": "string",
                      "description": "This is a quote id for creating instant/inquiry reservation"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "description": "The quote was created at"
                    },
                    "expiresAt": {
                      "type": "string",
                      "format": "date-time",
                      "description": "The quote will be expired at"
                    },
                    "promotions": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string"
                        },
                        "type": {
                          "type": "string"
                        },
                        "description": {
                          "type": "string"
                        },
                        "adjustment": {
                          "type": "integer"
                        }
                      }
                    },
                    "coupons": {
                      "description": "List of coupons applied for the reservation quote",
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string"
                          },
                          "type": {
                            "type": "string",
                            "enum": [
                              "percentage"
                            ]
                          },
                          "code": {
                            "type": "string"
                          },
                          "adjustment": {
                            "type": "integer"
                          }
                        }
                      }
                    },
                    "rates": {
                      "type": "object",
                      "properties": {
                        "ratePlans": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "ratePlan": {
                                "type": "object",
                                "properties": {
                                  "_id": {
                                    "type": "string"
                                  },
                                  "name": {
                                    "type": "string"
                                  },
                                  "type": {
                                    "type": "string"
                                  },
                                  "mealPlans": {
                                    "type": "array",
                                    "items": {
                                      "type": "string"
                                    }
                                  },
                                  "cancellationPolicy": {
                                    "type": "array",
                                    "items": {
                                      "type": "string"
                                    }
                                  },
                                  "cancellationFee": {
                                    "type": "string"
                                  },
                                  "priceAdjustment": {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string"
                                      },
                                      "direction": {
                                        "type": "string"
                                      },
                                      "amount": {
                                        "type": "number"
                                      }
                                    }
                                  },
                                  "days": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "date": {
                                          "type": "string",
                                          "format": "date"
                                        },
                                        "price": {
                                          "type": "integer"
                                        },
                                        "currency": {
                                          "type": "string"
                                        },
                                        "basePrice": {
                                          "type": "integer"
                                        },
                                        "rateStrategy": {
                                          "type": "integer"
                                        },
                                        "ratePlan": {
                                          "type": "integer"
                                        },
                                        "lengthOfStay": {
                                          "type": "integer"
                                        }
                                      }
                                    }
                                  },
                                  "money": {
                                    "type": "object",
                                    "properties": {
                                      "invoiceItems": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "title": {
                                              "type": "string"
                                            },
                                            "amount": {
                                              "type": "number"
                                            },
                                            "currency": {
                                              "type": "string",
                                              "enum": [
                                                "USD",
                                                "EUR",
                                                "AUD",
                                                "CAD",
                                                "JPY",
                                                "ILS",
                                                "GBP",
                                                "HKD",
                                                "NOK",
                                                "CZK",
                                                "BRL",
                                                "CHF",
                                                "THB",
                                                "ZAR",
                                                "MYR",
                                                "KRW",
                                                "IDR",
                                                "PHP",
                                                "INR",
                                                "NZD",
                                                "TWD",
                                                "PLN",
                                                "SGD",
                                                "TRY",
                                                "SEK",
                                                "VND",
                                                "ARS",
                                                "CNY",
                                                "DKK",
                                                "MXN"
                                              ]
                                            },
                                            "type": {
                                              "type": "string"
                                            },
                                            "normalType": {
                                              "type": "string"
                                            },
                                            "description": {
                                              "type": "string"
                                            },
                                            "includedTaxesList": {
                                              "description": "List of taxes included in this invoice item. This field shows the included taxes that apply on the invoice item and is relevant only for users with inclusive taxes enabled.",
                                              "type": "array",
                                              "items": {
                                                "type": "object",
                                                "properties": {
                                                  "type": {
                                                    "type": "string",
                                                    "description": "Tax type identifier"
                                                  },
                                                  "normalType": {
                                                    "type": "string",
                                                    "description": "normalType of the tax"
                                                  },
                                                  "title": {
                                                    "type": "string",
                                                    "description": "tax name"
                                                  }
                                                }
                                              }
                                            }
                                          }
                                        }
                                      },
                                      "_id": {
                                        "type": "string"
                                      },
                                      "fareAccommodationAdjusted": {
                                        "type": "number"
                                      },
                                      "currency": {
                                        "type": "string",
                                        "enum": [
                                          "USD",
                                          "EUR",
                                          "AUD",
                                          "CAD",
                                          "JPY",
                                          "ILS",
                                          "GBP",
                                          "HKD",
                                          "NOK",
                                          "CZK",
                                          "BRL",
                                          "CHF",
                                          "THB",
                                          "ZAR",
                                          "MYR",
                                          "KRW",
                                          "IDR",
                                          "PHP",
                                          "INR",
                                          "NZD",
                                          "TWD",
                                          "PLN",
                                          "SGD",
                                          "TRY",
                                          "SEK",
                                          "VND",
                                          "ARS",
                                          "CNY",
                                          "DKK",
                                          "MXN"
                                        ]
                                      },
                                      "fareAccommodation": {
                                        "type": "number"
                                      },
                                      "fareCleaning": {
                                        "type": "number"
                                      },
                                      "totalFees": {
                                        "type": "number"
                                      },
                                      "subTotalPrice": {
                                        "type": "number"
                                      },
                                      "hostPayout": {
                                        "type": "number"
                                      },
                                      "hostPayoutUsd": {
                                        "type": "number"
                                      },
                                      "totalTaxes": {
                                        "type": "number"
                                      }
                                    }
                                  }
                                }
                              },
                              "inquiryId": {
                                "type": "string",
                                "description": "Per-rate-plan financial quote identifier. Use this value as the inquiryId path parameter in the Retrieve Upsell endpoint."
                              }
                            }
                          }
                        }
                      }
                    },
                    "guestId": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "_id",
                    "createdAt",
                    "expiresAt",
                    "promotions",
                    "coupons",
                    "rates"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Bad request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "data": {
                          "type": "object",
                          "properties": {
                            "requestId": {
                              "type": "string"
                            },
                            "moreDetails": {
                              "type": "object"
                            }
                          },
                          "required": [
                            "requestId"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "data"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Not authorized",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "data": {
                          "type": "object",
                          "properties": {
                            "requestId": {
                              "type": "string"
                            },
                            "moreDetails": {
                              "type": "object"
                            }
                          },
                          "required": [
                            "requestId"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "data"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "data": {
                          "type": "object",
                          "properties": {
                            "requestId": {
                              "type": "string"
                            },
                            "moreDetails": {
                              "type": "object"
                            }
                          },
                          "required": [
                            "requestId"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "data"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "data": {
                          "type": "object",
                          "properties": {
                            "requestId": {
                              "type": "string"
                            },
                            "moreDetails": {
                              "type": "object"
                            }
                          },
                          "required": [
                            "requestId"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "data"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "tags": [
          "Reservation quote"
        ]
      }
    }
  },
  "info": {
    "title": "Booking Engine API",
    "description": "Booking Engine API",
    "version": "1.0",
    "contact": {}
  },
  "servers": [
    {
      "url": "https://booking.guesty.com/"
    }
  ],
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "authorization"
      }
    }
  },
  "security": [
    {
      "bearerAuth": []
    }
  ]
}
```