Skip to main content
POST
Create discount

Autorizações

Authorization
string
header
obrigatório

Send an API key or an OAuth access token in the Authorization header as a Bearer token. See Authentication for details.

Corpo

application/json
code
string
obrigatório
Exemplo:

"BEMVINDO10"

type
string
obrigatório

fixed|amount|percent|percentage|percentual|%

Exemplo:

"percent"

value
number
obrigatório
Intervalo necessário: x >= 0.01
Exemplo:

10

product_ids
(integer | string)[]
uses_limit
integer | null
Intervalo necessário: x >= 1
single_use
boolean
expires_at
string<date-time> | null
never_expires
boolean
status
enum<string> | null
Opções disponíveis:
active,
inactive,
enabled,
disabled,
published,
unpublished

Resposta

Discount created

The response is of type object.