Skip to main content

repricingrules

Overview

Namerepricingrules
TypeResource
Idgoogledevelopers.content.repricingrules

Fields

NameDatatypeDescription
pausedbooleanRepresents whether a rule is paused. A paused rule will behave like a non-paused rule within CRUD operations, with the major difference that a paused rule will not be evaluated and will have no effect on offers.
cogsBasedRuleobjectA repricing rule that changes the sale price based on cost of goods sale.
languageCodestringRequired. Immutable. The two-letter ISO 639-1 language code associated with the repricing rule.
ruleIdstringOutput only. Immutable. The ID to uniquely identify each repricing rule.
countryCodestringRequired. Immutable. CLDR country code (e.g. "US").
effectiveTimePeriodobject
typestringRequired. Immutable. The type of the rule.
merchantIdstringOutput only. Immutable. Merchant that owns the repricing rule.
restrictionobjectDefinition of a rule restriction. At least one of the following needs to be true: (1) use_auto_pricing_min_price is true (2) floor.price_delta exists (3) floor.percentage_delta exists If floor.price_delta and floor.percentage_delta are both set on a rule, the highest value will be chosen by the Repricer. In other words, for a product with a price of $50, if the floor.percentage_delta is "-10" and the floor.price_delta is "-12", the offer price will only be lowered $5 (10% lower than the original offer price).
titlestringThe title for the rule.
eligibleOfferMatcherobjectMatcher that specifies eligible offers. When the USE_FEED_ATTRIBUTE option is selected, only the repricing_rule_id attribute on the product feed is used to specify offer-rule mapping. When the CUSTOM_FILTER option is selected, only the *_matcher fields are used to filter the offers for offer-rule mapping. If the CUSTOM_FILTER option is selected, an offer needs to satisfy each custom filter matcher to be eligible for a rule. Size limit: the sum of the number of entries in all the matchers should not exceed 20. For example, there can be 15 product ids and 5 brands, but not 10 product ids and 11 brands.
statsBasedRuleobjectDefinition of stats based rule.

Methods

NameAccessible byRequired ParamsDescription
getSELECTmerchantId, ruleIdRetrieves a repricing rule from your Merchant Center account.
listSELECTmerchantIdLists the repricing rules in your Merchant Center account.
createINSERTmerchantIdCreates a repricing rule for your Merchant Center account.
deleteDELETEmerchantId, ruleIdDeletes a repricing rule in your Merchant Center account.
patchEXECmerchantId, ruleIdUpdates a repricing rule in your Merchant Center account. All mutable fields will be overwritten in each update request. In each update, you must provide all required mutable fields, or an error will be thrown. If you do not provide an optional field in the update request, if that field currently exists, it will be deleted from the rule.