Vai al contenuto principale
PATCH
Update Coupon

Autorizzazioni

Authorization
string
header
obbligatorio

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

Parametri del percorso

coupon_id
string<uuid>
obbligatorio

Corpo

application/json

Partial update. date_start / date_end set to null REMOVE the date (VEN-20: the form now sends null for an emptied field).

name
string | null
Required string length: 1 - 255
code
string | null
Required string length: 1 - 50
type
enum<string> | null
Opzioni disponibili:
percentage,
fixed,
free_shipping
discount
Intervallo richiesto: x >= 0
min_order_total
Intervallo richiesto: x >= 0
date_start
string<date> | null
date_end
string<date> | null
uses_total
integer | null
Intervallo richiesto: x >= 0
uses_per_customer
integer | null
Intervallo richiesto: x >= 0
requires_login
boolean | null
free_shipping
boolean | null
is_active
boolean | null

Risposta

Successful Response

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