DEV Community

Eko Developers for Eko Developer Community

Posted on

1

How to verify PAN no. in node.js

42Cr PAN Cards can be verified using Eko APIs

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
Enter fullscreen mode Exit fullscreen mode

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"
})
Enter fullscreen mode Exit fullscreen mode

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));
})
Enter fullscreen mode Exit fullscreen mode

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

  1. Go to https://connect.eko.in
  2. Enter your PAN no.
  3. Enter your firm's details
  4. Set a 4 digit secret pin
  5. Choose plan combo 1 (it has access to all the APIs including PAN KYC APIs)
  6. Sign the agreement (via Aadhar OTP)
  7. 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

Sentry blog image

How to reduce TTFB

In the past few years in the web dev world, we’ve seen a significant push towards rendering our websites on the server. Doing so is better for SEO and performs better on low-powered devices, but one thing we had to sacrifice is TTFB.

In this article, we’ll see how we can identify what makes our TTFB high so we can fix it.

Read more

Top comments (0)

AWS Security LIVE!

Tune in for AWS Security LIVE!

Join AWS Security LIVE! for expert insights and actionable tips to protect your organization and keep security teams prepared.

Learn More

👋 Kindness is contagious

Explore a sea of insights with this enlightening post, highly esteemed within the nurturing DEV Community. Coders of all stripes are invited to participate and contribute to our shared knowledge.

Expressing gratitude with a simple "thank you" can make a big impact. Leave your thanks in the comments!

On DEV, exchanging ideas smooths our way and strengthens our community bonds. Found this useful? A quick note of thanks to the author can mean a lot.

Okay