- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
refundPaymentsWorkflow - Medusa Core Workflows Reference
This documentation provides a reference to the refundPaymentsWorkflow
. It belongs to the @medusajs/medusa/core-flows
package.
This workflow refunds payments.
You can use this workflow within your customizations or your own custom workflows, allowing you to refund payments in your custom flow.
Source CodeExamples#
Steps#
Workflow Hook
Step conditioned by when
Input#
RefundPaymentsWorkflowInput
RefundPaymentsWorkflowInputThe data to refund a payment.
RefundPaymentsWorkflowInput
RefundPaymentsWorkflowInputpayment_id
stringThe ID of the payment to refund.
payment_id
stringamount
BigNumberInputThe amount to refund. Must be less than the refundable amount of the payment.
amount
BigNumberInputcreated_by
stringOptionalThe ID of the user that's refunding the payment.
created_by
stringOptionalOutput#
PaymentDTO[]
PaymentDTO[]
PaymentDTO[]
PaymentDTO[]PaymentDTO
PaymentDTO
PaymentDTO
PaymentDTOWas this page helpful?