Set up "Buy X - Get Y" promotions
Add products from category X to receive free products from category Y
POST /api/v3/STOREID/promotions
Host: app.ecwid.com
Content-Type: application/json
Authorization: Bearer secret_token
{
"name": "Free drink for any 3 pizzas",
"discountBase": "ITEM",
"discountType": "PERCENT",
"amount": 100,
"enabled": true,
"triggers": {
"minProductQuantityInCart": 3,
"categories": [862076252]
},
"targets": {
"maxDiscountedProductQuantity": 2,
"categories": [375620372]
}
}Add product X and receive discount on product Y
See also
Last updated
Was this helpful?
