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
Available options:
PERCENTAGE
max_uses
default:0
products_bound
string[]
variants_bound
string[]
min_order_amount
number | null
max_discount
number | null
valid_from
valid_until
is_active
boolean

Response

Successful response

data
object
required