API Endpoints

Create a coupon

Creates a new coupon object.

Log in to see full request history
Body Params
string

Name of the coupon.

number

The amount that will be deducted when the coupon is applied.

string

A non-negative integer representing the decimal unadjusted amount of the currency specified. For example, to charge 5 USDC, use 5_000_000 (5*10^6) since the the decimals of USDC are 6. Note only one of unitAmountOff and amountOff can be specified.

string

The Solana public key in which the discount amount is specified

string

The network that the discount amount is associated with.

string

Specifies if the coupon is forever or one time use.

number

The maximum number of redemptions for the coupon.

number

The percentage that will be deducted when the coupon is applied.

date-time

The date by which the coupon must be redeemed.

number

The onchain collectionId that the coupon is applied to.

Response

coupon object.

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