Skip to main content
POST
Create coupon

Authorizations

Authorization
string
header
required

Use your Shoppex API key in the Authorization header.

Body

code
string
required
Required string length: 1 - 64
discount_value
number
required
Required range: x >= 1e-9
discount_type
enum<string>
Available options:
PERCENTAGE,
FIXED
max_uses
integer | null
first_order_only
boolean
products_bound
string[]
variants_bound
string[]
min_order_amount
number | null
max_discount
number | null
valid_from
valid_until

Response

Response for status 201

data
object
required