API Test Keys

Fetch Transfers for a Payment

GET
/v1/payments/:id/transfers

Click to copy

Use this endpoint to retrieve the collection of all transfers created on a specific Payment id. Once the settlement against the transfer is processed, a webhook notification settlement.processed is sent which contains a recipient_settlement_id. Know more about

.

Is this page helpful?

Curl

change language

change language

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

Success

Failure

1
{
2
"entity": "collection",
3
"count": 2,
4
"items": [
5
{
6
"id": "trf_JJD535tJtk6Yy0",
7
"entity": "transfer",
8
"status": "processed",
9
"source": "pay_JGmCgTEa9OTQcX",
10
"recipient": "acc_IROu8Nod6PXPtZ",
11
"amount": 100,
12
"currency": "INR",
13
"amount_reversed": 0,
14
"fees": 1,
15
"tax": 0,
16
"notes": {
17
"name": "Gaurav Kumar",
18
"roll_no": "IEC2011025"
19
},
20
"linked_account_notes": [
21
"roll_no"
22
],
23
"on_hold": true,
24
"on_hold_until": 1671222870,
25
"settlement_status": "on_hold",
26
"recipient_settlement_id": null,
27
"created_at": 1649933574,
28
"processed_at": 1649933579,
29
"error": {
30
"code": null,
31
"description": null,
32
"reason": null,
33
"field": null,
34
"step": null,
35
"id": "trf_JJD535tJtk6Yy0",
36
"source": null,
37
"metadata": null
38
}
39
},
40
{
41
"id": "trf_JJD536GI6wuz3m",
42
"entity": "transfer",
43
"status": "processed",
44
"source": "pay_JGmCgTEa9OTQcX",
45
"recipient": "acc_IRQWUleX4BqvYn",
46
"amount": 300,
47
"currency": "INR",
48
"amount_reversed": 0,
49
"fees": 1,
50
"tax": 0,
51
"notes": {
52
"name": "Saurav Kumar",
53
"roll_no": "IEC2011026"
54
},
55
"linked_account_notes": [
56
"roll_no"
57
],
58
"on_hold": false,
59
"on_hold_until": null,
60
"settlement_status": "pending",
61
"recipient_settlement_id": null,
62
"created_at": 1649933574,
63
"processed_at": 1649933579,
64
"error": {
65
"code": null,
66
"description": null,
67
"reason": null,
68
"field": null,
69
"step": null,
70
"id": "trf_JJD536GI6wuz3m",
71
"source": null,
72
"metadata": null
73
}
74
}
75
]
76
}
Path Parameters
id

*

string

Unique identifier of the Payment for which transfers must be retrieved.

Response Parameters
id
string

Unique identifier of the transfer.

entity
string

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

transfer_status
string

The status of the transfer. Possible values are:

  • created
  • pending
  • processed
  • failed
  • reversed
  • partially_reversed

settlement_status
string

The status of the settlement. Possible values are:

  • pending
  • on_hold
  • settled

source
string

Unique identifier of the transfer source. The source can be a payment or an order.

recipient
string

Unique identifier of the transfer destination, that is, the Linked Account.

amount
integer

The amount to be transferred to the Linked Account, in paise. For example, for an amount of ₹200.35, the value of this field should be 20035.

currency
string

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

amount_reversed
integer

Amount reversed from this transfer for refunds.

notes
json object

Set of key-value pairs that can be associated with an entity. These pairs can be useful for storing additional information about the entity. A maximum of 15 key-value pairs, each of 256 characters (maximum), are supported. For example, "region": "south", "city": "Bangalore".

error
string

Provides error details that may occur during transfers.

Show child parameters (7)

linked_account_notes
array

List of keys from the notes object which needs to be shown to Linked Accounts on their Dashboard. For example, "region", "city". Only the keys will be shown, not values.

on_hold
boolean

Indicates whether the account settlement for transfer is on hold. Possible values:

  • 1: Puts the settlement on hold.
  • 0: Releases the settlement.

on_hold_until
integer

Timestamp, in Unix format, indicates until when the settlement of the transfer must be put on hold. If no value is passed, the settlement is put on hold indefinitely.

recipient_settlement_id
string

Unique identifier of the settlement.

created_at
integer

Timestamp, in Unix, at which the record was created.

Errors

The api key/secret provided is invalid

Error Status: 4xx

This error occurs when there is a mismatch between the API credentials passed in the API call and the API credentials generated on the dashboard.

Solution

payment_id is not a valid id

Error Status: 400

This error occurs when you pass an invalid payment_id in the API endpoint.

Solution

Fetch Transfers for a Payment

GET
/v1/payments/:id/transfers

Click to copy

Use this endpoint to retrieve the collection of all transfers created on a specific Payment id. Once the settlement against the transfer is processed, a webhook notification settlement.processed is sent which contains a recipient_settlement_id. Know more about

.

Is this page helpful?

Path Parameters
id

*

string

Unique identifier of the Payment for which transfers must be retrieved.

Response Parameters
id
string

Unique identifier of the transfer.

entity
string

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

transfer_status
string

The status of the transfer. Possible values are:

  • created
  • pending
  • processed
  • failed
  • reversed
  • partially_reversed

settlement_status
string

The status of the settlement. Possible values are:

  • pending
  • on_hold
  • settled

source
string

Unique identifier of the transfer source. The source can be a payment or an order.

recipient
string

Unique identifier of the transfer destination, that is, the Linked Account.

amount
integer

The amount to be transferred to the Linked Account, in paise. For example, for an amount of ₹200.35, the value of this field should be 20035.

currency
string

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

amount_reversed
integer

Amount reversed from this transfer for refunds.

notes
json object

Set of key-value pairs that can be associated with an entity. These pairs can be useful for storing additional information about the entity. A maximum of 15 key-value pairs, each of 256 characters (maximum), are supported. For example, "region": "south", "city": "Bangalore".

error
string

Provides error details that may occur during transfers.

Show child parameters (7)

linked_account_notes
array

List of keys from the notes object which needs to be shown to Linked Accounts on their Dashboard. For example, "region", "city". Only the keys will be shown, not values.

on_hold
boolean

Indicates whether the account settlement for transfer is on hold. Possible values:

  • 1: Puts the settlement on hold.
  • 0: Releases the settlement.

on_hold_until
integer

Timestamp, in Unix format, indicates until when the settlement of the transfer must be put on hold. If no value is passed, the settlement is put on hold indefinitely.

recipient_settlement_id
string

Unique identifier of the settlement.

created_at
integer

Timestamp, in Unix, at which the record was created.

Errors

The api key/secret provided is invalid

Error Status: 4xx

This error occurs when there is a mismatch between the API credentials passed in the API call and the API credentials generated on the dashboard.

Solution

payment_id is not a valid id

Error Status: 400

This error occurs when you pass an invalid payment_id in the API endpoint.

Solution

Curl

change language

change language

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

Success

Failure

1
{
2
"entity": "collection",
3
"count": 2,
4
"items": [
5
{
6
"id": "trf_JJD535tJtk6Yy0",
7
"entity": "transfer",
8
"status": "processed",
9
"source": "pay_JGmCgTEa9OTQcX",
10
"recipient": "acc_IROu8Nod6PXPtZ",
11
"amount": 100,
12
"currency": "INR",
13
"amount_reversed": 0,
14
"fees": 1,
15
"tax": 0,
16
"notes": {
17
"name": "Gaurav Kumar",
18
"roll_no": "IEC2011025"
19
},
20
"linked_account_notes": [
21
"roll_no"
22
],
23
"on_hold": true,
24
"on_hold_until": 1671222870,
25
"settlement_status": "on_hold",
26
"recipient_settlement_id": null,
27
"created_at": 1649933574,
28
"processed_at": 1649933579,
29
"error": {
30
"code": null,
31
"description": null,
32
"reason": null,
33
"field": null,
34
"step": null,
35
"id": "trf_JJD535tJtk6Yy0",
36
"source": null,
37
"metadata": null
38
}
39
},
40
{
41
"id": "trf_JJD536GI6wuz3m",
42
"entity": "transfer",
43
"status": "processed",
44
"source": "pay_JGmCgTEa9OTQcX",
45
"recipient": "acc_IRQWUleX4BqvYn",
46
"amount": 300,
47
"currency": "INR",
48
"amount_reversed": 0,
49
"fees": 1,
50
"tax": 0,
51
"notes": {
52
"name": "Saurav Kumar",
53
"roll_no": "IEC2011026"
54
},
55
"linked_account_notes": [
56
"roll_no"
57
],
58
"on_hold": false,
59
"on_hold_until": null,
60
"settlement_status": "pending",
61
"recipient_settlement_id": null,
62
"created_at": 1649933574,
63
"processed_at": 1649933579,
64
"error": {
65
"code": null,
66
"description": null,
67
"reason": null,
68
"field": null,
69
"step": null,
70
"id": "trf_JJD536GI6wuz3m",
71
"source": null,
72
"metadata": null
73
}
74
}
75
]
76
}