Skip to main content
POST
Criar upsell

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.

Body

application/json
name
string
required

Nome interno.

Required string length: 3 - 200
offerProductId
string<uuid>
required

Produto oferecido no one-click.

title
string
required

Título no checkout.

Required string length: 3 - 200
triggerAnyProduct
boolean

true = dispara após qualquer produto. false usa triggerProductIds.

triggerProductIds
string<uuid>[]

Produtos que disparam o upsell. Vazio se triggerAnyProduct é true.

offerVariantId
string<uuid> | null

Variante específica. null = produto sem variante.

price
number | null

Preço da oferta. null se usar só desconto.

Required range: x >= 0
discountPercent
number | null

Desconto percentual. null se não usar.

Required range: 0 <= x <= 100
discountAmount
number | null

Desconto em reais. null se não usar.

Required range: x >= 0
description
string | null
Maximum string length: 1000
buttonText
string
Required string length: 3 - 100
active
boolean

Response

Criado.