Loading...
Was this page helpful?
This documentation provides a reference to the calculateShippingOptionsPricesWorkflow
. It belongs to the @medusajs/medusa/core-flows
package.
This workflow calculates the prices for one or more shipping options in a cart. It's used by the Calculate Shipping Option Price Store API Route.
You can use this workflow within your own customizations or custom workflows, allowing you to calculate the prices of shipping options within your custom flows.
Source CodeWorkflow hook
Step conditioned by when
View step details
CalculateShippingOptionsPricesWorkflowInput
CalculateShippingOptionsPricesWorkflowInputcart_id
stringshipping_options
object[]CalculateShippingOptionsPricesWorkflowOutput
CalculateShippingOptionsPricesWorkflowOutputcalculated_amount
numberis_calculated_price_tax_inclusive
boolean