retrievePriceRule - Pricing Module Reference
BetaThis documentation provides a reference to the retrievePriceRule method. This belongs to the Pricing Module.
This method is used to retrieve a price rule by its ID.
Example
A simple example that retrieves a price rule by its ID:
To specify relations that should be retrieved:
Parameters
idstringRequiredThe ID of the price rule to retrieve.
configFindConfig<PriceRuleDTO>The configurations determining how the price rule is retrieved. Its properties, such as select or relations, accept the
attributes or relations associated with a price rule.
configFindConfig<PriceRuleDTO>select or relations, accept the
attributes or relations associated with a price rule.Returns
The retrieved price rule.
Was this section helpful?