Get rules for a price table

This method will retrieve the rules from a specific Price Table. It will delete all the rules from the requested Price Table and create new rules based on the content of the request

A price table rule is a configuration that allows the user to specify different percentual modifiers for every price in that price table for an specific context.

AttributeTypeDescription
priceTableIdstringPrice Table ID
AttributeTypeDescription
tradePolicyIdstringTrade Policy ID (Price Table ID)
rulesobjectArray of rules to be created for this price table
⮡  idintegerRule Id
   percentualModifierintegerPercentual value of the price variation to be applied
   contextobjectRule Context is a group of filters to be checked at an item level when applying the rule. If all those filters check out, the rule will be applied for that item, unless there is a fixed price for that item
    ⮡   categoriesobjectCategories that an item should have to be eligible for the rule. Format: key: categoryId, value: categoryName
          ⮡   brandsobjectBrands that an item should have to be eligible for the rule. Format: key: brandId, value: brandName
                markupRangeobjectFor an item to be eligible to the rule, it's markup should be in this Markup Range
                ⮡   fromfloatItem markup should be greater than or equal to this value
                      tofloatItem markup should be less than or equal to this value
              dateRangeobjectThe rule will be active during this time range
                ⮡  fromstringFirst date that rule will be active. Date format: RFC3339
                      tostringLast date that the rule will be active. Date format: RFC3339

Response codes

201 - Success

401 - Unauthorized request

403 - The credentials is not enabled to access the service

429 - Too many requests

Language
Authentication
URL
Click Try It! to start a request and see the response here!