Logo APIScript Developer

PAN and GSTIN Verification for KYC and KYB

Onboard customers, merchants and vendors faster by checking their tax identity automatically.

By the APIScript Developer team · Published

Illustration of the APIScript Developer team at work

Before you pay a vendor, onboard a merchant or open an account for a customer, you need to know who they are. KYC (Know Your Customer) checks individuals and KYB (Know Your Business) checks companies. PAN and GSTIN verification are two of the quickest, most widely used checks in both.

Understanding a PAN

A PAN (Permanent Account Number) is a 10-character code issued by the Income Tax Department, in the format five letters, four digits and one letter, for example ABCPE1234F. The fourth character shows the type of holder:

  • P — individual
  • C — company
  • F — firm or LLP
  • H — Hindu Undivided Family (HUF)
  • T — trust, and other letters for other entity types

Understanding a GSTIN

A GSTIN (GST Identification Number) has 15 characters:

  • Characters 1–2 — the state code where the business is registered
  • Characters 3–12 — the business's PAN
  • Character 13 — the registration number for that PAN within the state
  • Character 14 — "Z" by default
  • Character 15 — a check character that catches typing mistakes

Because the PAN is embedded in the GSTIN, you can cross-check a business's PAN and GSTIN against each other.

Format checks vs live verification

A format check only confirms the number looks right. Live verification checks it against official records and typically confirms the registered name and status, such as whether a GST registration is active or cancelled. Use format checks for instant feedback in forms, and live verification before you approve anyone.

Where verification fits

  • Customer onboarding — confirm the PAN and name before opening an account or wallet.
  • Merchant and seller onboarding — verify GSTIN, legal name and status before activating a seller.
  • Vendor management — check a supplier's GSTIN is active before paying invoices.
  • Payouts — combine with bank account verification to confirm the account belongs to the verified person or business.

Handling personal data responsibly

  • Collect only what you need, and tell users why you are verifying their details.
  • Store verification results securely and restrict who can see them.
  • Follow India's Digital Personal Data Protection Act, 2023, and any rules that apply to your sector.

Verify with APIScript

The PAN & GST Verification API checks PAN and GSTIN details in real time. For a complete onboarding flow, our Verification API also covers bank account and Aadhaar verification.

Related services

Have a question about this guide? Contact our team.

Related guides

Penny Drop Bank Account Verification Explained

How bank account verification works, why it prevents failed payouts, and how to handle name matching.

Read the guide →

View all guides

NPCI Approved Bharat Connect Bill Payment Software

Get Started Now!

Get Started for Free / Explore White-Label Solutions. We build high-performance websites, custom software, and NPCI-approved payment APIs designed to scale your business seamlessly.
WhatsApp Contact