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
Required string length: 1 - 255
code
string
obbligatorio
Required string length: 1 - 50
type
enum<string>
predefinito:percentage
Opzioni disponibili:
percentage,
fixed,
free_shipping
discount
predefinito:0
Intervallo richiesto: x >= 0
min_order_total
predefinito:0
Intervallo richiesto: x >= 0
date_start
string<date> | null
date_end
string<date> | null
uses_total
integer
predefinito:0
Intervallo richiesto: x >= 0
uses_per_customer
integer
predefinito:0
Intervallo richiesto: x >= 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