Skip to main content
PATCH
Update coupon

Authorizations

Authorization
string
header
required

Use your Shoppex API key in the Authorization header.

Path Parameters

id
string
required

Body

code
string
Required string length: 1 - 64
discount_value
number
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
is_active
boolean

Response

Response for status 200

data
object
required