Add a promotion
post/lodging/promotions
Add a promotion. The best one that applies is taken off the nights; promotions do not stack.
Before you call
- Credential
Authorization: Bearer $KEY- Scope
bookings:admin- Mcp
rivier_lodging_promotion_create- Sdk
bookings.promotion.create- Cli
bookings promotion create
Request bodyapplication/json, required
- propertyIdstring (uuid)required
- namestringrequiredAt most 120 characters.
- codestring or null
- kindstringrequiredOne of: percent, amount.
- valuenumberrequiredAt most 1000000000.
- bookFromstring or null
- bookTostring or null
- stayFromstring or null
- stayTostring or null
- minNightsinteger or null
- roomTypeIdslist of string (uuid)Default: [].
- ratePlanIdslist of string (uuid)Default: [].
- contentobjectDefault: {}.
Responses
- 201application/jsonSuccess
- 400application/jsonThe request was malformed
- errorstringrequired
- messagestring
- 401application/jsonNo valid credential
- errorstringrequired
- messagestring
- 403application/jsonThe credential lacks the scope, origin or address
- errorstringrequired
- messagestring
- 429application/jsonOver the key's rate limit; see Retry-After
- errorstringrequired
- messagestring