- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
updateReturnReasonsWorkflow - Medusa Core Workflows Reference
This documentation provides a reference to the updateReturnReasonsWorkflow
. It belongs to the @medusajs/medusa/core-flows
package.
This workflow updates return reasons matching the specified filters. It's used by the Update Return Reason Admin API Route.
You can use this workflow within your customizations or your own custom workflows, allowing you to update return reasons within your custom flows.
Source CodeExamples#
Steps#
Workflow Hook
Step conditioned by when
Input#
UpdateReturnReasonsWorkflowInput
UpdateReturnReasonsWorkflowInputThe data to update return reasons.
UpdateReturnReasonsWorkflowInput
UpdateReturnReasonsWorkflowInputselector
FilterableOrderReturnReasonPropsThe filters to select the return reasons to update.
selector
FilterableOrderReturnReasonPropsupdate
ReturnReasonUpdatableFieldsThe data to update the return reasons.
update
ReturnReasonUpdatableFieldsOutput#
UpdateReturnReasonsWorkflowOutput
UpdateReturnReasonsWorkflowOutputThe updated return reasons.
UpdateReturnReasonsWorkflowOutput
UpdateReturnReasonsWorkflowOutputid
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?