- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
calculatePrices - Pricing Module Reference
This documentation provides a reference to the calculatePrices
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 calculate prices based on the provided filters and context.
Example#
When you calculate prices, you must at least specify the currency code:
To calculate prices for specific minimum and/or maximum quantity:
To calculate prices for custom rule types:
Parameters#
filters
PricingFiltersThe filters to apply on prices.
filters
PricingFiltersThe context used to select the prices. For example, you can specify the region ID in this context, and only prices having the same value
will be retrieved.
Returns#
Promise
Promise<CalculatedPriceSet[]>The calculated prices matching the context and filters provided.
Promise
Promise<CalculatedPriceSet[]>Was this page helpful?