maybeRefreshShippingMethodsWorkflow - Medusa Core Workflows Reference
This documentation provides a reference to the maybeRefreshShippingMethodsWorkflow
. It belongs to the @medusajs/medusa/core-flows
package.
This workflows refreshes shipping method prices of an order and its changes. It's used in Return Merchandise Authorization (RMA) flows. It's used by other workflows, such as refreshExchangeShippingWorkflow.
You can use this workflow within your customizations or your own custom workflows, allowing you to wrap custom logic around refreshing shipping methods in your custom flows.
Source CodeExamples#
Steps#
Workflow hook
Step conditioned by when
View step details
Input#
MaybeRefreshShippingMethodsWorkflowInput
MaybeRefreshShippingMethodsWorkflowInputThe data to create a shipping method for an order edit.
MaybeRefreshShippingMethodsWorkflowInput
MaybeRefreshShippingMethodsWorkflowInputshipping_method_id
stringThe ID of the shipping method to refresh.
shipping_method_id
stringorder_id
stringThe ID of the order.
order_id
stringaction_id
stringThe ID of the ADD SHIPPING action to update.
action_id
stringcontext
CalculatedRMAShippingContextData to pass for the shipping calculation.
context
CalculatedRMAShippingContextWas this page helpful?