- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
refundPaymentWorkflow - Medusa Core Workflows Reference
This documentation provides a reference to the refundPaymentWorkflow
. It belongs to the @medusajs/medusa/core-flows
package.
This workflow refunds a payment. It's used by the Refund Payment Admin API Route.
You can use this workflow within your own customizations or custom workflows, allowing you to refund a payment in your custom flows.
Source CodeExamples#
Steps#
Workflow Hook
Step conditioned by when
Input#
RefundPaymentWorkflowInput
RefundPaymentWorkflowInputThe data to refund a payment.
RefundPaymentWorkflowInput
RefundPaymentWorkflowInputpayment_id
stringThe ID of the payment to refund.
payment_id
stringcreated_by
stringOptionalThe ID of the user that refunded the payment.
created_by
stringOptionalThe amount to refund. If not provided, the full payment amount will be refunded.
Was this page helpful?