Skip to main content
PATCH
Atualizar 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.

Path Parameters

upsellId
string<uuid>
required

UUID do upsell.

Body

application/json
name
string

Nome interno.

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.

offerProductId
string<uuid>

Produto oferecido no one-click.

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
title
string

Título no checkout.

Required string length: 3 - 200
description
string | null
Maximum string length: 1000
buttonText
string
Required string length: 3 - 100
active
boolean

Response

Sucesso.