Promoções - Upsells
Atualizar um upsell
Changed onAtualizar um upsell
put/{alias}/pricing/upsells/{id}
Request
- Base URLhttps://api.dooki.com.br/v2
- URLhttps://api.dooki.com.br/v2/{alias}/pricing/upsells/{id}
- AuthAPI key in header User-Token and API key in header User-Secret-Key
Path parameters
aliasstring required
Alias da loja
idinteger required
ID do upsell
Request body
Example request
{
"active": true,
"name": "Combo Protetor + Película",
"description": "Aproveite e proteja seu smartphone com esse combo especial",
"email_subject": "Não perca essa oferta especial para seu produto!",
"sms": "Aproveite 20% OFF no combo protetor + película para seu smartphone! Clique aqui: {link}",
"type": "product",
"context": "before",
"discount_type": "percentage",
"discount_amount": 20,
"product_price": 40,
"product_quantity": 2,
"suggested_product_id": 34025022,
"resource_type": "PRODUCT",
"trigger_resource_id": [
42,
51
]
}Response
Upsell atualizado com sucesso
Changes
- breaking
the request property
became required - breaking
the request property
became required - breaking
removed the enum value
alwaysof the request property - breaking
removed the enum value
brandof the request property - breaking
removed the enum value
categoryof the request property - breaking
removed the enum value
productof the request property - info
added the new
ALWAYSenum value to the request property - info
added the new
BRANDenum value to the request property - info
added the new
CATEGORYenum value to the request property - info
added the new
PRODUCTenum value to the request property
- breaking