- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
updateRefundReasonsStep - Medusa Core Workflows Reference
This documentation provides a reference to the updateRefundReasonsStep
. It belongs to the @medusajs/medusa/core-flows
package.
This step updates one or more refund reasons.
1import { createWorkflow } from "@medusajs/framework/workflows-sdk"2import { updateRefundReasonsStep } from "@medusajs/medusa/core-flows"3 4const myWorkflow = createWorkflow(5 "my-workflow",6 () => {7 const data = updateRefundReasonsStep({8 "id": "id_HTiKaoXDPM18hkdrnAwq"9 })10 }11)
Input#
UpdateRefundReasonStepInput
UpdateRefundReasonStepInputThe refund reasons to update.
UpdateRefundReasonStepInput
UpdateRefundReasonStepInputid
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#
RefundReasonDTO[]
RefundReasonDTO[]
RefundReasonDTO[]
RefundReasonDTO[]RefundReasonDTO
RefundReasonDTO
RefundReasonDTO
RefundReasonDTOWas this page helpful?