KYC verification API: what does a request look like?

Our KYC and verification APIs help you confirm that the details customers give you are genuine. Common checks include PAN, bank account, UPI ID, GST number, driving licence, vehicle RC and Aadhaar through DigiLocker. This article shows typical requests, explains how to read results, and covers the consent and privacy rules you must follow.

Consent comes first

Verification involves personal data. Before you check anyone's details:

  • Tell the customer what you will verify and why.
  • Get clear consent, such as a checkbox they must tick, and record when it was given.
  • Aadhaar-based verification must always be consent-based and is done through the DigiLocker flow, where the customer logs in and approves sharing. Never ask customers to send you Aadhaar images by chat or email.
  • Store only what you need, for as long as you need it, and protect it.

Example 1: PAN verification

curl -X POST "https://www.pepploweb.com/api/services/v1/kyc/pan" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "pan": "ABCDE1234F", "name": "Anita Sharma", "reference_id": "KYC5512" }'
{ "status": "success", "data": { "pan_status": "valid", "name_match": true,
  "registered_name": "ANITA SHARMA", "reference_id": "KYC5512" } }

Check both that the PAN is valid and that the name matches. A valid PAN with a name mismatch may mean a typing error, or that the customer entered someone else's PAN.

Example 2: Bank account verification

Bank account verification confirms that an account number and IFSC are active and returns the name registered with the bank. It is commonly used before a first payout, to avoid sending money to the wrong account.

POST /api/services/v1/kyc/bank-account
{ "account_number": "XXXXXXXX4521", "ifsc": "BANK0001234", "reference_id": "KYC5513" }

Example 3: UPI ID verification

POST /api/services/v1/kyc/upi
{ "vpa": "anita@bankhandle", "reference_id": "KYC5514" }

The response tells you whether the UPI ID exists and the name of the account holder.

Reading the results

  • Success means the check was performed. Always read the result fields, such as valid or invalid and name match, rather than treating success as approval.
  • Failed means the check could not be completed, for example because of an invalid format or a source being temporarily unavailable. You may retry later.
  • Name matching: names may differ slightly between records, such as initials or spelling. Decide your own rules, for example accept exact or close matches and send others for manual review.

Handling data safely

  • Mask numbers on screens and in logs, showing only the last few digits.
  • Restrict who in your organisation can see full verification results.
  • Use HTTPS everywhere and encrypt sensitive data at rest.
  • Delete data when it is no longer needed for your stated purpose.

Billing for verification

Verification requests are charged per completed check from your wallet, whether the result is valid or invalid, because the lookup has been performed. Requests rejected for format errors before reaching the source are generally not charged. Check your package details for the exact rules.

The examples in this article are simplified to show the flow. Field names, endpoint paths and response formats can differ by service, so always follow the current reference in our API documentation.

Learn more

See the identity verification, PAN verification and bank verification pages for each service, and API pricing for current rates.

Was this article helpful?

Still stuck? Open a support ticket and our team will help.


Related articles

← Back

Chat with us
Hi! Send us a message and we will reply here as soon as we can.
Security check image
Chat with us