Skip to main content
PATCH
Atualizar cupom

Authorizations

Authorization
string
header
required

API Key no formato cvx_live_..., criada no painel Corvex. Não use JWT de sessão nem x-api-key.

Headers

X-Store-Id
string<uuid>
required

UUID da loja. A chave precisa ter esta loja autorizada.

Path Parameters

couponId
string<uuid>
required

UUID do cupom.

Body

application/json
name
string
Required string length: 1 - 120
totalAvailable
integer

0 = ilimitado.

Required range: x >= 0
startAt
string<date-time> | null
endAt
string<date-time> | null
discountType
enum<string>
Available options:
CURRENCY,
PERCENT
amount
number

Valor em reais (CURRENCY) ou percentual (PERCENT).

Required range: x >= 0
singleUsePerCustomer
boolean
automaticApply
boolean

Aplica sozinho no checkout quando as regras batem.

status
enum<string>
Available options:
ACTIVE,
INACTIVE

Response

Sucesso.