Coupons
Get Coupons
Retrieves the coupons.
Authorization
Authorization
RequiredBearer <token>You can retrieve your API key by visiting your dashboard and clicking Account > API.
In: header
Path Parameters
shopId
RequiredintegerCreate Coupon
Creates a new coupon.
Authorization
Authorization
RequiredBearer <token>You can retrieve your API key by visiting your dashboard and clicking Account > API.
In: header
Request Body
application/json
Requiredcode
Requiredstringglobal
Requiredbooleandiscount
RequirednumberMust be at least 0.
type
Requiredstring"percentage" | "fixed"
max_uses
numberMust not be greater than 999999.
max_uses_per_customer
numberMust not be greater than 999999.
min_invoice_price
numberMust be at least 0. Must not be greater than 999999.
start_date
stringMust be a valid date. Must be a date before 2038-01-19.
expiration_date
stringMust be a valid date. Must be a date after today. Must be a date before 2038-01-19.
allowed_emails
array<string>Must be a valid email address.
disable_if_volume_discount
Requiredbooleanitems
array<integer>This field is required when global is false.
Path Parameters
shopId
RequiredintegerGet Coupon
Retrieves a specific coupon.
Authorization
Authorization
RequiredBearer <token>You can retrieve your API key by visiting your dashboard and clicking Account > API.
In: header
Path Parameters
shopId
RequiredintegercouponId
RequiredstringGet Coupon
Retrieves a specific coupon.
Authorization
Authorization
RequiredBearer <token>You can retrieve your API key by visiting your dashboard and clicking Account > API.
In: header
Path Parameters
shopId
RequiredintegercouponId
RequiredstringDelete Used Coupons
Deletes all used coupons.
Authorization
Authorization
RequiredBearer <token>You can retrieve your API key by visiting your dashboard and clicking Account > API.
In: header
Path Parameters
shopId
RequiredintegerUpdate Coupon
Updates a specific coupon.
Authorization
Authorization
RequiredBearer <token>You can retrieve your API key by visiting your dashboard and clicking Account > API.
In: header
Request Body
application/json
Requiredcode
Requiredstringglobal
Requiredbooleandiscount
RequirednumberMust be at least 0.
type
Requiredstring"percentage" | "fixed"
max_uses
numberMust not be greater than 999999.
max_uses_per_customer
numberMust not be greater than 999999.
min_invoice_price
numberMust be at least 0. Must not be greater than 999999.
start_date
stringMust be a valid date. Must be a date before 2038-01-19.
expiration_date
stringMust be a valid date. Must be a date after today. Must be a date before 2038-01-19.
allowed_emails
array<string>Must be a valid email address.
disable_if_volume_discount
Requiredbooleanitems
array<integer>This field is required when global is false.
Path Parameters
shopId
RequiredintegercouponId
Requiredstring