> ## Documentation Index
> Fetch the complete documentation index at: https://razorpay-881012b3.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Refund Payments made to a Customer Identifier

> Learn about the Refund API that enables you to refund payments made into a Customer Identifier.

<div style={{display:"flex",flexWrap:"wrap",alignItems:"center",gap:"0.35rem 0.9rem",border:"1px solid rgba(128,128,128,0.28)",borderRadius:"0.5rem",padding:"0.45rem 0.75rem",margin:"0 0 1.25rem",fontSize:"0.875rem"}}>
  <span style={{fontWeight:600}}>Available in</span>
  <span>🇮🇳 India</span>
</div>

You can process refunds for a payment made towards a Customer Identifier. The following endpoint refunds a payment using the payment ID.

`POST /payments/:id/refund`

## Path Parameter

`id` *mandatory*
: `string` The unique identifier of the payment to be refunded.

<CodeGroup>
  ```bash Request theme={null}
  curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \
  -X POST https://api.razorpay.com/v1/payments/pay_E54n391WnEAV9H/refund \
  -H "Content-Type: application/json" \
  -d '{
    "amount": 100,
    "notes": {
      "key_1": "value1",
      "key_2": "value2"
    }
  }'
  ```

  ```json Response theme={null}
  {
    "id": "rfnd_E6j36ZEKvsWsEn",
    "entity": "refund",
    "amount": 100,
    "currency": "INR",
    "payment_id": "pay_E54n391WnEAV9H",
    "notes": {
      "key_1": "value1",
      "key_2": "value2"
    },
    "receipt": null,
    "acquirer_data": {
      "rrn": null
    },
    "created_at": 1579522301
  }
  ```
</CodeGroup>

## Request Parameters

`amount` *optional*
: `string` Amount to be refunded. If no value is passed, a full refund is issued.

`notes` *optional*
: `json object` Array of notes fields. You can enter custom data in key-value pairs. Refer the [Notes section of the API Reference](/docs/api/understand#notes) documentation to learn more.

## Response Parameters

`id`
: `string` The unique identifier of the refund.

`amount`
: `integer` The amount that is refunded to the customer.

`currency`
: `string` The currency in which the payment is made. We support [international currencies](/docs/payments/international-payments#supported-currencies).

`payment_id`
: `string` The unique identifier of the payment.

`notes`
: `json object` Array of notes fields. You can enter custom data in key-value pairs.

`created_at`
: `integer` UNIX Timestamp that indicates when the refund was processed.

Refer [Refunds API](/docs/api/refunds) to perform other refund-related operations:

* Fetch a particular refund or a list of refunds for a payment ID.
* Update a refund to modify the Notes field.
