Add Promocode
POST {{baseUrl}}/reservations/:reservation_reference/promocode?promo_code=PROMOCODE_123
This API is called to apply promocodes on a reservation.
Promocode Functionality:
- To add a promocode to the Cart / Reservation, add the applicable promocode to the query. The promocode will automatically be added to the Cart and the updated prices will be returned in the response.
- There could be multiple reasons for a promocode to be declined. For example, insufficient cart balance, expired, already used etc. In this case an error
INVALID_PROMOCODE
will be returned with a customer friendly message which can be shown on your front-end.
- There could be multiple reasons for a promocode to be declined. For example, insufficient cart balance, expired, already used etc. In this case an error
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
promo_code | string | (Required) The promocode which should be applied to the cart. |
RESPONSES
status: OK