Update a bundle rule
Updates an existing bundle rule’s configuration including products, quantity, discount settings, and tag conditions.
/api/v1/{team_slug}/{app_slug}/bundle-groups/{bundle_group_id}/bundles/{bundle_id}/rules/{rule_id}AuthorizationBearer token · headerrequiredManagement API token, sent as Authorization: Bearer <token>.
app_slugstringrequiredApp slug
team_slugstringrequiredTeam slug
rule_idstringrequiredRule ID
bundle_group_idstringrequiredbundle_idstringrequiredapplication/jsonBundle rule configuration
discount_percentageintegerdiscount_typestringdiscountsinternal_pkg_webserver_v1.BundleGroupDiscount[]Show propertiesHide properties
internal_pkg_webserver_v1.BundleGroupDiscountamount_centsintegercurrency_codestringexclude_discounted_pricebooleanIf products with discounts should be excluded from the bundle
exclude_full_pricebooleanIf products with no discounts should be excluded from the bundle
itemsstring[]requiredEnsure at least one element is present
quantityintegertag_conditionsgithub_com_enadhq_nabbit_internal_pkg_webserver_models.TagConditionsReqShow propertiesHide properties
brandsgithub_com_enadhq_nabbit_internal_pkg_webserver_models.SingleTagConditionReqShow propertiesHide properties
idsstring[]requiredmodegithub_com_enadhq_nabbit_internal_pkg_webserver_models.DiscountTagEntityModerequiredincludeexcludecategoriesgithub_com_enadhq_nabbit_internal_pkg_webserver_models.SingleTagConditionReqShow propertiesHide properties
idsstring[]requiredmodegithub_com_enadhq_nabbit_internal_pkg_webserver_models.DiscountTagEntityModerequiredincludeexcludecollectionsgithub_com_enadhq_nabbit_internal_pkg_webserver_models.SingleTagConditionReqShow propertiesHide properties
idsstring[]requiredmodegithub_com_enadhq_nabbit_internal_pkg_webserver_models.DiscountTagEntityModerequiredincludeexcludeseriesgithub_com_enadhq_nabbit_internal_pkg_webserver_models.SingleTagConditionReqShow propertiesHide properties
idsstring[]requiredmodegithub_com_enadhq_nabbit_internal_pkg_webserver_models.DiscountTagEntityModerequiredincludeexcludetagsgithub_com_enadhq_nabbit_internal_pkg_webserver_models.SingleTagConditionReqShow propertiesHide properties
idsstring[]requiredmodegithub_com_enadhq_nabbit_internal_pkg_webserver_models.DiscountTagEntityModerequiredincludeexcludeBundle rule updated successfully
datagithub_com_enadhq_nabbit_internal_pkg_webserver_models.BundleRulerequiredShow propertiesHide properties
bundle_idstringBundle ID
discount_percentageinteger | nullDiscount percentage [1-100]
discount_typestring | nullDiscount type [fixed, relative]
discountsobject | nullDiscount for bundle. Amount is stored in cents
exclude_discounted_pricebooleanIf products with discounted price should be excluded
exclude_full_pricebooleanIf products with full price should be excluded
idstringID
itemsgithub_com_enadhq_nabbit_internal_pkg_webserver_models.BundleItem[] | nullProducts associated with the bundle rule
Show propertiesHide properties
github_com_enadhq_nabbit_internal_pkg_webserver_models.BundleItemdescriptionstringidstringimage_urlsstring[] | nullproduct_namestringproduct_numberstringslugstringquantityintegerQuantity of products needed to trigger the bundle
tag_conditionsgithub_com_enadhq_nabbit_internal_pkg_webserver_models.TagConditionsRespConditions for discount tags
Show propertiesHide properties
brandsgithub_com_enadhq_nabbit_internal_pkg_webserver_models.SingleTagConditionResp | nullShow propertiesHide properties
modegithub_com_enadhq_nabbit_internal_pkg_webserver_models.DiscountTagEntityModeincludeexcludevaluesgithub_com_enadhq_nabbit_internal_pkg_webserver_models.TagConditionTag[] | nullShow propertiesHide properties
github_com_enadhq_nabbit_internal_pkg_webserver_models.TagConditionTagidstringnamestringnullcategoriesgithub_com_enadhq_nabbit_internal_pkg_webserver_models.SingleTagConditionResp | nullShow propertiesHide properties
github_com_enadhq_nabbit_internal_pkg_webserver_models.SingleTagConditionRespnullcollectionsgithub_com_enadhq_nabbit_internal_pkg_webserver_models.SingleTagConditionResp | nullShow propertiesHide properties
github_com_enadhq_nabbit_internal_pkg_webserver_models.SingleTagConditionRespnullseriesgithub_com_enadhq_nabbit_internal_pkg_webserver_models.SingleTagConditionResp | nullShow propertiesHide properties
github_com_enadhq_nabbit_internal_pkg_webserver_models.SingleTagConditionRespnulltagsgithub_com_enadhq_nabbit_internal_pkg_webserver_models.SingleTagConditionResp | nullShow propertiesHide properties
github_com_enadhq_nabbit_internal_pkg_webserver_models.SingleTagConditionRespnulldetailsstring[]Additional contextual information about the response. Used to provide supplementary details beyond the main data payload, such as validation warnings or processing notes
successbooleanrequiredInvalid request
detailsstring[]messagestringsuccessbooleanrequiredUnauthorized access
detailsstring[]messagestringsuccessbooleanrequiredBundle rule not found
detailsstring[]messagestringsuccessbooleanrequiredInternal server error
detailsstring[]messagestringsuccessbooleanrequired