Skip to main content
PUT
Atualizar um upsell

Authorizations

User-Token
string
header
required
User-Secret-Key
string
header
required

Path Parameters

alias
string
required

Alias da loja

id
integer
required

ID do upsell

Body

application/json
active
boolean
required
Example:

true

name
string
required
Example:

"Combo Protetor + Película"

context
enum<string>
required
Available options:
before,
after,
delayed,
manual
Example:

"before"

suggested_product_id
integer
required
Example:

34025022

resource_type
enum<string>
required
Available options:
always,
product,
category,
brand
Example:

"product"

description
string
Example:

"Aproveite e proteja seu smartphone com esse combo especial"

email_subject
string
Example:

"Não perca essa oferta especial para seu produto!"

sms
string
Example:

"Aproveite 20% OFF no combo protetor + película para seu smartphone! Clique aqui: {link}"

type
enum<string>
Available options:
product
Example:

"product"

discount_type
enum<string>
Available options:
percentage,
fixed
Example:

"percentage"

discount_amount
number<float>
Example:

20

product_price
number<float>
Example:

40

product_quantity
integer
Example:

2

trigger_resource_id
integer[]
Example:

Response

Upsell atualizado com sucesso

data
Upsell de produtos · object[]