API Test keys

API Test keys

Fetch Reversals for a Transfer

GET
/v1/transfers/:id/reversals

Click to copy

Use this endpoint to retrieve a list of reversals made for a transfer.

Is this page helpful?

Curl

change language

change language

1
curl -X GET https://api.razorpay.com/v1/transfers/trf_Lt048W7cgLdo1u/reversals \
2
-u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \

Success

1
{
2
"entity":"collection",
3
"count":1,
4
"items":[
5
{
6
"id":"rvrsl_Lt09xvyzskI7KZ",
7
"entity":"reversal",
8
"transfer_id":"trf_Lt048W7cgLdo1u",
9
"amount":50000,
10
"fee":0,
11
"tax":0,
12
"currency":"INR",
13
"notes":[
14
15
],
16
"initiator_id":"Ghri4beeOuMTAb",
17
"customer_refund_id":null,
18
"utr":null,
19
"created_at":1684822489
20
}
21
]
22
}
Path Parameters
id

*

string

Unique identifier of the transfer.

Response Parameters
id
string

The unique identifier of the reversal.

entity
string

The name of the entity. Here, it is reversal.

transfer_id
string

The unique identifier of the transfer that was reversed.

amount
integer

The amount that was reversed, in paise.

currency
string

ISO currency code. We support route reversals only in INR.

initiator_id
string

The unique identifier of the merchant (MID).

created_at
integer

Timestamp in Unix. This indicates the time at which the reversal was created.

Fetch Reversals for a Transfer

GET
/v1/transfers/:id/reversals

Click to copy

Use this endpoint to retrieve a list of reversals made for a transfer.

Is this page helpful?

Path Parameters
id

*

string

Unique identifier of the transfer.

Response Parameters
id
string

The unique identifier of the reversal.

entity
string

The name of the entity. Here, it is reversal.

transfer_id
string

The unique identifier of the transfer that was reversed.

amount
integer

The amount that was reversed, in paise.

currency
string

ISO currency code. We support route reversals only in INR.

initiator_id
string

The unique identifier of the merchant (MID).

created_at
integer

Timestamp in Unix. This indicates the time at which the reversal was created.

Curl

change language

change language

1
curl -X GET https://api.razorpay.com/v1/transfers/trf_Lt048W7cgLdo1u/reversals \
2
-u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \

Success

1
{
2
"entity":"collection",
3
"count":1,
4
"items":[
5
{
6
"id":"rvrsl_Lt09xvyzskI7KZ",
7
"entity":"reversal",
8
"transfer_id":"trf_Lt048W7cgLdo1u",
9
"amount":50000,
10
"fee":0,
11
"tax":0,
12
"currency":"INR",
13
"notes":[
14
15
],
16
"initiator_id":"Ghri4beeOuMTAb",
17
"customer_refund_id":null,
18
"utr":null,
19
"created_at":1684822489
20
}
21
]
22
}