- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
listShippingOptionsForCartWorkflow - Medusa Core Workflows Reference
This documentation provides a reference to the listShippingOptionsForCartWorkflow
. It belongs to the @medusajs/medusa/core-flows
package.
This workflow lists the shipping options of a cart. It's executed by the List Shipping Options Store API Route.
Note: This workflow doesn't retrieve the calculated prices of the shipping options. If you need to retrieve the prices of the shipping options,
use the listShippingOptionsForCartWithPricingWorkflow workflow.
You can use this workflow within your own customizations or custom workflows, allowing you to wrap custom logic around to retrieve the shipping options of a cart in your custom flows.
Source CodeExamples#
Steps#
Workflow Hook
Step conditioned by when
Input#
ListShippingOptionsForCartWorkflowInput
ListShippingOptionsForCartWorkflowInputThe context for retrieving the shipping options.
ListShippingOptionsForCartWorkflowInput
ListShippingOptionsForCartWorkflowInputcart_id
stringThe cart's ID.
cart_id
stringoption_ids
string[]OptionalSpecify the shipping options to retrieve their details.
If not specified, all applicable shipping options are retrieved.
option_ids
string[]Optionalis_return
booleanOptionalWhether to retrieve return shipping options.
By default, non-return shipping options are retrieved.Default: false
is_return
booleanOptionalfalse
enabled_in_store
booleanOptionalWhether to retrieve the shipping option's enabled in the store, which is the default.Default: true
enabled_in_store
booleanOptionaltrue
Was this page helpful?