Upsells

get
Listar Upsells

https://api.dooki.com/v2/:alias/pricing/upsells
Includes disponíveis: purchased_product, suggested_product, promocode
Request
Response
Request
Path Parameters
alias
required
string
Alias da loja
Headers
Authentication
required
string
Autenticação Bearer
Query Parameters
q
optional
string
Filtro de Upsells pelo nome
Response
200: OK
Cake successfully retrieved.
{
"data": [
{
"id": 5,
"active": true,
"purchased_product_id": 76126,
"suggested_product_id": 84466,
"context": "before",
"product_price": 12.00,
"product_quantity": 2,
"name": "Upsell Teste",
"description": null,
"created_at": {
"date": "2019-10-22 21:57:06",
"timezone_type": 3,
"timezone": "America/Sao_Paulo"
},
"updated_at": {
"date": "2019-10-22 21:57:06",
"timezone_type": 3,
"timezone": "America/Sao_Paulo"
},
}
]
}

post
Novo Upsell

https://api.dooki.com/v2/:alias/pricing/upsells
Includes disponíveis: purchased_product, suggested_product
Request
Response
Request
Path Parameters
alias
required
string
Alias da loja
Headers
Authentication
required
string
Autenticação Bearer
Body Parameters
product_quantity
required
integer
Quantidade do produto oferecido no Upsell
product_price
required
number
Preço do produto oferecido no Upsell
context
required
string
Contexto do Upsell. Valores aceitos: before ou after
description
optional
string
Descrição do Upsell
name
required
string
Nome do Upsell
suggested_product_id
required
integer
ID do produto sugerido
purchased_product_id
required
integer
ID do produto que será comprado
promocode_id
optional
integer
ID do cupom de desconto
active
optional
boolean
Marca se o Upsell está ativo
Response
200: OK
Cake successfully retrieved.
{
"data": [
{
"id": 5,
"active": true,
"product_price": 12.00,
"product_quantity": 2,
"purchased_product_id": 76126,
"suggested_product_id": 84466,
"context": "before",
"name": "Upsell Teste",
"description": null,
"created_at": {
"date": "2019-10-22 21:57:06",
"timezone_type": 3,
"timezone": "America/Sao_Paulo"
},
"updated_at": {
"date": "2019-10-22 21:57:06",
"timezone_type": 3,
"timezone": "America/Sao_Paulo"
},
}
]
}