StampMitraDevelopers
LiveVerification API

CIN company verification API: MCA status, directors and a KYB chain you can audit

Verify a Company CIN in real time.

POST/v1/verify/cinScope verification.cin.read₹5 per call
curl -X POST "https://api-b2b.stampmitra.in/v1/verify/cin" \
  -H "Authorization: Bearer $STAMPMITRA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "cin": "U72900KA2015PTC082988"
  }'
Example responseJSON
{
  "referenceId": "SMV-20260927-6R38Y3",
  "verificationId": "VRF-6C2N9V4HQ7ZE",
  "valid": true,
  "status": "VALID",
  "cin": "U72900KA2015PTC082988",
  "companyName": "COMPANY NAME",
  "registrationNumber": 82987,
  "incorporationDate": "2015-09-23",
  "cinStatus": "ACTIVE",
  "email": "[email protected]",
  "incorporationCountry": "INDIA",
  "directorDetails": [
    {
      "din": "07168822",
      "name": "Frank Kelvin",
      "dob": "1997-07-21",
      "designation": "DIRECTOR",
      "address": "ST BED KORAMANGALA, BANGALORE, KARNATAKA, INDIA, 566634"
    },
    {
      "din": "07168826",
      "name": "John Doe",
      "dob": "1997-02-07",
      "designation": "DIRECTOR",
      "address": "GAUTAM NAGAR, NOIDA, UTTAR PRADESH, INDIA, 211361"
    }
  ],
  "companyStatus": "ACTIVE",
  "directors": [
    {
      "din": "07168822",
      "name": "Frank Kelvin",
      "designation": "DIRECTOR"
    },
    {
      "din": "07168826",
      "name": "John Doe",
      "designation": "DIRECTOR"
    }
  ]
}

Most of what a business-onboarding team calls "company verification" comes down to one registry, the Ministry of Corporate Affairs company master record, and one identifier, the Corporate Identification Number. POST /v1/verify/cin takes a CIN and returns whether the company is on record, its registered name, registration number, date of incorporation and country, its status, its registered email and the directors the registry lists for it, each with DIN, date of birth, designation and address. It is the call you reach for when a customer, merchant, borrower or vendor says "we are a private limited company" and you need more than their word.

This page covers the parts that the endpoint reference cannot: how to read a CIN and why its structure helps you reject bad input for free, what "valid" and "active" mean for a company, how to use the directors data in a know-your-business flow and where that data stops being useful, which entity types have no CIN at all, how to build a verification chain around the call, and how errors, billing and the sandbox behave. It is written for developers and for the compliance and product people who will review what the integration does.

What the company master record can establish, and what it cannot

A CIN lookup tells you that a company with this identifier was incorporated under the Companies Act and is on the registrar's record, together with the details the registrar holds: the name, the registration number, the date of incorporation, the status, and the directors. Those facts are valuable for one question: does this legal entity exist, and is it in a state in which it can enter into a contract?

It cannot tell you whether the person you are talking to represents the company. A director list is not an authority list. A company can authorise an employee to sign through a board resolution, and an individual can be listed as a director of one company while pretending to act for another. It cannot tell you who owns the company, because the response carries directors and not shareholders, so it does not on its own answer a beneficial-ownership question. It does not return financials, charges, litigation or credit information. And it cannot tell you that the company's bank account is the one on your form; that is a separate check, covered by bank account verification.

Think of the CIN call as the anchor of a business check. It fixes the entity. Everything else (the signatory, the owners, the GST registration, the bank account) is then checked against that fixed point.

Reading a CIN: 21 characters with a meaning

A CIN is 21 characters and, unlike many identifiers, almost every segment can be read by eye. Knowing the layout lets you reject malformed input before you pay for a lookup, and lets you run a consistency check after it.

CharactersSegmentWhat it carries
1Listing statusL for a company listed on a stock exchange, U for unlisted
2 to 6Industry codeFive digits from the industrial classification used at registration
7 to 8State codeTwo letters for the state of the registered office, such as DL, MH, KA
9 to 12YearThe year of incorporation
13 to 15Ownership typeThree letters describing the kind of company
16 to 21Registration numberSix digits assigned by the registrar

The ownership-type letters you will meet most often are PTC for a private company, PLC for a public limited company, OPC for a one person company, NPL for a not-for-profit company licensed under the Companies Act, GOI and SGC for government companies, FTC for a subsidiary of a foreign company, and GAP or GAT for companies limited by guarantee. Treat this list as a guide to what you are likely to see, not as an exhaustive validator, and never reject a CIN because its ownership letters are not in your table.

The API checks the shape of the number with this pattern: ^[LU][0-9]{5}[A-Z]{2}[0-9]{4}[A-Z]{3}[0-9]{6}$. It does not check that the state letters are real, that the year is plausible, or that the ownership code is one you have heard of. Do those checks yourself, and keep them lenient. Two are especially useful. The year segment cannot be later than the current year, and after a successful lookup it should equal the year of incorporationDate in the response, which is a free consistency check. A mismatch is worth a log line and a manual look.

One property of the CIN is easy to miss and causes real bugs: it is not guaranteed to stay the same for the life of the company. The identifier changes when the facts it encodes change, for example when a company lists on an exchange, converts from private to public, or moves its registered office to another state. The six-digit registration number tends to stay while the surrounding segments change. If you store CINs as permanent keys, plan for a vendor whose number changes and whose old number now returns not found. Keep the date you last verified, and when a lookup fails for a company you previously verified, ask for the current CIN before you assume anything is wrong.

JavaScript
const CIN_RE = /^[LU][0-9]{5}[A-Z]{2}[0-9]{4}[A-Z]{3}[0-9]{6}$/;

export function inspectCin(raw, now = new Date()) {
  const cin = String(raw ?? "").replace(/\s+/g, "").toUpperCase();
  if (!CIN_RE.test(cin)) return { ok: false, reason: "format" };
  const year = Number(cin.slice(8, 12));
  if (year > now.getUTCFullYear() || year < 1850) return { ok: false, reason: "year" };
  return {
    ok: true,
    cin,
    listed: cin[0] === "L",
    stateLetters: cin.slice(6, 8),
    incorporationYear: year,
    ownershipCode: cin.slice(12, 15),
    registrationNumber: cin.slice(15),
  };
}

The request and the response

The request has a single field, cin. The response guarantees referenceId, verificationId, valid and cin, and carries the company details when the CIN is valid; every other field is optional and is left out when the registry does not provide it. The tables below come from the same API data as the reference page.

Request parameters

Request parameters
FieldTypeDescription
AuthorizationrequiredheaderBearer <api-key> (e.g. sk_test_... in sandbox, sk_live_... in production). The x-api-key header is also accepted.
cinrequiredstringCorporate Identification Number (21 characters) or LLPIN, for example U74999DL2015PTC284009.

Response fields

Response fields
FieldTypeDescription
referenceIdstringStampMitra's own transaction id for this call (SMV-YYYYMMDD-XXXXXXX). Always present, including on a negative result.
verificationIdstringStampMitra's own id for this verification (VRF- followed by 12 base32 characters). Generated for every call, unique to it. Always present. Quote it in support requests.
validbooleanWhether the CIN is valid. Always present. True exactly when status is VALID.
statusstringRegistry outcome of the lookup: VALID or INVALID.
cinstringThe CIN that was verified. Always present; on an invalid CIN it is the number you sent.
companyNamestringRegistered company name, when the CIN is valid.
registrationNumbernumberCompany registration number, a number (not a string), when available.
incorporationDatestringDate of incorporation, ISO yyyy-mm-dd.
cinStatusstringCompany status as recorded by the MCA, for example ACTIVE.
emailstringRegistered email address of the company.
incorporationCountrystringCountry of incorporation, for example INDIA.
directorDetailsarrayDirectors / designated partners on record, with date of birth and address.
directorDetails[].dinstringDirector Identification Number (DIN).
directorDetails[].namestringDirector's name.
directorDetails[].dobstringDirector's date of birth, ISO yyyy-mm-dd.
directorDetails[].designationstringDirector's designation, for example DIRECTOR.
directorDetails[].addressstringDirector's address on record, as one string.
companyStatusstringSame value as cinStatus. Kept so existing integrations keep working.
directorsarrayDirectors with name, DIN and designation only. Kept so existing integrations keep working; directorDetails has the full entries.
directors[].dinstringDirector Identification Number (DIN).
directors[].namestringDirector's name.
directors[].designationstringDirector's designation.

Field by field. valid is described in the contract as "valid and active", which is stronger than "exists", and the next chapter explains why you should still read the status fields. companyName is the registered name in the registrar's capitals. incorporationDate is an ISO date and registrationNumber is a number (the six-digit registrar-assigned part, without leading zeros). status is the registry's own outcome, VALID or INVALID, and valid is true exactly when it is VALID; cinStatus is the separate company state recorded by the registrar (for example ACTIVE), and companyStatus repeats it for integrations written against earlier versions of this page. directorDetails is an array of objects with din, name, dob, designation and address; the older directors array stays in the response with only din, name and designation. email and incorporationCountry are optional and never guaranteed. If a contact email is present it is the one filed with the registrar, which can be years out of date, so do not use it for anything that matters.

referenceId has the form SMV-YYYYMMDD-XXXXXXX, is present even when valid is false, and is the identifier to quote to support. It is not an idempotency key. On a negative answer valid is false, status is INVALID, cin repeats the number you sent, the director lists are empty and the company fields are absent, so read optional fields defensively.

valid, cinStatus and companyStatus: when a company exists but cannot do business

For a person or a vendor, "exists" and "operating" are close enough to ignore the difference. For a company they are not. A company can be on record and be struck off, dormant, under liquidation, amalgamated into another company or converted to a different form. The registrar's records carry a status for each of these situations, and the API passes them on in cinStatus and companyStatus.

The status you want is an active one. The labels you may see for the others vary, and the registrar's vocabulary has changed over time, so we do not publish a closed list. Our recommendation is the same one we give for other registries: define three outcomes in your own code. A company is acceptable when valid is true and both status fields read as active (compare case-insensitively). A company is a review case when it is found but either status is something else. A company is not found when valid is false. Send the review group to a person with the full response attached, and tell the applicant in neutral terms that you need more information.

Why not reject the review group outright? Because some of these states have innocent explanations that your compliance team can resolve in minutes. A company in the process of amalgamation may be about to be replaced by a surviving entity whose CIN you should collect instead. A company marked dormant may be a legitimate holding structure. A company under a process of striking off may be saved by a filing. The decision depends on your product and your risk appetite, which is why it should be in a policy and not in a regular expression.

Directors: how the data is used in a KYB flow, and where it stops

The directorDetails array lists each director as an object with din, name, dob, designation and address (the older directors array carries the first, second and fourth of those only). The DIN, the Director Identification Number, is an eight-digit number issued to an individual who is or intends to be a director; it stays with the person across companies. That makes it the one stable key in the response for the person, as opposed to the name, which can be spelled several ways.

There are four practical uses.

First, signatory screening. If the person who signed your application is supposed to be a director, their name should appear in the array. Compare normalised names (uppercase, strip honorifics, collapse spaces) and send near misses to review. If the signatory is not a director, you do not reject; you ask for the board resolution or power of attorney that authorises them, and you record that you asked.

Second, linking to the individual's own identity. A director's name in the array can be compared with the registered name on a PAN verification of the person who is applying, for a quick consistency check. It does not prove the applicant is that person, which still needs a possession or identity step.

Third, structure checks. A private company generally needs at least two directors, a public company at least three and a one person company one. A response that lists fewer than your expectation is not proof of a problem, because the registrar's data can lag filings, but it is a prompt for a look, especially if a loan or a large contract is involved.

Fourth, change detection. If you re-verify periodically, comparing the set of DINs between runs tells you when a director was added or removed. A change in the board right before a large drawdown is the kind of event a risk team wants to hear about.

Where does the data stop? It does not return appointment dates, DIN status or shareholding. It does not tell you whether a director is also a director of another company, though you can build that picture from your own records by indexing on DIN. It does not tell you who the ultimate beneficial owners are. Beneficial-ownership rules for regulated entities are set by their regulators with ownership and control thresholds, and satisfying them needs shareholder information from the company itself. Use the directors array as one input to that work and not as the work itself.

Directors' names, DINs, dates of birth and addresses come from a public registry, but they are still personal data about identifiable people, and the date of birth and address in particular are what an identity thief wants. Keep them out of logs, show them only to staff who need them, and store the smallest thing that lets you detect a change, for example a hash of the sorted DIN set along with the date.

Which entities have a CIN, and what to do for the rest

The first question for any business customer is whether a CIN is even the right identifier. Many Indian businesses are not companies.

Entity typeIdentifierWhat to use
Private or public limited company, one person companyCINThis API
Limited liability partnershipLLPIN, a different formatNot covered by this endpoint; the CIN pattern will reject it
Partnership firmNone from the registrarPAN of the firm and GSTIN; ask for the deed
Sole proprietorshipNoneThe proprietor's PAN, GSTIN, Udyam
Trust or societyRegistration number under the relevant lawPAN of the trust, and documents
Foreign company with an Indian presenceRegistration number of a different kindDocuments; PAN if it has one

If your form asks for the entity type first and then the right identifier, you avoid most of the confusion. A common failure is a customer entering an LLPIN or a PAN into a CIN field. The format check rejects both with a 400, which is correct, and your form should explain what a CIN looks like and offer "I am not a company" as a path. For the non-company entities you still have a good verification chain: the PAN of the entity (a firm or LLP carries F in the fourth position, a trust T, a company C), a GSTIN if the entity is registered for GST, and, for a small enterprise, Udyam.

A KYB chain built around the CIN

A reliable chain runs from cheap and local to expensive and external, and it uses each result to confirm the next.

  1. Collect the entity type, then the identifier. Validate the CIN locally with the helper above.
  2. Look up the CIN. If the company is not found or is not active, stop and route.
  3. Check the company PAN. A company's PAN has C as its fourth character. Verify it with the PAN API, sending the registered name from the CIN response. A match connects the tax identity to the corporate identity.
  4. Find or verify the GST registration. If the company gave a GSTIN, check that characters 3 to 12 equal the PAN and verify it. If it gave none, the PAN to GSTIN API lists the registrations.
  5. Screen the signatory. Compare the applicant's name with the directors, or collect the authorising document.
  6. Verify the bank account against the registered company name.

Each step produces a record you can quote later, and each fails independently with a specific reason, so your decision log reads like an argument and not like a black box. For a deeper design for lenders see the KYC use case and the guide on business verification with GSTIN, CIN and Udyam.

Calling the API from Node.js, Python and cURL

The clients validate the CIN locally, send an idempotency key, retry only the failures that can succeed on retry, and apply the three-outcome rule from above.

JavaScript
// verify-cin.mjs  (Node.js 18+); uses inspectCin from above
import { randomUUID } from "node:crypto";
import { inspectCin } from "./cin-check.mjs";

const BASE = "https://api-b2b.stampmitra.in";
const RETRYABLE = new Set([429, 502, 503, 504]);
const sleep = (ms) => new Promise((r) => setTimeout(r, ms));
const isActive = (s) => String(s ?? "").trim().toLowerCase() === "active";

export async function verifyCin(raw) {
  const local = inspectCin(raw);
  if (!local.ok) return { outcome: "bad_input", reason: local.reason };
  const key = randomUUID();

  for (let attempt = 1; attempt <= 4; attempt++) {
    let res;
    try {
      res = await fetch(`${BASE}/v1/verify/cin`, {
        method: "POST",
        headers: { Authorization: `Bearer ${process.env.STAMPMITRA_API_KEY}`, "Content-Type": "application/json", "Idempotency-Key": key },
        body: JSON.stringify({ cin: local.cin }),
        signal: AbortSignal.timeout(25_000),
      });
    } catch {
      if (attempt === 4) return { outcome: "unavailable" };
      await sleep(2 ** attempt * 500 + Math.random() * 250);
      continue;
    }
    const json = await res.json().catch(() => ({}));
    if (res.ok) {
      const found = json.valid === true;
      const active = found && isActive(json.cinStatus) && isActive(json.companyStatus);
      const yearOk = !json.incorporationDate || String(json.incorporationDate).startsWith(String(local.incorporationYear));
      return {
        outcome: active ? "active" : found ? "found_review" : "not_found",
        referenceId: json.referenceId,
        companyName: json.companyName,
        cinStatus: json.cinStatus,
        companyStatus: json.companyStatus,
        yearConsistent: yearOk,
        directorDins: (json.directors ?? []).map((d) => d.din).sort(),
      };
    }
    if (RETRYABLE.has(res.status) && attempt < 4) {
      await sleep(2 ** attempt * 500 + Math.random() * 250);
      continue;
    }
    const err = json.error ?? {};
    return { outcome: res.status === 402 ? "wallet_empty" : "error", status: res.status, code: err.code, requestId: err.requestId };
  }
}
Python
# verify_cin.py  (Python 3.9+, pip install requests)
import os, re, time, uuid, random, requests

BASE = "https://api-b2b.stampmitra.in"
CIN_RE = re.compile(r"^[LU][0-9]{5}[A-Z]{2}[0-9]{4}[A-Z]{3}[0-9]{6}$")
RETRYABLE = {429, 502, 503, 504}

def _active(value):
    return str(value or "").strip().lower() == "active"

def verify_cin(raw):
    cin = re.sub(r"\s+", "", raw or "").upper()
    if not CIN_RE.match(cin):
        return {"outcome": "bad_input"}
    key = str(uuid.uuid4())

    for attempt in range(1, 5):
        try:
            r = requests.post(
                f"{BASE}/v1/verify/cin",
                json={"cin": cin},
                headers={"Authorization": f"Bearer {os.environ['STAMPMITRA_API_KEY']}", "Idempotency-Key": key},
                timeout=25,
            )
        except requests.RequestException:
            if attempt == 4:
                return {"outcome": "unavailable"}
            time.sleep(2 ** attempt * 0.5 + random.random() * 0.25)
            continue
        body = r.json() if r.content else {}
        if r.ok:
            found = body.get("valid") is True
            active = found and _active(body.get("cinStatus")) and _active(body.get("companyStatus"))
            return {
                "outcome": "active" if active else ("found_review" if found else "not_found"),
                "referenceId": body.get("referenceId"),
                "companyName": body.get("companyName"),
                "directorDins": sorted(d.get("din") for d in body.get("directors") or [] if d.get("din")),
            }
        if r.status_code in RETRYABLE and attempt < 4:
            time.sleep(2 ** attempt * 0.5 + random.random() * 0.25)
            continue
        err = body.get("error", {})
        return {"outcome": "wallet_empty" if r.status_code == 402 else "error", "status": r.status_code,
                "code": err.get("code"), "requestId": err.get("requestId")}
cURL
curl -X POST "https://api-b2b.stampmitra.in/v1/verify/cin" \
  -H "Authorization: Bearer $STAMPMITRA_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"cin":"U74999DL2015PTC284009"}'

The isActive comparison above is deliberately strict about the word active. If you see another spelling in your own responses for a state that you consider acceptable, add it to a small allow-list in configuration, not to the code. The SDKs page lists libraries that wrap this call, and the Postman collection is good for trying it by hand.

Errors, retries and idempotency

All failures share one body shape: { "error": { "code", "message", "requestId" } }. Branch on status and code, log requestId, and do not parse message.

  • 400Validation errorBAD_REQUEST

    cin must match the format U74999DL2015PTC284009

  • 401Missing or invalid API keyUNAUTHORIZED

    Missing or invalid API key.

  • 402Insufficient wallet balancePAYMENT_REQUIRED

    Insufficient fulfilment wallet balance to cover this call.

  • 403Valid key, missing required scopeFORBIDDEN

    API key is valid but lacks the required scope for this endpoint.

  • 429Rate limitedTOO_MANY_REQUESTS

    Rate limit exceeded: 60 requests per 60 seconds for this endpoint.

  • 502Upstream verification service unreachableINTERNAL_ERROR

    Unable to reach the order/customer service right now

A 400 on this endpoint means the CIN failed the pattern or the body had an unknown property; a CIN that is well formed but not on record is a 200 with valid: false. A 402 means your wallet cannot cover the call and nothing was looked up. A 429 means you hit your plan's per-minute limit, and a 502 means the upstream source could not be reached, so there is no verdict yet.

Company lookups can be slower than a PAN check, which is why the clients above allow a longer timeout. Because a timeout leaves you not knowing whether the lookup ran, send an Idempotency-Key and reuse it on the retry: the API then returns the stored response without a second lookup or a second debit. Use a fresh key for each new verification, and note that reusing a key with a different CIN is rejected with a 422 IDEMPOTENCY_KEY_REUSED, while a second request with the same key that arrives while the first is still running is answered 409 IDEMPOTENCY_IN_PROGRESS with a Retry-After header: wait, then resend the identical request and you get the first answer.

Billing, limits and monitoring

A completed lookup is billed, found or not found. A failed call is not billed and sandbox is never billed. In production the charge comes from your prepaid wallet at the per-call rate, ₹5 on pay-as-you-go before GST, lower on Growth and Scale (pricing has the table). When the wallet cannot cover a call you receive a 402 before the lookup runs.

Rate limits are per plan and shared by all keys and routes in an environment, counted per minute: at the time of writing 60 on pay-as-you-go, 300 on Growth, 1,000 on Scale and 10 for a sandbox key, plus 200 requests a day per organisation. A fixed window lets a burst across a minute boundary briefly exceed the figure, so pace jobs below it. Extra keys do not add capacity and rotating keys to evade the limit is prohibited by the acceptable use policy.

Calls appear in your request logs, in the dashboard and through the logs endpoint, for as long as your plan retains them (30, 90 or 365 days at the time of writing). For a KYB flow, the most useful dashboard has three lines: found-but-review as a share of answers, which tells you whether applicants are submitting stale or wrong CINs; not-found as a share, which tells you about typos and entity-type confusion at the form; and 402 and 502 counts, which tell you about operations.

Sandbox and production: what to expect

Sandbox keys start with sk_test_ and production keys with sk_live_. The base URL and request are identical.

Sandbox answers are stored samples, not lookups. Any well-formed CIN gets the full documented example record (valid: true, status: VALID, a company called COMPANY NAME and two directors), with the CIN you sent in cin; the reserved test input U00000SB0000SANDBOX999999 is the exception and returns the not-found answer (valid: false, status: INVALID, empty director lists). That value is 25 characters, longer than a real 21-character CIN, so the format check rejects it with a 400 before the sample is chosen; use a well-formed 21-character CIN such as the documentation example for the found case, and expect the same answer every time. Sandbox responses carry sandbox: true and a notice.

Two limits of the sandbox matter for KYB. Its valid answer carries two directors, so you can exercise your signatory and change-detection parsing against it, but it is always the same two people; build further fixtures from the documented example, with data you invent. And it is deliberately small: 10 requests a minute and 200 a day per organisation (the day resets at midnight IST), after which the API returns a 429, and call history is kept for 30 days. The readiness runner in your dashboard runs scripted scenarios without using the quota. To go live you apply for production access from the dashboard, which is reviewed, fund the wallet, create a production key with only the scopes you need, restrict it by IP where your plan allows, and release behind a flag. The guide on sandbox versus production keys has the details.

Matching company names without false alarms

The registrar holds the name in capitals with the suffix in a standard form, for example PRIVATE LIMITED. Your customer types whatever they like. A comparison that is too strict generates review work; one that is too loose lets a different company through. A middle path works well for names.

Uppercase both sides. Replace & with AND. Expand PVT, PVT. and P LTD to PRIVATE LIMITED, and LTD and LTD. to LIMITED. Remove punctuation and collapse spaces. Then compare in two stages: exact equality after normalisation passes; anything else goes to review with both names shown. Do not use a fuzzy score as a pass criterion for company names, because the cheapest way to impersonate a company is to choose a name one word away from a real one.

Remember also that a company can change its name while keeping its CIN. If the name in the registry differs from the name on an old contract, that is a question to ask, not a discrepancy to flag as fraud.

A worked scenario: a small-business lender checks a borrower

Take an invented lender, Banyan Credit, reviewing a working-capital application from a company, Lotus Packaging Private Limited. The applicant is a person named in the application as the managing director.

The application form first asks for the entity type, "Private limited company", and then for the CIN. The code trims and uppercases the value and runs inspectCin, which extracts the year, the state letters and the ownership code. The ownership code is PTC, consistent with the declared type; had it been PLC the form would have asked a clarifying question.

The paid lookup comes back with valid: true, both statuses active, a registered name that matches the typed name after normalisation, and four directors. The year in incorporationDate agrees with the year in the CIN. The system stores the referenceId, the statuses, the date and a hash of the sorted DINs.

Next, the application's signatory is compared with the directors: the managing director appears, with the designation recorded by the registrar. The lender then verifies the company PAN, which has C in the fourth position, and sends the registered name from the CIN response. The PAN result matches. A GSTIN was supplied; its embedded PAN equals the company PAN and the GSTIN check shows an active registration. A bank account verification against the registered company name completes the chain. Every step has its own referenceId, and the credit file contains a short, consistent audit trail.

Three months later, before a second drawdown, the lender re-runs the CIN lookup. The set of DINs has changed: one director left and another joined. Nothing is blocked automatically. The change raises an event that a credit officer reads alongside the purchase history. The officer asks for the updated board composition and records the response. This is the intended pattern: the API surfaces the change, a person judges it.

Cost modelling and moving from another provider

Cost is linear. Count onboarding lookups, scheduled re-checks and event-triggered checks, multiply by the per-call rate, add 18% GST, and remember that a KYB chain is several calls per entity: CIN, PAN, GSTIN and bank at minimum. The lowest-cost improvements are the free ones: validate the pattern, year and entity type locally, and do not look up a CIN for an applicant who selected a non-company type. Re-check by risk and by event, not on a fixed calendar for every entity. The Growth and Scale plans lower the per-call rates and may pay for themselves at your volume; compare on the pricing page.

If you are moving from another company-data provider, begin with a mapping table of the fields you consume. Check whether your current provider returns data that this endpoint does not, such as shareholding, charges or filing history; decide for each whether the feature is dropped, sourced from the applicant, or kept on the old provider. Port your business rule, not the old branching code: active means both statuses active, review means found but not active, not found means not found. Run both providers side by side on a sample of real CINs, review each disagreement by hand, and expect most to be explained by the timing of registry updates and status wording. Send the rest to support with the referenceId values.

Edge cases and mistakes

  • LLPIN or PAN in the CIN field. Rejected with a 400 by design. Fix it in the form with an entity-type question.
  • Lowercase and spaces. Normalise before validating; the API rejects lowercase.
  • Treating valid as the whole answer. Read both status fields.
  • Storing the CIN as a permanent key. It can change. Store the last-verified date and the registration number segment alongside it.
  • Expecting shareholders. The response has directors only.
  • Treating a director list as authority to sign. It is not; ask for a resolution when the signatory is not a director.
  • Trusting the contact email. If it is present it may be stale.
  • Rejecting on a name difference. Companies change names and suffixes get abbreviated; route to review.
  • Fuzzy-matching company names as a pass rule. Use exact equality after normalisation, with review for the rest.
  • Logging directors' names. Keep them out of logs and show them only to staff who need them.
  • Looking up a company you have no reason to look up. The lookup is for onboarding and monitoring relationships you have, not for browsing.

Sources and what to confirm

  • StampMitra CIN verification reference, API docs: endpoint, scope, parameters, response and error examples, checked against the product data in 2026.
  • StampMitra pricing and authentication pages: per-call rates, plan limits, key model and environments, read in 2026.
  • Ministry of Corporate Affairs, company master data and CIN structure: the segment layout and ownership codes on this page are widely published conventions; confirm them, the current status vocabulary and the director-count rules against the MCA portal and the Companies Act, 2013 before you encode anything beyond the pattern.
  • StampMitra acceptable use policy: purpose limits and the ban on enumeration and rate-limit evasion, read in 2026.

Sandbox test values

Send one of these values as cin with a sandbox key (sk_test_...) to get that outcome. They are fake, valid in format, and never reach a real source or your wallet. Add the header X-Sandbox-Delay-Ms (up to 3000) to hold the reply and test your client timeout.

Sandbox test values
ScenarioInput to sendWhat you get back
Valid, active company
U00000SB2020PTC000001
200
200 with valid true, cinStatus ACTIVE, companyName and directors.
CIN not found
U00000SB2020PTC000002
200
200 with valid false and no company details.
Company struck off
U00000SB2020PTC000004
200
200 with valid true but cinStatus STRIKE_OFF and companyStatus Strike Off.
Verification source times out
U00000SB2020PTC000005
502INTERNAL_ERROR
Our documented upstream-failure error, answered at once (no waiting). Retry with the same Idempotency-Key. Add the header X-Sandbox-Delay-Ms (up to 3000) to hold the reply and test your client timeout.
Verification source unavailable
U00000SB2020PTC000006
502INTERNAL_ERROR
Our documented 5xx error for an unreachable source (the same body a live call gives when the source is down). Safe to retry after a short delay.
Rate limited
U00000SB2020PTC000007
429TOO_MANY_REQUESTS
Too many requests. Back off and retry with exponential delay and jitter.
Wallet balance too low
U00000SB2020PTC000008
402PAYMENT_REQUIRED
The wallet cannot cover the call (catalogue entry INSUFFICIENT_WALLET_BALANCE, envelope code PAYMENT_REQUIRED). Nothing is debited in the sandbox. Top up and retry with the same Idempotency-Key.
Invalid format
U00000SB2020PTC0000
400BAD_REQUEST
Validation error that names the field. Nothing is looked up and nothing is charged.

Frequently asked questions

What does each part of a CIN mean?

A CIN has 21 characters: L or U for listed or unlisted, a five-digit industry code, two letters for the registered office state, the four-digit year of incorporation, three letters for the ownership type such as PTC or PLC, and a six-digit registration number from the registrar.

Does the CIN API return the company's directors?

Yes, when the CIN is valid it returns a list of directors with DIN, name, date of birth, designation and address (an older list with DIN, name and designation only is kept too). It does not return appointment dates, DIN status or shareholding, so it supports signatory screening and change detection but not a full beneficial-ownership check.

Does a director list prove that the applicant can sign for the company?

No. A company can authorise a non-director to sign through a board resolution, and a director of one company has no authority over another. Compare the signatory with the directors, and when they are not a director, collect the authorising document and record that you asked.

What is the difference between valid, cinStatus and companyStatus?

The valid flag is true exactly when status is VALID. cinStatus is the registrar's own company state, and companyStatus repeats it. A company can be on record yet struck off, dormant, amalgamated or under liquidation, so require valid true and active statuses, and send found-but-not-active companies to review.

Can I verify an LLP with this endpoint?

No. LLPs have an LLPIN in a different format, and the CIN pattern rejects it with a 400. For an LLP use the entity's PAN, which carries F in the fourth position, a GSTIN if registered, and documents such as the LLP agreement.

Why does a CIN I verified last year now return not found?

The CIN changes when the facts it encodes change, for example on listing, conversion from private to public, or a move of the registered office to another state. Ask the customer for the current CIN, and store the last-verified date next to each CIN you keep.

Am I billed when the CIN is not found?

Yes. A call that completes with an answer is billed, and valid false is an answer. Failed calls with a 400, 429 or 502 are not billed and sandbox calls are never billed. Validate the pattern, the year and the entity type locally before calling.

Which CIN should I use in the sandbox?

Use any well-formed 21-character CIN, such as the documentation example; it returns the full documented example record with two directors, the same every time. The reserved not-found test value is 25 characters and fails the format check, so a not-found answer cannot be produced in sandbox with a well-formed CIN.

How should I compare the company name with what the applicant typed?

Normalise both sides by uppercasing, replacing ampersands, expanding Pvt and Ltd and removing punctuation, then require exact equality. Send other cases to review with both names shown. Avoid fuzzy scores as a pass rule, because impersonators choose names one word away from a real company.

What are the rate limits for CIN verification?

The limit belongs to your plan and is shared by all keys and routes in an environment, counted per minute. At the time of writing it is 60 on pay-as-you-go, 300 on Growth and 1,000 on Scale, with 10 for a sandbox key, plus 200 requests a day per organisation. Check the pricing page for current figures.

How do I make retries safe after a timeout?

Send an Idempotency-Key header and reuse the same key on the retry. The API then returns the stored response without a second lookup or debit. Using the same key with a different CIN is rejected with a 422 IDEMPOTENCY_KEY_REUSED, and a concurrent request with the same key gets a 409 IDEMPOTENCY_IN_PROGRESS with Retry-After.

Does the directors data mean I can skip beneficial-ownership checks?

No. The response has directors, not shareholders or controlling persons. Beneficial-ownership requirements depend on your regulator and need shareholder information from the company itself. Use the director data as one input and keep a record of what the company declared.

Build with AI

Integrate Company CIN with one prompt.

Pick your AI tool and copy a prompt written for this API. It already has the endpoints, fields and errors.

Claude prompt · Company CIN · 7,665 charactersOpen Claude ↗
I'm using Claude to build this.

Integrate the StampMitra API (Indian identity verification and e-Stamp Paper) into my app.

API facts (source of truth: https://developer.stampmitra.in/llms.txt)
- Base URL: https://api-b2b.stampmitra.in
- Auth: send "Authorization: Bearer <key>" (or "x-api-key: <key>") on every request
- Requests and responses are JSON. Send Content-Type: application/json on POST.
- Use a SANDBOX key (sk_test_...) while building. Read it from the environment variable STAMPMITRA_API_KEY.
- Never hard-code the key, never expose it to the browser, never log it.
- Call StampMitra only from server-side code. The UI calls my own backend route.

How to build it
- First inspect my project: language, framework, package manager, HTTP client, test runner and folder conventions. Follow them. If the project is empty, ask which stack I want before writing code.
- The official StampMitra SDKs (Node.js, Python, PHP, Java, Go, .NET, Ruby) are pre-release 0.1.0 and not yet published to npm, PyPI, Packagist, Maven Central, the Go module proxy, NuGet or RubyGems, so do not run an install command for them. Call the REST API over HTTPS with the HTTP client my project already uses. Do not install or invent a StampMitra package.
- Put every StampMitra call in ONE small client module. It adds the auth header, applies a 15 second timeout and turns error responses into a typed error with status, code, message and requestId.
- Add STAMPMITRA_API_KEY to .env.example with a placeholder (sk_test_xxx). Fail fast at startup with a clear message if it is missing. Never commit real keys.

Error handling (every error body is { error: { code, message, requestId } })
- 400 BAD_REQUEST: invalid input. Show a field-level message. Do not retry.
- 401 UNAUTHORIZED: key missing or invalid. This is my configuration problem, not the end user's. Show a generic "service unavailable" message, log the requestId, do not retry.
- 402 PAYMENT_REQUIRED: not enough wallet balance (production). Surface it to me as an operational alert, not to the end user.
- 403 FORBIDDEN: the key lacks the required scope or the service is not enabled. Say which scope the endpoint needs.
- 404 NOT_FOUND: wrong id or path. Do not retry.
- 429 TOO_MANY_REQUESTS (or, on a sandbox key, SANDBOX_RATE_LIMIT, SANDBOX_DAILY_LIMIT, SANDBOX_IP_LIMIT): rate limit, or the sandbox limits of 10 requests a minute and 200 a day per organisation. Retry at most 3 times with exponential backoff and jitter (honour Retry-After if present), then show a friendly "try again shortly" message.
- 5xx / 502 / network timeout: retry reads (GET) up to 2 times. For POST calls retry at most once, then show a friendly message.
- Log requestId and referenceId with every failure. Never log the API key, a full PAN, bank account number or whole response bodies.

TASK: Integrate the StampMitra "Company CIN" API
Verify a Company CIN in real time.
Production service code: cin.verify

ENDPOINT: POST /v1/verify/cin
- Verify Company CIN
- Required scope: verification.cin.read
- Parameters:
  - cin (string, required): Corporate Identification Number (21 characters) or LLPIN, for example U74999DL2015PTC284009.
- Example request body: {"cin":"U72900KA2015PTC082988"}
- Response fields: referenceId, verificationId, valid, status, cin, companyName, registrationNumber, incorporationDate, cinStatus, email, incorporationCountry, directorDetails, companyStatus, directors
- Example response: {"referenceId":"SMV-20260927-6R38Y3","verificationId":"VRF-6C2N9V4HQ7ZE","valid":true,"status":"VALID","cin":"U72900KA2015PTC082988","companyName":"COMPANY NAME","registrationNumber":82987,"incorporationDate":"2015-09-23","cinStatus":"ACTIVE","email":"[email protected]","incorporationCountry":"INDIA","directorDetails":[{"din":"07168822","name":"Frank Kelvin","dob":"1997-07-21","designation":"DIRECTOR","address":"ST BED KORAMANGALA, BANGALORE, KARNATAKA, INDIA, 566634"},{"din":"07168826","name":"John Doe","dob":"1997-02-07","designation":"DIRECTOR","address":"GAUTAM NAGAR, NOIDA, UTTAR PRADESH, INDIA, 211361"}],"companyStatus":"ACTIVE","directors":[{"din":"07168822","name":"Frank Kelvin","designation":"DIRECTOR"},{"din":"07168826","name":"John Doe","designation":"DIRECTOR"}]}
- Errors this endpoint can return:
  - 401 UNAUTHORIZED: Missing or invalid API key
  - 403 FORBIDDEN: Valid key, missing required scope
  - 400 BAD_REQUEST: Validation error
  - 402 PAYMENT_REQUIRED: Insufficient wallet balance
  - 429 TOO_MANY_REQUESTS: Rate limited
  - 502 INTERNAL_ERROR: Upstream verification service unreachable
- Notes: Input format is validated up front - a malformed pan/gstin/etc. fails fast with a 400 rather than being submitted for verification. referenceId (format SMV-YYYYMMDD-XXXXXXX) is StampMitra's own transaction id for this call and is always present, including on a negative (valid: false / found: false) result - both positive and negative determinations are completed, billable verifications. This is not an idempotency key. verificationId (format VRF-XXXXXXXXXXXX) is StampMitra's own id for this verification, generated for every call; quote it in support requests. Every field except referenceId, verificationId, valid and cin is optional and is omitted when the registry does not provide it. Dates are ISO yyyy-mm-dd strings and registrationNumber is a number. A CIN that is not found returns HTTP 200 with valid false, status INVALID, the number you sent and empty director lists. valid is true exactly when status is VALID; cinStatus carries the company state (for example ACTIVE) and companyStatus repeats it. directors (din, name, designation) is kept for existing integrations; directorDetails has the full entries including date of birth and address, which are personal data to handle accordingly.

Rules for this verification
- Validate cin on client and server before calling. A malformed value returns 400.
- "valid": false (or found: false) is a completed, billable verification. Show a clear "not valid" result, not a crash.
- Mask sensitive identifiers in the UI after submit and never log them in full.
- Store referenceId, the outcome and a timestamp with the record for audit. Do not re-call on every page load: cache per record.
- Build: one backend route that calls StampMitra, one small form, and a result card with loading, success, not-valid and error states.

Test in Sandbox
- A successful call, a validation failure (expect 400), a missing or wrong key (expect 401) and the 429 / 5xx retry path.

How I want you to work:
1. Before writing code, list the files you will create or change and the plan in 5-8 bullets. Then implement without pausing for approval.
2. If the StampMitra MCP server (@stampmitra/mcp-server) is connected, use it to run real sandbox calls and check the response shape before coding against it.
3. Write tests for the API client module and the validation (mock the HTTP layer).
4. At the end, summarise what you changed, how to run it and what I must do manually (add the key, restart the server).

Acceptance checklist:
- Works end to end in Sandbox with the real response fields (no mocked data in the final path)
- No secrets in client code, logs, URLs or git
- Clear loading, empty and error states, including 400, 401, 402, 403, 429 and 5xx
- referenceId (and requestId on failures) is stored or logged for audit
- Inputs are validated on client and server, and sensitive values are masked in the UI
- Tests cover the API client, validation and at least one error path
- A short note on how to run it and how to switch from Sandbox to production later
- If anything is missing (like my key), ask me. Do not guess endpoints, fields or values.

Start with a sandbox key.

Free to try. Make your first test call today.