Create coupon
POST
/
offer
/
coupons
Authorizations
Authorization
string
headerrequiredBearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
name
string
requiredcoupon_code
string[]
requiredcoupon_type
enum<string>
requiredAvailable options:
discount
, free-goods
, fixed-price
, free-shipping
, buy-x-get-y
, volume-based
, accelerated-rewards
details
object
requiredstatus
enum<string>
requiredthis key is ignored in create coupon api and draft status will be added by default. required in update coupon api only.
Available options:
draft
, live
, stopped
, expired
customer_eligibility
enum<string>
requiredAvailable options:
all
, customer
, segment
starts_at
string
requireddescription
string
tags
string[] | null
customer_id
string[]
required if customer_eligibility = custo
segment_id
string[]
required if customer_eligibility = segment
applies_to_product
enum<string>
Available options:
all
, product
, category
has_redemption_limit
boolean
default: falseredemption_limit
integer
default: 0require_minimum_order_total
boolean
default: falseminimum_order_total
integer
default: 0for_first_time_customer_only
boolean
default: falsecan_be_used_with_promotion
boolean
default: falseexpires_at
string | null
Response
200 - application/json
message
string
success
string
content
object