This guide outlines the steps required to integrate CVL KRA PAN-based KYC verification via the CRM microservice. Integration involves two key components:
IndexCRM ConfigurationConfigure the following fields in your CRM’s CVL KRA integration settings. Replace placeholder values with actual credentials provided by CVL. Required Fields
Obtaining Credentials (UAT to Live)
Backend IntegrationCall the CRM endpoint to trigger CVL KRA verification. The CRM handles the external CVL KRA request using stored credentials. Environment VariablesCRM_API_HOST="https://cs.fabbuilder.com" CRM_TENANT_ID="your_tenant_id" CRM_KRA_SUBURL="cs-app/digio" EndpointPOST https://<CRM_API_HOST>/<CRM_KRA_SUBURL>/api/tenant/<CRM_TENANT_ID>/CvlKra/check-kyc
Body: { "pan": "ABCDE1234F" }
Example (Node.js + Axios)import axios from 'axios';
import getConfig from './config';
export async function checkPanKyc(panNumber) {
if (!panNumber) throw new Error('PAN required');
const url = `${CRM_API_HOST}/${CRM_KRA_SUBURL}/api/tenant/${CRM_TENANT_ID}/CvlKra/check-kyc`;
try {
const result = await axios.post(url, { pan: panNumber }, { timeout: 10000 });
const { isValid, message, kycData } = result.data || {};
return {
isValid: Boolean(isValid),
message: message || '',
kycData: kycData || null
};
} catch (err) {
console.error('KYC check failed:', err?.response?.data || err.message);
throw new Error('KYC verification failed');
}
}
ConclusionTo integrate CVL KRA PAN-based KYC:
|