Coupons
post/coupons

Request

  • Base URL: https://api.cavuno.com/v1
  • URL: https://api.cavuno.com/v1/coupons
  • Auth: HTTP bearer

Request body

namestring required
percentOffnumber nullable
amountOffnumber nullable

Fixed discount in the currency major unit (e.g. 10 for $10, 1000 for ¥1000). Required with currency when there is no percentOff.

currencystring nullable
duration'once' | 'forever' | 'repeating' required
durationInMonthsinteger
maxRedemptionsinteger
redeemByinteger

Unix ms deadline after which the coupon cannot be redeemed.

appliesToPlanIdsstring[]

Response

Created coupon.

idstring required
object'coupon' required
namestring nullable required
percentOffnumber nullable required
amountOffnumber nullable required
currencystring nullable required
durationstring required
durationInMonthsnumber nullable required
validboolean required
appliesTostring[] nullable required
timesRedeemednumber required
createdstring required

Changes