- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
- User Guide
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
- User Guide
retrievePriceRule - Pricing Module Reference
This documentation provides a reference to the retrievePriceRule
method. This belongs to the Pricing Module.
Note: You should only use this methods when implementing complex customizations. For common cases, check out available workflows instead.
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#
id
stringThe ID of the price rule to retrieve.
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.
select
or relations
, accept the
attributes or relations associated with a price rule.Returns#
Promise
Promise<PriceRuleDTO>The retrieved price rule.
Promise
Promise<PriceRuleDTO>Was this page helpful?