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.
| Characters | Segment | What it carries |
|---|---|---|
| 1 | Listing status | L for a company listed on a stock exchange, U for unlisted |
| 2 to 6 | Industry code | Five digits from the industrial classification used at registration |
| 7 to 8 | State code | Two letters for the state of the registered office, such as DL, MH, KA |
| 9 to 12 | Year | The year of incorporation |
| 13 to 15 | Ownership type | Three letters describing the kind of company |
| 16 to 21 | Registration number | Six 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.
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
| Field | Type | Description |
|---|---|---|
Authorizationrequired | header | Bearer <api-key> (e.g. sk_test_... in sandbox, sk_live_... in production). The x-api-key header is also accepted. |
cinrequired | string | Corporate Identification Number (21 characters) or LLPIN, for example U74999DL2015PTC284009. |
Response fields
| Field | Type | Description |
|---|---|---|
referenceId | string | StampMitra's own transaction id for this call (SMV-YYYYMMDD-XXXXXXX). Always present, including on a negative result. |
verificationId | string | StampMitra'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. |
valid | boolean | Whether the CIN is valid. Always present. True exactly when status is VALID. |
status | string | Registry outcome of the lookup: VALID or INVALID. |
cin | string | The CIN that was verified. Always present; on an invalid CIN it is the number you sent. |
companyName | string | Registered company name, when the CIN is valid. |
registrationNumber | number | Company registration number, a number (not a string), when available. |
incorporationDate | string | Date of incorporation, ISO yyyy-mm-dd. |
cinStatus | string | Company status as recorded by the MCA, for example ACTIVE. |
email | string | Registered email address of the company. |
incorporationCountry | string | Country of incorporation, for example INDIA. |
directorDetails | array | Directors / designated partners on record, with date of birth and address. |
directorDetails[].din | string | Director Identification Number (DIN). |
directorDetails[].name | string | Director's name. |
directorDetails[].dob | string | Director's date of birth, ISO yyyy-mm-dd. |
directorDetails[].designation | string | Director's designation, for example DIRECTOR. |
directorDetails[].address | string | Director's address on record, as one string. |
companyStatus | string | Same value as cinStatus. Kept so existing integrations keep working. |
directors | array | Directors with name, DIN and designation only. Kept so existing integrations keep working; directorDetails has the full entries. |
directors[].din | string | Director Identification Number (DIN). |
directors[].name | string | Director's name. |
directors[].designation | string | Director'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 type | Identifier | What to use |
|---|---|---|
| Private or public limited company, one person company | CIN | This API |
| Limited liability partnership | LLPIN, a different format | Not covered by this endpoint; the CIN pattern will reject it |
| Partnership firm | None from the registrar | PAN of the firm and GSTIN; ask for the deed |
| Sole proprietorship | None | The proprietor's PAN, GSTIN, Udyam |
| Trust or society | Registration number under the relevant law | PAN of the trust, and documents |
| Foreign company with an Indian presence | Registration number of a different kind | Documents; 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.
- Collect the entity type, then the identifier. Validate the CIN locally with the helper above.
- Look up the CIN. If the company is not found or is not active, stop and route.
- Check the company PAN. A company's PAN has
Cas 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. - 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.
- Screen the signatory. Compare the applicant's name with the directors, or collect the authorising document.
- 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.
// 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 };
}
}# 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 -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_REQUESTcin must match the format U74999DL2015PTC284009
401Missing or invalid API keyUNAUTHORIZEDMissing or invalid API key.
402Insufficient wallet balancePAYMENT_REQUIREDInsufficient fulfilment wallet balance to cover this call.
403Valid key, missing required scopeFORBIDDENAPI key is valid but lacks the required scope for this endpoint.
429Rate limitedTOO_MANY_REQUESTSRate limit exceeded: 60 requests per 60 seconds for this endpoint.
502Upstream verification service unreachableINTERNAL_ERRORUnable 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
validas 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.
Handling directors' data and consent in general terms
The company master data comes from a public registry, which is why the lookup is possible. It still contains personal data, namely the names and identifiers of directors. Treat it as you would any personal data: collect and use it for a stated purpose such as onboarding or periodic review, tell applicants what you check, keep a record of that notice, limit access inside your company, and keep the stored subset small. Do not use the API to build lists of companies or directors, and do not run lookups on entities you have no relationship or lawful reason to check; the acceptable use policy prohibits enumeration.
A compact audit row is enough: your entity id, referenceId, the CIN, the statuses, the verification date, a hash of the sorted DIN set, the rule version and the reviewer's note. India's Digital Personal Data Protection Act, 2023 is being brought into force in phases and applies to personal data in this flow. This page is general information and not legal advice; confirm your obligations with qualified counsel. The developer privacy policy and the data processing addendum describe the division of responsibilities with StampMitra.
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.
| Scenario | Input to send | What you get back |
|---|---|---|
| Valid, active company | U00000SB2020PTC000001 | 200 |
| CIN not found | U00000SB2020PTC000002 | 200 |
| Company struck off | U00000SB2020PTC000004 | 200 |
| Verification source times out | U00000SB2020PTC000005 | 502INTERNAL_ERROR |
| Verification source unavailable | U00000SB2020PTC000006 | 502INTERNAL_ERROR |
| Rate limited | U00000SB2020PTC000007 | 429TOO_MANY_REQUESTS |
| Wallet balance too low | U00000SB2020PTC000008 | 402PAYMENT_REQUIRED |
| Invalid format | U00000SB2020PTC0000 | 400BAD_REQUEST |
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.