Skip to main content
POST
Create a new discount

Body

application/json
name
string
required
code
string
required
discount_type
enum<string>
required
Available options:
percentage,
fixed
discount_amount
number
required
status
string
max_redemptions
integer
product_ids
string[]
starts_at
string<date-time>
expires_at
string<date-time>

Response

Discount created successfully

data
object