- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
listShippingOptionsForContextStep - Medusa Core Workflows Reference
This documentation provides a reference to the listShippingOptionsForContextStep
. It belongs to the @medusajs/medusa/core-flows
package.
This step retrieves shipping options that can be used in the specified context, based on the shipping options' rules.
Example#
To retrieve shipping options matching a context:
To retrieve shipping options matching a context with pagination:
Learn more about paginating records and selecting fields in the service factory reference.
Input#
ListShippingOptionsForContextStepInput
ListShippingOptionsForContextStepInputThe data to retrieve the list of shipping options.
ListShippingOptionsForContextStepInput
ListShippingOptionsForContextStepInputcontext
Record<string, unknown>The context of retrieving the shipping options. This context
will be compared against shipping options' rules. The key
of the context is a name of an attribute, and the value is
the attribute's value. Shipping options that have rules
matching this context are retrieved.
context
Record<string, unknown>The fields and relations to select in the returned shipping options,
along with pagination and sorting options.
Learn more in the service factory reference.
Output#
ShippingOptionDTO[]
ShippingOptionDTO[]
ShippingOptionDTO[]
ShippingOptionDTO[]ShippingOptionDTO
ShippingOptionDTOThe shipping option details.
ShippingOptionDTO
ShippingOptionDTOWas this page helpful?