Integrate Cashfree’s merchant onboarding APIs and embedded link to collect KYC information and verify merchants directly within your platform. Businesses that onboard through your platform are registered as merchants in Cashfree’s system and linked to your partner account.Documentation Index
Fetch the complete documentation index at: https://www.cashfree.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
Before integrating merchant onboarding with Cashfree, ensure the following:- Register as a partner: Register your platform as a partner with Cashfree. Contact Cashfree support to initiate the partnership process.
- Obtain partner API key: Log in to the Partner Dashboard and navigate to Developers to generate your partner API key. You will use this key to authenticate all API requests.
- Plan your data structure: Determine which KYC fields your platform will collect upfront and which will be completed via the embedded link.
- Prepare your hosting environment: Ensure your platform can embed iframes or webviews to display the Cashfree onboarding link.
- Configure webhook URL: Provide a valid webhook URL where Cashfree will send merchant status notifications.
Integration flow
Use the following steps to complete embedded merchant onboarding for your platform:- Create a merchant profile in Cashfree
- Update merchant details as information becomes available
- Upload KYC documents for verification
- Generate and display the embeddable onboarding link
- Monitor merchant onboarding status through APIs
- Subscribe to onboarding webhooks for status updates
Step 1: Create a merchant
Create a merchant record in Cashfree using the Create Merchant API with the merchant’s core information. Store themerchant_id for use in subsequent API calls.
Step 2: Update merchant details
Use the Update Merchant API to update a sub-merchant account’s profile. You can update basic merchant details before the account is activated. Once active, most profile fields are locked and cannot be modified via API.Step 3: Upload KYC documents
Upload KYC documents via the Upload KYC Documents API as they become available. Thedocument_type field accepts the following values;
PANAADHAARGSTINCINBANK_STATEMENT
Step 4: Generate the embeddable onboarding link
Generate an embeddable onboarding link for merchants to complete remaining KYC and Aadhaar verification using the Create Embeddable Onboarding Link API.The
onboarding_link expires after 1 hour. Embed it in an iframe or webview do not expose it to end users as a direct URL.return_url.
Step 5: Monitor merchant status
Query merchant status using the Get Merchant Status API: Use theonboarding_status field to track merchant onboarding progress:
CREATED: Onboarding started but not completed.ACTIVE: Merchant can process payments.REJECTED: Merchant onboarding rejected.SUSPENDED: Merchant account suspended.
Step 6: Subscribe to merchant onboarding webhooks
Subscribe to merchant onboarding webhooks using the Merchant Onboarding Webhooks API to receive real-time notifications of status changes. Configure your webhook URL in the Partner Dashboard under Developers > Webhooks. The webhook event types include the following:merchant.onboarding.completed: Merchant onboarding completed successfully.merchant.onboarding.rejected: Merchant onboarding was rejected by Cashfree.merchant.onboarding.status_changed: Merchant onboarding status has changed.
Verify webhook signatures using your partner API key before processing events. This prevents unauthorised requests from external sources.
Identify business type using PAN
The fourth letter of the Permanent Account Number (PAN) identifies the entity type of the account holder. For example, for the PAN: ABCPR1234A, the fourth letter is P, which identifies the account holder as an individual or proprietorship.
business_type value for the merchant:
| Fourth letter of the PAN | business_type |
|---|---|
| P | Individual, Proprietorship |
| C | Private Limited, Public Limited |
| F | LLP, Partnership |
| T | Trust |
| H | Hindu Undivided Family (HUF) |
| A | Association of Persons (AOP) |
| B | Society |
| L | Local Authority |
| J | Artificial Juridical Person |
| G | Government |
Test in sandbox
Use the following test credentials to test the onboarding flow end-to-end in the sandbox environment.Individual or proprietor (without GST)
Individual or proprietor (without GST)
Use the following test credentials to validate the individual or proprietor onboarding flow in the sandbox environment:
| Field | Test value |
|---|---|
| Business PAN | ABCPV1234D |
| Business Legal Name | John Doe |
| Business Type | Individual |
| Business Model | B2C |
| Business Category | Ecommerce/Retail |
| Business Subcategory | Other goods |
| MCC | 5199 |
| Non-GST Declaration | My annual turnover is less than GST prescribed limit |
| Business Address | Trial Address |
| City/PIN/State | Mumbai / 400067 / Maharashtra |
| Aadhaar Number | 655675523712 |
| Aadhaar OTP | 111000 |
| Bank Account | 026291800001191 |
| Bank IFSC | YESB0000262 |
Private or public limited
Private or public limited
Use the following test credentials to validate the private or public limited onboarding flow in the sandbox environment:
| Field | Test value |
|---|---|
| Business PAN | ABCCD8000T |
| Business Legal Name | John Doe Industries |
| Owner PAN | ABCPV1234D |
| Owner Name as per PAN | John Doe |
| Business Type | Private Limited |
| Business Description | I want to use payment gateway to collect payments… |
| MCC | 5199 |
| Country | India |
| Business Non-GST Declaration | My business category is exempted from GST |
| CIN | U72900KA2015PTC082989 |
| GSTIN | 29AAICP2912R1ZR |
| Business Address | Trial Address |
| City/PIN/State | Mumbai / 400067 / Maharashtra |
| Aadhaar Number | 655675523712 |
| Aadhaar OTP | 111000 |
| Bank Account | 026291800001191 |
| Bank IFSC | YESB0000262 |
Production deployment
Before deploying to production, update your API endpoint and credentials:| Environment | API endpoint |
|---|---|
| Sandbox | https://api-sandbox.cashfree.com |
| Production | https://api.cashfree.com |