> ## Documentation Index
> Fetch the complete documentation index at: https://razorpay-60c89f9a-mintlify-audit-missing-sections-1778528421.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Fetch Payments Made Using UPI Payment Method

> **GET** `/v1/payments/:id/upi_transfer`

Use this endpoint to retrieve details of payments made using the UPI payment method.

### Request

````cURL: Curl theme={null}
curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \
-X GET \
https://api.razorpay.com/v1/payments/pay_E5YETrWuVgP3fI/upi_transfer \

```java: Java
RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]");

String paymentId = "pay_CmiztqmYJPtDAu";

Payment payment = instance.payments.fetchupiTransfers(paymentId)

```php: PHP
$api = new Api($key_id, $secret);

$api->payment->fetch($virtualId)->upiTransfer();

```python: Python
import razorpay
client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET"))

client.payment.upi_transfer(paymentId)

```javascript: Node.js
var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' })

instance.payments.upiTransfer(paymentId)

```go: Go
import ( razorpay "github.com/razorpay/razorpay-go" )
client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET")

body, err := client.Payment.upiTransfer("", nil, nil)

```ruby: Ruby
require "razorpay"
Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET')

paymend_id = "pay_Di5iqCqA1WEHq6"

Razorpay::Razorpay::Payment.fetch(paymend_id).upiTransfer
````

### Response

```json: Success theme={null}
{
  "id": "ut_E5YEUKb9yA0YvX",
  "entity": "upi_transfer",
  "amount": 100,
  "payer_vpa": "gauravkumar@exampleupi",
  "payer_bank": "HDFC BANK LTD",
  "payer_account": "50100000000001",
  "payer_ifsc": "HDFC0000004",
  "payment_id": "pay_E5YETrWuVgP3fI",
  "npci_reference_id": "001718859181",
  "virtual_account_id": "va_E5V3Rb3sQaMS5v",
  "virtual_account": {
    "id": "va_E5V3Rb3sQaMS5v",
    "name": "Acme Corp",
    "entity": "virtual_account",
    "status": "active",
    "description": "First Customer Identifier",
    "amount_expected": null,
    "notes": [],
    "amount_paid": 200,
    "customer_id": "cust_9xnHzNGIEY4TAV",
    "receivers": [
      {
        "id": "vpa_E5V3RsO1g4QK7t",
        "entity": "vpa",
        "username": "rpy.payto00000gaurikumari",
        "handle": "icici",
        "address": "rpy.payto00000gaurikumari@icici"
      }
    ],
    "close_by": null,
    "closed_at": null,
    "created_at": 1579254678
  }
}
```

### Parameters

`id` *mandatory*
: `string` The unique identifier of the payment made to the Customer Identifier.

### Parameters

`id`
: `string` The unique identifier of the UPI transfer.

`entity`
: `string` The name of the entity. Here, it is `upi_transfer`.

`amount`
: `integer` The amount paid by the customer.

`payer_vpa`
: `string` The UPI ID of the customer that is used to make the payment.

`payer_bank`
: `string` The name of the customer's bank.

`payer_account`
: `string` The bank account number of the customer that is linked to the UPI ID.

`payer_ifsc`
: `string` The IFSC associated with the bank account.

`payment_id`
: `string` The unique identifier of the payment made by the customer.

`npci_reference_id`
: `string` The unique reference number provided by NPCI for the payment.

`virtual_account_id`
: `string` The unique identifier of the Customer Identifier.

`virtual_account`
: `object` Details of the Customer Identifier.

`id`
: `string` The unique identifier of the Customer Identifier.

`name`
: `string` The `merchant billing label` as it appears on Dashboard.

`entity`
: `string` The name of the entity. Here, it is `virtual account`.

`status`
: `string` Indicates the status of the Customer Identifier. Possible values are:

* `active`
* `closed`

`description`
: `string` A brief description about the Customer Identifier.

`amount_paid`
: `integer` The amount paid by the customer into the Customer Identifier.

`notes`
: `object` Any custom notes added during the creation of the Customer Identifier.

`customer_id`
: `string` The unique identifier of the customer the Customer Identifier is linked with. For more details, refer to the [Customers API](/api/customers).

`receivers`
: `object` Configuration of desired receivers for the Customer Identifier.

`id`
: `string` The unique identifier of the virtual UPI ID. For example, `vpa_CkTmLXqVYPkbxx`.

`entity`
: `string` The name of the entity. Here, it is `vpa`.

`username`
: `string` The unique identifier which forms the first half of the virtual UPI ID. For example, `rpy.payto00000gaurikumari`.

`handle`
: `string` The bank name that forms the second half of the virtual UPI ID. For example, `icici`.

`address`
: `string` The UPI ID that combines the `username` and the `handle` with the `@` symbol. For example, `rpy.payto00000gaurikumari@icici`. This parameter appears in the response only when `vpa` is passed as the receiver `type`.

`close_by`
: `integer` UNIX timestamp at which the Customer Identifier is scheduled to be automatically closed. The time must be at least 15 minutes after current time. The date range can be set till `2147483647` in UNIX timestamp format (equivalent to Tuesday, January 19, 2038 8:44:07 AM GMT+05:30).

<Info>
  **Handy Tips**
  Any request beyond `2147483647` UNIX timestamp will fail.
</Info>

`closed_at`
: `integer` UNIX timestamp at which the Customer Identifier is automatically closed.

`created_at`
: `integer` UNIX timestamp at which the Customer Identifier was created.
