API Endpoints

Create a promotion code

Creates a new promotionCode object.

Log in to see full request history
Body Params
string
required

The coupon to link this promotion code to.

string

The customer-facing code.

boolean

Whether the promotion code is currently active. Can only be toggled if the promotion code is not violating expiresAt or maxRedemptions.

string

The customer that this promotion code can be used by.

string

The timestamp at which this promotion code will expire.

number

A positive integer specifying the number of times the promotion code can be redeemed.

Response

promotionCode object.

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