Vai al contenuto principale
POST
Create Coupon

Autorizzazioni

Authorization
string
header
obbligatorio

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Corpo

application/json
name
string
obbligatorio
code
string
obbligatorio
type
string
predefinito:percentage
discount
predefinito:0
min_order_total
predefinito:0
date_start
string<date> | null
date_end
string<date> | null
uses_total
integer
predefinito:0
uses_per_customer
integer
predefinito:0
requires_login
boolean
predefinito:false
free_shipping
boolean
predefinito:false
is_active
boolean
predefinito:true

Risposta

Successful Response

data
CouponOut · object | null
meta
PaginationMeta · object | null
error
string | null
error_code
string | null