- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
validatePaymentsRefundStep - Medusa Core Workflows Reference
This documentation provides a reference to the validatePaymentsRefundStep
. It belongs to the @medusajs/medusa/core-flows
package.
This step validates that the refund is valid for the payment. If the payment's refundable amount is less than the amount to be refunded, the step throws an error.
Example#
Input#
ValidatePaymentsRefundStepInput
ValidatePaymentsRefundStepInputThe data to validate whether the refund is valid for the payment.
ValidatePaymentsRefundStepInput
ValidatePaymentsRefundStepInputpayments
PaymentDTO[]The payment details.
payments
PaymentDTO[]The payments to refund.
Was this page helpful?