- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
createReturnReasonsWorkflow - Medusa Core Workflows Reference
This documentation provides a reference to the createReturnReasonsWorkflow
. It belongs to the @medusajs/medusa/core-flows
package.
This workflow creates one or more return reasons. It's used by the Create Return Reason Admin API Route.
You can use this workflow within your customizations or your own custom workflows, allowing you to create return reasons within your custom flows.
Source CodeExamples#
Steps#
Workflow Hook
Step conditioned by when
Input#
CreateReturnReasonsWorkflowInput
CreateReturnReasonsWorkflowInputThe data to create return reasons.
CreateReturnReasonsWorkflowInput
CreateReturnReasonsWorkflowInputThe return reasons to create.
Output#
CreateReturnReasonsWorkflowOutput
CreateReturnReasonsWorkflowOutputThe created return reasons.
CreateReturnReasonsWorkflowOutput
CreateReturnReasonsWorkflowOutputid
stringThe ID of the return reason
id
stringvalue
stringThe unique value of the return reason
value
stringlabel
stringThe label of the return reason
label
stringmetadata
null | Record<string, unknown>The metadata of the return reason
metadata
null | Record<string, unknown>created_at
string | DateWhen the return reason was created
created_at
string | Dateupdated_at
string | DateWhen the return reason was updated
updated_at
string | Datedescription
stringOptionalThe description of the return reason
description
stringOptionalparent_return_reason_id
stringOptionalThe parent return reason ID
parent_return_reason_id
stringOptionalThe associated order return reason.
The return reason children of the order return reason.
Was this page helpful?