Standard Transfer
This section provides details on how to integrate a standard transfer. It explains how to add a beneficiary, make a payment, and get the transfer status.
Steps
- Setup
- Initialization and Authorization
- Get beneficiary details
- Add a beneficiary
- Request a transfer
- Get transfer status
Check out our libraries and samples section for the integration code hosted on GitHub.
Step 1: Setup
Get your corresponding clientId and clientSecret from your payout dashboard and ensure that your IP is whitelisted as well. Check our development quickstart here.
Host URL: Use the following URL for PROD and TEST, respectively:
- For the production environment: https://payout-api.cashfree.com
- For the test environment: https://payout-gamma.cashfree.com
Step 2: Initialization and Authorization
Call the authenticate API to Cashfree system/server to obtain an Authorization Bearer token. All other API calls must have this token as Authorization header in the format ‘Bearer <token>’ (without quotes) to get processed.
Sample response
Step 3: Get Beneficiary Details
Fetch the details of a beneficiary by passing the beneficiary Id. beneId is a unique identifier for your beneficiary.
Sample Response
Step 4: Add Beneficiary
Add a beneficiary by providing the bank account number, IFSC, and other required details. You can only request a transfer for added beneficiaries.
Sample Response
Step 5: Request Transfer
API to request a payout transfer.
Sample Response
Step 6: Get Transfer Status
API to fetch details of a particular transfer. You can either pass referenceId or transferId to fetch the details.
This API gives responses other than SUCCESS and ERROR.
Sample Response
Check out our Libraries and Samples section for the integration code hosted on GitHub.
You now have a complete standard transfer integration for payouts. Cashfree will send webhooks in the case of certain events. Webhooks are server to server notifications. Learn more about webhooks here.
When testing your integration with your test API key, you can use test numbers to ensure that it works correctly.
Was this page helpful?