- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
batchShippingOptionRulesWorkflow - Medusa Core Workflows Reference
This documentation provides a reference to the batchShippingOptionRulesWorkflow
. It belongs to the @medusajs/medusa/core-flows
package.
This workflow manages shipping option rules allowing you to create, update, or delete them. It's used by the Manage the Rules of Shipping Option Admin API Route.
You can use this workflow within your own customizations or custom workflows, allowing you to manage shipping option rules within your custom flows.
Source CodeExamples#
Steps#
Workflow Hook
Step conditioned by when
Input#
BatchShippingOptionRulesInput
BatchShippingOptionRulesInputThe data to manage the shipping option rules in bulk.
BatchShippingOptionRulesInput
BatchShippingOptionRulesInputThe shipping option rules to create.
The shipping option rules to update.
delete
string[]OptionalThe IDs of the shipping option rules to delete.
delete
string[]OptionalOutput#
BatchShippingOptionRulesOutput
BatchShippingOptionRulesOutputThe result of managing the shipping option rules in bulk.
BatchShippingOptionRulesOutput
BatchShippingOptionRulesOutputcreated
ShippingOptionRuleDTO[]The shipping option rules that were created.
created
ShippingOptionRuleDTO[]updated
ShippingOptionRuleDTO[]The shipping option rules that were updated.
updated
ShippingOptionRuleDTO[]deleted
string[]The IDs of the shipping option rules that were deleted.
deleted
string[]Was this page helpful?