- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
cancelReturnWorkflow - Medusa Core Workflows Reference
This documentation provides a reference to the cancelReturnWorkflow
. It belongs to the @medusajs/medusa/core-flows
package.
This workflow cancels a return. It's used by the Cancel Return Admin API Route.
You can use this workflow within your customizations or your own custom workflows, allowing you to cancel a return in your custom flow.
Source CodeExamples#
Steps#
Workflow Hook
Step conditioned by when
Input#
CancelReturnWorkflowInput
CancelReturnWorkflowInput
CancelReturnWorkflowInput
CancelReturnWorkflowInputreturn_id
stringThe ID of the return to cancel.
return_id
stringno_notification
booleanOptionalWhether to notify the customer of the return cancellation.
no_notification
booleanOptionalcanceled_by
stringOptionalThe ID of the user that's canceling the return.
canceled_by
stringOptionalWas this page helpful?