Coupons
Get Coupons
Retrieves the coupons.
Authorization
AuthorizationRequiredBearer <token>You can retrieve your API key by visiting your dashboard and clicking Account > API.
In: header
Path Parameters
shopIdRequiredintegerCreate Coupon
Creates a new coupon.
Authorization
AuthorizationRequiredBearer <token>You can retrieve your API key by visiting your dashboard and clicking Account > API.
In: header
Request Body
application/jsonRequiredcodeRequiredstringglobalRequiredbooleandiscountRequirednumberMust be at least -999999. Must not be greater than 999999.
typeRequiredstring"percentage" | "fixed"max_usesnumberMust not be greater than 999999.
max_uses_per_customernumberMust not be greater than 999999.
min_invoice_pricenumberMust be at least 0. Must not be greater than 999999.
start_datestringMust be a valid date. Must be a date before 2038-01-19.
expiration_datestringMust be a valid date. Must be a date after today. Must be a date before 2038-01-19.
allowed_emailsarray<string>Must be a valid email address.
disable_if_volume_discountRequiredbooleanitemsarray<object>This field is required when global is false.
Path Parameters
shopIdRequiredintegerGet Coupon
Retrieves a specific coupon.
Authorization
AuthorizationRequiredBearer <token>You can retrieve your API key by visiting your dashboard and clicking Account > API.
In: header
Path Parameters
shopIdRequiredintegercouponIdRequiredstringGet Coupon
Retrieves a specific coupon.
Authorization
AuthorizationRequiredBearer <token>You can retrieve your API key by visiting your dashboard and clicking Account > API.
In: header
Path Parameters
shopIdRequiredintegercouponIdRequiredstringDelete Used Coupons
Deletes all used coupons.
Authorization
AuthorizationRequiredBearer <token>You can retrieve your API key by visiting your dashboard and clicking Account > API.
In: header
Path Parameters
shopIdRequiredintegerUpdate Coupon
Updates a specific coupon.
Authorization
AuthorizationRequiredBearer <token>You can retrieve your API key by visiting your dashboard and clicking Account > API.
In: header
Request Body
application/jsonRequiredcodeRequiredstringglobalRequiredbooleandiscountRequirednumberMust be at least -999999. Must not be greater than 999999.
typeRequiredstring"percentage" | "fixed"max_usesnumberMust not be greater than 999999.
max_uses_per_customernumberMust not be greater than 999999.
min_invoice_pricenumberMust be at least 0. Must not be greater than 999999.
start_datestringMust be a valid date. Must be a date before 2038-01-19.
expiration_datestringMust be a valid date. Must be a date after today. Must be a date before 2038-01-19.
allowed_emailsarray<string>Must be a valid email address.
disable_if_volume_discountRequiredbooleanitemsarray<object>This field is required when global is false.
Path Parameters
shopIdRequiredintegercouponIdRequiredstring