Skip to main content
Use this endpoint to create Transfers from captured payments. You can create and capture payments in the regular payments flow using the Razorpay Checkout and Payment APIs. You should perform additional steps to disburse payments using Razorpay Route.
  1. The customer pays the amount using the standard payment flow.
  2. Once the payment is captured, you can initiate a transfer to Linked Accounts with a transfer API call. You have to pass the details such as account_id and amount.

Request

Curl

Response

Success

Parameters

id mandatory : string Unique identifier of the payment on which the transfer must be created.

Parameters

transfers : array Details regarding the transfer. account mandatory : string Unique identifier of the Linked Account to which the transfer is to be made. amount mandatory : integer The amount to be transferred to the Linked Account. For example, for an amount of ₹200.35, the value of this field should be 20035. currency mandatory : string The currency in which the transfer should be made. We support only INR for Route transactions. 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". 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. Know more about on hold settlements. Possible values:
  • true: Puts the settlement on hold.
  • false: Releases the settlement.
on_hold_until : integer Timestamp, in Unix, that 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. We recommend you set the on_hold_until value greater than 30 mins from the transfer creation time.
Handy Tips
  • The settlement schedule defined for the Linked Account takes precedence over the on_hold and on_hold_until functionality. This means that a defined settlement schedule is the minimum time required for the transfer to be settled.
  • Let us take the example of a T+10 settlement schedule:
  • If you create a transfer with on_hold: true and then release it on T+7 day, the settlement will only go out on T+10 day.
  • If you create a transfer with on_hold: true and on_hold_until: 1491567400 (assume the timestamp 1491567400 corresponds to 7 days after transfer), the on_hold will change to false on T+7 day. The settlement will only go out on T+10 day.

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. code : string Type of the error. description : string Error description. field : string Name of the parameter in the API request that caused the error. source : string The point of failure in the specific operation. For example, customer, business and so on. step : string The stage where the transaction failure occurred. Stages can be different depending on the payment method used to make the transaction. id : string Unique identifier of the transfer. reason : string The exact error reason. It can be handled programmatically. 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:
  • true: Puts the settlement on hold.
  • false: 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
  • code: 4xx
  • description: 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: Make sure the API Keys are active and entered correctly. Also, there should not be any whitespaces before or after the keys.
The transfers.0.amount must be at least 100.
  • code: 400
  • description: This error occurs when the amount is less than the minimum amount. The transaction amount expressed in the currency subunit, such as paise (in INR) should always be greater than or equal to 100.
  • solution: Make sure the amount is equal to or greater than the minimum amount of ₹100.
The input field is required
  • code: 400
  • description: This error occurs when a mandatory field is empty.
  • solution: Make sure to fill in all the mandatory fields.
payment_id is not a valid id
  • code: 400
  • description: This error occurs when you pass an invalid payment_id in the API endpoint.
  • solution: Make sure to pass a vaild payment_id.
The id provided does not exist
  • code: 400
  • description: This error occurs when there is a miss-match between the API keys via which the transaction was initiated for that particular payment_id and the API keys passed in the API call.
  • solution: Ensure the API keys via which you have accepted the payment for the payment_id passed in the API endpoint matches the API keys passed in the API call.
input is an invalid account_code.
  • code: 400
  • description: This error occurs when the account_code passed is invalid or does not belong to the requested merchant.
  • solution: Make sure to pass the valid account_code.
Transfer cannot be made due to insufficient balance
  • code: 400
  • description: This error occurs when the total balance is less than or equal to the transfer amount.
  • solution: Make sure you have enough balance. You can also add funds to the account and then try doing the transfer.
The sum of amount requested for transfer is greater than the captured amount
  • code: 400
  • description: This error occurs when the total transferred amount exceeds the captured payment amount.
  • solution: Make sure the transfer amount is less than the captured payment.