- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
updateRefundReasonsWorkflow - Medusa Core Workflows Reference
This documentation provides a reference to the updateRefundReasonsWorkflow
. It belongs to the @medusajs/medusa/core-flows
package.
This workflow updates one or more refund reasons. It's used by the Update Refund Reason Admin API Route.
You can use this workflow within your own customizations or custom workflows, allowing you to update refund reasons in your custom flows.
Source CodeExamples#
Steps#
Workflow Hook
Step conditioned by when
Input#
UpdateRefundReasonsWorkflowInput
UpdateRefundReasonsWorkflowInputThe refund reasons to update.
UpdateRefundReasonsWorkflowInput
UpdateRefundReasonsWorkflowInputid
stringThe id of the refund reason
id
stringlabel
stringOptionalThe label of the refund reason
label
stringOptionaldescription
null | stringOptionalThe description of the refund reason
description
null | stringOptionalmetadata
null | Record<string, unknown>OptionalThe metadata of the refund reason
metadata
null | Record<string, unknown>OptionalOutput#
UpdateRefundReasonsWorkflowOutput
UpdateRefundReasonsWorkflowOutputThe updated refund reasons.
UpdateRefundReasonsWorkflowOutput
UpdateRefundReasonsWorkflowOutputid
stringThe ID of the refund reason
id
stringlabel
stringThe label of the refund reason
label
stringmetadata
null | Record<string, unknown>The metadata of the refund reason
metadata
null | Record<string, unknown>created_at
string | DateWhen the refund reason was created
created_at
string | Dateupdated_at
string | DateWhen the refund reason was updated
updated_at
string | Datedescription
null | stringOptionalThe description of the refund reason
description
null | stringOptionalWas this page helpful?