How to verify PAN no. in node.js
Eko Developers
Posted on February 9, 2023
You might need to verify your customer's identity in your app. PAN verification API by Eko can come handy here. The complete documentation can be found here. We will walk through the complete process for a nodejs app in this article.
1. Install Eko's node.js SDK
npm install @ekoindia/eko-sdk-node
2. Initialize the SDK
const Eko = require('@ekoindia/eko-sdk-node')
//Initialize the Eko library
const ekoAPI = Eko.init({
hostname: "staging.eko.in",//For prod, change to eko.in
port: 443,
developerKey: "becbbce45f79c6f5109f848acd540567",
authKey: "f74c50a1-f705-4634-9cda-30a477df91b7",
initiatorId: "9971771929"
})
- For testing environment: use the
developer_key
,key
andinitiator_id
as provided on this page - For production environment: Signup at https://connect.eko.in (more details about this at the end of this article)
3. Verify PAN
//Verify PAN
ekoAPI.verifyPAN({
panNumber: 'pan number',
purpose: 'purpose of verification',
purposeDescription: 'description of the purpose'
}, function(err, result){
console.log(JSON.stringify(result));
})
Check out eko-sdk-node
for more details. If you have any question or feature request, create an issue on GitHub repo or Eko Developer Community on Discord
4. Get API credentials for the production
- Go to https://connect.eko.in
- Enter your PAN no.
- Enter your firm's details
- Set a 4 digit secret pin
- Choose plan combo 1 (it has access to all the APIs including PAN KYC APIs)
- Sign the agreement (via Aadhar OTP)
- Submit the documents required for your firm's verification
Once the verification is completed, you will get the credentials for the production. You can then deploy your solution to production with these credentials.
Resources
💖 💪 🙅 🚩
Eko Developers
Posted on February 9, 2023
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.