Fetch Transfer for an Order
GET
/v1/orders/:id/?expand[]=transfers&status=processing
Click to copy
Use this endpoint to retrieve the collection of all transfers created on a specific order id.
Is this page helpful?
1curl -X GET https://api.razorpay.com/v1/orders/order_DSkl2lBNvueOly/?expand[]=transfers&status=processing \2-u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \
Success
Failure
1{2"id": "order_JJCYnu3hipocHz",3"entity": "order",4"amount": 2000,5"amount_paid": 0,6"amount_due": 2000,7"currency": "INR",8"receipt": null,9"offer_id": null,10"status": "created",11"attempts": 0,12"notes": [],13"created_at": 1649931742,14"transfers": {15"entity": "collection",16"count": 2,17"items": [18{19"id": "trf_JJCYnw77tqUT9r",20"entity": "transfer",21"status": "created",22"source": "order_JJCYnu3hipocHz",23"recipient": "acc_IRQWUleX4BqvYn",24"amount": 1000,25"currency": "INR",26"amount_reversed": 0,27"fees": 0,28"tax": null,29"notes": {30"branch": "Acme Corp Bangalore North",31"name": "Gaurav Kumar"32},33"linked_account_notes": [34"branch"35],36"on_hold": true,37"on_hold_until": 1671222870,38"settlement_status": null,39"recipient_settlement_id": null,40"created_at": 1649931742,41"processed_at": null,42"error": {43"code": null,44"description": null,45"reason": null,46"field": null,47"step": null,48"id": "trf_JJCYnw77tqUT9r",49"source": null,50"metadata": null51}52},53{54"id": "trf_JJCYnxe5GV19Kk",55"entity": "transfer",56"status": "created",57"source": "order_JJCYnu3hipocHz",58"recipient": "acc_IROu8Nod6PXPtZ",59"amount": 1000,60"currency": "INR",61"amount_reversed": 0,62"fees": 0,63"tax": null,64"notes": {65"branch": "Acme Corp Bangalore South",66"name": "Saurav Kumar"67},68"linked_account_notes": [69"branch"70],71"on_hold": false,72"on_hold_until": null,73"settlement_status": null,74"recipient_settlement_id": null,75"created_at": 1649931742,76"processed_at": null,77"error": {78"code": null,79"description": null,80"reason": null,81"field": null,82"step": null,83"id": "trf_JJCYnxe5GV19Kk",84"source": null,85"metadata": null86}87}88]89}90}
Path Parameters
id
*
string
Unique identifier of the Order for which transfers must be retrieved.
Query Parameters
expand
*
array
Used to retrieve details regarding the transfers initiated via an order. Supported value is transfers
.
status
string
Status of the transfer.
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
order_id is not a valid id
Error Status: 400
This error occurs when you pass an invalid order_id
in the API endpoint.
Solution
Fetch Transfer for an Order
GET
/v1/orders/:id/?expand[]=transfers&status=processing
Click to copy
Use this endpoint to retrieve the collection of all transfers created on a specific order id.
Is this page helpful?
Path Parameters
id
*
string
Unique identifier of the Order for which transfers must be retrieved.
Query Parameters
expand
*
array
Used to retrieve details regarding the transfers initiated via an order. Supported value is transfers
.
status
string
Status of the transfer.
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
order_id is not a valid id
Error Status: 400
This error occurs when you pass an invalid order_id
in the API endpoint.
Solution
1curl -X GET https://api.razorpay.com/v1/orders/order_DSkl2lBNvueOly/?expand[]=transfers&status=processing \2-u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \
Success
Failure
1{2"id": "order_JJCYnu3hipocHz",3"entity": "order",4"amount": 2000,5"amount_paid": 0,6"amount_due": 2000,7"currency": "INR",8"receipt": null,9"offer_id": null,10"status": "created",11"attempts": 0,12"notes": [],13"created_at": 1649931742,14"transfers": {15"entity": "collection",16"count": 2,17"items": [18{19"id": "trf_JJCYnw77tqUT9r",20"entity": "transfer",21"status": "created",22"source": "order_JJCYnu3hipocHz",23"recipient": "acc_IRQWUleX4BqvYn",24"amount": 1000,25"currency": "INR",26"amount_reversed": 0,27"fees": 0,28"tax": null,29"notes": {30"branch": "Acme Corp Bangalore North",31"name": "Gaurav Kumar"32},33"linked_account_notes": [34"branch"35],36"on_hold": true,37"on_hold_until": 1671222870,38"settlement_status": null,39"recipient_settlement_id": null,40"created_at": 1649931742,41"processed_at": null,42"error": {43"code": null,44"description": null,45"reason": null,46"field": null,47"step": null,48"id": "trf_JJCYnw77tqUT9r",49"source": null,50"metadata": null51}52},53{54"id": "trf_JJCYnxe5GV19Kk",55"entity": "transfer",56"status": "created",57"source": "order_JJCYnu3hipocHz",58"recipient": "acc_IROu8Nod6PXPtZ",59"amount": 1000,60"currency": "INR",61"amount_reversed": 0,62"fees": 0,63"tax": null,64"notes": {65"branch": "Acme Corp Bangalore South",66"name": "Saurav Kumar"67},68"linked_account_notes": [69"branch"70],71"on_hold": false,72"on_hold_until": null,73"settlement_status": null,74"recipient_settlement_id": null,75"created_at": 1649931742,76"processed_at": null,77"error": {78"code": null,79"description": null,80"reason": null,81"field": null,82"step": null,83"id": "trf_JJCYnxe5GV19Kk",84"source": null,85"metadata": null86}87}88]89}90}