Create a Coupon

This API creates coupons that can be used to avail discounts on the invoice.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
enum
required

The duration for which the subscription invoices are discounted from the time a coupon is redeemed or applied.

Allowed:
string
required

Name of the coupon.

int32

A number that represents the amount to be subtracted from an invoice total.

int32

A number that represents the discount that will be applied when a coupon is used.

string

An ID that refers to a coupon when applying to a customer's subscription.

string

Three-letter ISO currency code, in lowercase.

int32

The duration for which the subscription invoices are discounted from the time a coupon is redeemed or applied.

int32

Maximum number of times a coupon can be used on subscriptions.

string

Timestamp specifying the last time at which the coupon can be redeemed. After the 'redeem_by date', the coupon can no longer be applied to new subscriptions.

Headers
string
required
Defaults to application/json

Indicates which content types, expressed as MIME types, the client is able to understand.

string
Defaults to application/json

Indicates the media type of the resource sent in the HTTP message body.

Possible Values:
application/json
application/x-www-form-urlencoded

Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json