Create a coupon
Authorizations
Value for the Authorization header parameter.
Body
The code that can be used to apply this coupon or to use it with the api.
The name of this coupon, which will be displayed to the user in the checkout process, customer front, etc.
The type of this coupon.
Possible values:
percentage
: A percentage will be taken off the total plan amount.fixed_amount
: A fixed amount will be taken off the total plan amount. It will never go below 0.
percentage
, fixed_amount
The frequency at which a coupon should be applied.
Possible values:
once
: The coupon will be applied once for the first billing period.limited
: The coupon will be applied for a limited number of billing periods.lifetime
: The coupon will be applied forever.
once
, limited
, lifetime
The percentage this coupon should apply. Required for type percentage
.
0 < x < 100
The fixed amount this coupon should apply. Required for type fixed_amount
.
The number of billing periods the coupon will be applied for. Required for frequency limited
.
The number of times this coupon can be redeemed by a customer. If null, there is no limit.
The number of times this coupon can be redeemed in total. If null, there is no limit.
The date and time this coupon will expire. If null, there is no expiration date.
The plans this coupon should be applied to.
The plans this coupon should not be applied to.
The products this coupon should be applied to.
The products this coupon should not be applied to.
Whether this coupon is enabled or not.
Response
The code that can be used to apply this coupon or to use it with the api.
The name of this coupon, which will be displayed to the user in the checkout process, customer front, etc.
The type of this coupon.
Possible values:
percentage
: A percentage will be taken off the total plan amount.fixed_amount
: A fixed amount will be taken off the total plan amount. It will never go below 0.
percentage
, fixed_amount
The frequency at which a coupon should be applied.
Possible values:
once
: The coupon will be applied once for the first billing period.limited
: The coupon will be applied for a limited number of billing periods.lifetime
: The coupon will be applied forever.
once
, limited
, lifetime
The id of this coupon.
The percentage this coupon should apply. Required for type percentage
.
0 < x < 100
The fixed amount this coupon should apply. Required for type fixed_amount
.
The number of billing periods the coupon will be applied for. Required for frequency limited
.
The number of times this coupon can be redeemed by a customer. If null, there is no limit.
The number of times this coupon can be redeemed in total. If null, there is no limit.
The date and time this coupon will expire. If null, there is no expiration date.
The plans this coupon should be applied to.
The plans this coupon should not be applied to.
The products this coupon should be applied to.
The products this coupon should not be applied to.
Whether this coupon is enabled or not.
The date and time when the resource was created.
The date and time when the resource was last updated.
Has this coupon been redeemed by a customer? If yes, it cannot be edited or deleted anymore.
Was this page helpful?