Update a price relay source rule
/api/v1/{team_slug}/{app_slug}/price-relay-source-rules/{rule_id}AuthorizationBearer token · headerrequiredManagement API token, sent as Authorization: Bearer <token>.
app_slugstringrequiredApp slug
team_slugstringrequiredTeam slug
rule_idstringrequiredSource rule ID
application/jsonsource rule details
activebooleanfiltersinternal_pkg_webserver_v1.InputPriceRelayFiltersShow propertiesHide properties
brand_idsstring[]category_idsstring[]collection_idsstring[]tag_idsstring[]force_on_salebooleanOverrides the target's on-sale flag with this value; when omitted the flag is left to relay_on_sale_store_group and the target's own state.
market_slugstringrequirednamestringrequiredpercentage_of_sourceintegerpercentage_of_source_decimalsintegerrelay_on_sale_store_group_slugstringWhen set, the target inherits its on-sale flag and sale window from this store group's price; omit to leave the target's own. Must be one of store_groups.
relay_status_store_group_slugstringrequiredThe target inherits its status from this store group's price; falls back to the target's own status, or the source status when the target has no price yet. Must be one of store_groups.
roundinginternal_pkg_webserver_v1.InputPriceRelayRoundingShow propertiesHide properties
round_downbooleanround_upbooleantargetsstring[]store_groupsinternal_pkg_webserver_v1.InputPriceRelaySourceStoreGroup[]requiredThe store groups whose prices are summed into the relayed price.
Show propertiesHide properties
internal_pkg_webserver_v1.InputPriceRelaySourceStoreGroupamount_fromstringThe source price field summed into the target's amount_cents_with_tax: 'amount' (the default), 'sale_price' or 'reference_price'.
sale_price_fromstringThe source price field summed into the target's sale_price_with_tax: 'amount', 'sale_price' or 'reference_price'. Omit to contribute this store group's amount to the summed sale price.
store_group_slugstringrequiredtax_country_codestringsource rule updated
datagithub_com_enadhq_nabbit_internal_pkg_webserver_models.PriceRelaySourceRulerequiredShow propertiesHide properties
activebooleanapp_idstringcreated_atstringfiltersgithub_com_enadhq_nabbit_internal_pkg_webserver_models.PriceRelayFiltersShow propertiesHide properties
brand_idsstring[] | nullcategory_idsstring[] | nullcollection_idsstring[] | nulltag_idsstring[] | nullforce_on_saleboolean | nullOverrides the target's on-sale flag with this value; when omitted the flag is left to relay_on_sale_store_group and the target's own state.
idstringmarketstringmarket_slugstringnamestringpercentage_of_sourceinteger | nullpercentage_of_source_decimalsinteger | nullrelay_on_sale_store_groupstring | nullWhen set, the target inherits its on-sale flag and sale window from this store group's price; null leaves the target's own. Must be one of store_groups.
relay_status_store_groupstringThe target inherits its status from this store group's price; falls back to the target's own status, or the source status when the target has no price yet. Must be one of store_groups.
roundinggithub_com_enadhq_nabbit_internal_pkg_webserver_models.PriceRelayRoundingShow propertiesHide properties
round_downbooleanround_upbooleantargetsstring[] | nullstore_groupsgithub_com_enadhq_nabbit_internal_pkg_webserver_models.PriceRelaySourceStoreGroup[] | nullThe store groups whose prices are summed into the relayed price.
Show propertiesHide properties
github_com_enadhq_nabbit_internal_pkg_webserver_models.PriceRelaySourceStoreGroupamount_fromstringThe source price field summed into the target's amount_cents_with_tax: 'amount' (the default), 'sale_price' or 'reference_price'.
sale_price_fromstring | nullThe source price field that feeds the target's sale_price_with_tax: 'amount', 'sale_price' or 'reference_price'. Null contributes this store group's amount to the summed sale price.
store_groupstringstore_group_slugstringtax_country_codestring | nullupdated_atstringdetailsstring[]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[]messagestringsuccessbooleanrequiredNot found
detailsstring[]messagestringsuccessbooleanrequiredInternal server error
detailsstring[]messagestringsuccessbooleanrequired