applies_to field. Additionally, you can now exclude on-sale products using the exclude_on_sale_products flag in both conditions and actions.curl --location 'https://api.zid.sa/v1/managers/store/discounts/bundle-offers/02ed8742-354d-4b44-8f3f-39766081c12e' \
--header 'Authorization: {{Autherization}}' \
--header 'X-Manager-Token: {{Access-Token}}' \
--header 'Accept-Language: en' \
--header 'Currency: SAR'{
"status": "object",
"discount_rule": {
"id": "02ed8742-354d-4b44-8f3f-39766081c12e",
"name": {
"en": null,
"ar": "BuyOne_GetSameFree"
},
"description": {
"ar": null,
"en": null
},
"code": "bundle_offer",
"conditions": [
{
"field": "products_quantity",
"value": 1,
"operator": ">=",
"product_ids": [
"e76df08490ff4f9da738557bad069c64"
],
"categories": null,
"products": []
}
],
"actions": [
{
"type": "percentage",
"field": "products",
"value": 100,
"product_ids": [
"e76df08490ff4f9da738557bad069c64"
],
"products_quantity": 1,
"products": [],
"categories": null
}
],
"conditions_criteria": "all",
"uses_total": null,
"uses_customer": null,
"enabled": false,
"auto_adding": true,
"status_code": "disabled",
"start_date": "2023-11-07",
"end_date": null,
"meta": {
"auto_add_products": true
},
"channel": "catalog",
"channel_name": {
"ar": "المتجر الإلكتروني",
"en": "Store"
}
},
"message": {
"type": "object",
"code": null,
"name": null,
"description": null
}
}