- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
createCompleteReturnValidationStep - Medusa Core Workflows Reference
This documentation provides a reference to the createCompleteReturnValidationStep
. It belongs to the @medusajs/medusa/core-flows
package.
This step validates that a return can be created and completed for an order. If the order is canceled, the items do not exist in the order, the return reasons are invalid, or the refund amount is greater than the order total, the step will throw an error.
Example#
Input#
CreateCompleteReturnValidationStepInput
CreateCompleteReturnValidationStepInputThe data to validate that a return can be created and completed.
CreateCompleteReturnValidationStepInput
CreateCompleteReturnValidationStepInputorder
anyThe order's details.
order
anyThe data to create a return.
Was this page helpful?