---
updatedAt: 2026-09-15T01:45:41.000Z
agentTools:
  projectIndex: https://developer.ezypay.com/llms.txt
---

# Refunds

Ezypay simplifies refund processing by deducting the refund amount from the merchant's wallet and crediting it back to the original payment method. Below is an overview of the types of refunds supported, prerequisites, and best practices.

Ezypay supports the following refund types:

1. Full invoice amount
2. Individual invoice items
3. Partial amount of an invoice
4. Partial amount of individual invoice items

<Callout icon="📘" theme="info">
  * Ezypay will only refund Ezypay fees for **_FULL_**  refunds.
  * Partial refunds or item-specific refunds are not eligible for fee refunds.
</Callout>

# Pre-requisites

## Invoice status

Only invoices with a status of `PAID` or `PARTIALLY_REFUNDED` are eligible for refunds. Ensure the invoice meets this criterion before proceeding.

## Insufficient funds in the merchant's wallet

Refunds will fail if the merchant's wallet has insufficient funds. Retry the refund once the wallet has an adequate balance.

# Get started

Use [Refunds API](https://developer.ezypay.com/reference/refund-an-invoice) to initiate a refund request with Ezypay.

1. Provide the `invoiceId` as the API URL parameters. For full refund, use an empty body, else provide the amount in the request body for a partial refund.
   ```json Full Refund
   {}
   ```
   ```json Partial Refund
   {
       "amount": 10
   }
   ```

2. Set up a webhook to track refund outcomes.
   1. `credit_note_paid` - Refund success.
   2. `credit_note_failed` Refund failed.

<Callout icon="❗️" theme="error">
  Refund is not available for PromptPay and it will return `REFUND_NOT_ALLOWED` error. It must be processed outside the system.
</Callout>

# Best practice

## Beware of invoice status changed

Refund actions update the invoice and credit note statuses. Ensure your system accommodates these changes to maintain accurate tracking.

| Scenario         | Invoice Status                                 | Credit Note Status    | Webhook events triggered |
| :--------------- | :--------------------------------------------- | :-------------------- | :----------------------- |
| Refund initiated | `PAID`>`PROCESSING`                            | N/A >`PROCESSING`     | `credit_note_created`    |
| Refund success   | `PROCESSING`>`REFUNDED` / `PARTIALLY_REFUNDED` | `PROCESSING`>`PAID`   | `credit_note_paid`       |
| Refund fail      | `PROCESSING`>`PAID`                            | `PROCESSING`>`FAILED` | `credit_note_failed`     |

<Callout icon="📘" theme="info">
  Refunds to a bank account may take up to 3 business days to process.
</Callout>