StampMitraDevelopers
LiveVerification API

Vehicle RC Verification API for India: Fields, Limits and Fleet-Scale Use

Verify a Vehicle RC in real time.

POST/v1/verify/rcScope verification.rc.read₹9 per call
curl -X POST "https://api-b2b.stampmitra.in/v1/verify/rc" \
  -H "Authorization: Bearer $STAMPMITRA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "vehicleNumber": "MH12AB1234"
  }'
Example responseJSON
{
  "referenceId": "SMV-20260927-3D71Q9",
  "regNo": "MH12AB1234",
  "registrationStatus": "VALID",
  "ownerName": "RAHUL KUMAR",
  "ownerFatherName": "SURESH KUMAR",
  "vehicleClass": "LMV",
  "vehicleManufacturerName": "MARUTI SUZUKI",
  "model": "SWIFT",
  "vehicleColor": "WHITE",
  "chassis": "MA3ERLF1S00123456",
  "engine": "K12MN1234567",
  "registrationDate": "2019-05-14",
  "rcStatus": "ACTIVE",
  "rcExpiryDate": "2034-05-13",
  "insuranceUpto": "2025-05-13",
  "isCommercial": false
}

A vehicle RC verification API turns a registration number into the record held against it: whether the registration is valid, who the registered owner is, what the vehicle is, and the dates that matter for lending, insurance and fleet decisions. With StampMitra you send POST /v1/verify/rc with one field, vehicleNumber, using a key that carries the verification.rc.read scope. The response includes registration status, owner name, father's name, vehicle class, make, model, colour, chassis, engine, registration date, RC status, RC expiry, an insurance date, a commercial flag and a referenceId.

This page is the product reference with the decisions around it. It is for the engineer building fleet onboarding, vehicle-backed lending, motor insurance quotes or a used-vehicle marketplace, and for the risk or operations lead who owns the rules. If you want the step-by-step build with a decision function and a fleet example, the separate vehicle RC verification guide walks through it. This page goes elsewhere: how to read each field and how fields disagree, what the record cannot tell you, how to run verification at fleet scale within rate limits, how often to re-check, what it costs, and what to do about the personal data in the response.

The contract details are lifted from the Vehicle RC entry in StampMitra's API reference, and anywhere that entry is quiet, this page admits it. Read it as general information rather than legal advice.

Key takeaways

  • Endpoint: POST https://api-b2b.stampmitra.in/v1/verify/rc. Body: { "vehicleNumber": "MH12AB1234" }. Scope: verification.rc.read.
  • RC is a premium-priced verification: ₹9 per completed call on pay-as-you-go, excluding GST. Sandbox is free and never debits your wallet.
  • The record is a snapshot of what is registered, not proof that the person in front of you owns or controls the vehicle.
  • registrationStatus and rcStatus are different fields. Read both, and write your handling as an allow-list.
  • insuranceUpto is a date indicator. It is not confirmation from an insurer and the endpoint has no policy number or insurer field.
  • The reference documents no fields for hypothecation, pending challans or ownership history. Do not build rules that depend on them.
  • Owner name and father's name are personal data. Keep them out of logs, mask them in the UI and store the decision and referenceId instead.
  • A malformed vehicleNumber fails with 400 before verification and is not billed. A negative determination is a completed, billed check.
  • Sensitive scopes such as RC default to requiring an IP or CIDR allowlist on the key. Call from your backend only.

What an RC record is, and what verification returns

A registration certificate is the document that links a vehicle to its registered owner. Registration is done by the transport authority of the state where the vehicle is registered, so the record starts life as a state-level entry. What you get from an API is that record in structured form, read at the moment of the call. The StampMitra reference does not name the upstream source, so do not assume anything about update frequency beyond the fact that the response is a point-in-time snapshot.

The request and response reference below is rendered from the same API data that drives the docs, so it cannot drift from the endpoint.

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.
vehicleNumberrequiredstringVehicle registration number.

Response fields

Response fields
FieldType
referenceIdstring
regNostring
registrationStatusstring
ownerNamestring
ownerFatherNamestring
vehicleClassstring
vehicleManufacturerNamestring
modelstring
vehicleColorstring
chassisstring
enginestring
registrationDatestring
rcStatusstring
rcExpiryDatestring
insuranceUptostring
isCommercialboolean
FieldWhat it carriesTypical use
referenceIdStampMitra transaction id, format SMV-YYYYMMDD-XXXXXXXAudit trail, support
regNoThe registration number the record is held againstConfirm what you looked up
registrationStatusWhether the registration is currently validPrimary eligibility gate
ownerName, ownerFatherNameRegistered owner detailsMatch against your applicant
vehicleClassCategory such as LMVPermitted use, licence class pairing
vehicleManufacturerName, model, vehicleColorThe vehicle descriptionMatch against listing or inspection
chassis, engineIdentifying numbersMatch to plate and inspection report
registrationDateDate of first registration in the recordVehicle age
rcStatusStatus of the certificateSecond eligibility gate
rcExpiryDateDate the RC validity runs toTenure and renewal checks
insuranceUptoInsurance validity date as returnedIndicator only
isCommercialWhether registered as commercialDeclared-use consistency

Why two status fields

registrationStatus describes the registration. rcStatus describes the certificate. The sample shows VALID and ACTIVE, and the reference documents only that sample, not the full set of values. The right design is an allow-list: define the exact pairs you accept (today, the sample pair), and send any other combination, including values you have never seen, to a human instead of guessing whether SUSPENDED or EXPIRED or anything else means pass or fail. When you meet a new value in production, add it to your documented table after someone has decided what it means for your business.

What the record cannot tell you

This is the section risk teams skim and later wish they had read. An RC lookup is silent on several things people assume it covers.

Who is standing in front of you. The record names the registered owner. It does not prove the applicant is that person. Pair it with identity checks, such as PAN verification when the owner is your borrower, and a name match you perform yourself.

Hypothecation. The reference documents no field for a loan or hypothecation against the vehicle. A lender that needs to know whether another lender holds a charge must find that elsewhere.

Pending challans and legal holds. No traffic-fine or legal-hold field is documented. Do not describe the check to customers as a "clean vehicle" check.

Ownership history. You get the current registered owner, not the chain. For used-vehicle sales, how many owners the vehicle has had is a separate question.

Whether insurance is in force. insuranceUpto is a date. It is not an insurer name, a policy number or a confirmation. For underwriting or claims, confirm with the insurer.

Physical reality. Nothing here proves the vehicle exists where the seller says, or that the plate on the vehicle matches the paper. That is what inspection and chassis matching are for.

Writing these limits into your product copy and internal policy is not pedantry. It is what stops a sales team promising a customer more than the data can support.

Reading the fields when they disagree

Real vehicles produce combinations the sample never shows. How to reason about the common ones.

Valid registration, RC expiry in the past. Either the record lags a renewal or the certificate really lapsed. Do not auto-reject. Ask for the current RC and re-run later, because a recently renewed certificate is a plausible cause.

Valid registration, insurance date in the past. Common and unremarkable: insurance runs on an annual cycle, and a policy that lapsed last week looks exactly like one lapsed for two years. Decide your rule by purpose. A lender may require current insurance as a condition of disbursal. A marketplace may only display the date.

Owner name does not match the applicant. Reasons include a purchase not yet transferred, a vehicle registered in a company or family member's name, a different spelling, or fraud. A second-hand vehicle that was bought but not transferred is the most common innocent cause, and the right response is a request for transfer paperwork, not a refusal.

isCommercial conflicts with declared use. A vehicle registered as non-commercial offered for hire, or a commercial vehicle presented as private, is a flag. What you do with the flag depends on the product: a lender might reprice, a fleet platform might reject.

Chassis or engine does not match the inspection. Treat this as serious in used-vehicle and lending flows. It can be a transcription error in the inspection report, so check the report first, and if it is genuine, escalate.

Class and licence mismatch. vehicleClass is useful when pairing a driver to a vehicle. For fleets that also verify drivers, the Driving Licence verification API returns the licence validity and status to compare.

Matching names and numbers sensibly

Records are upper-case and abbreviate freely. Normalise both sides to upper case, remove punctuation, collapse whitespace and compare tokens, not strings. For chassis and engine numbers, compare after removing spaces and hyphens, and treat the letter O versus zero and I versus one as an inspection-entry risk to look at manually rather than silently forgive.

Registration number formats and input handling

Indian registration marks follow a recognisable pattern: letters for the state or union territory, a number for the registering authority, one or two series letters and a four-digit number. The reference sample, MH12AB1234, fits it, and the validation message reads "vehicleNumber must match the format MH12AB1234".

Users type plates with spaces, hyphens and lower case. Normalise first.

JavaScript
export function normaliseVehicleNumber(raw) {
  return String(raw).toUpperCase().replace(/[\s.\-]/g, "");
}

Do not write your own strict pattern and reject on that basis. Series and formats vary by period and by state, and a separate Bharat series exists with a different layout. The reference documents only the MH12AB1234 style, so test any other style you expect to see, such as a Bharat-series number, in sandbox and see how the endpoint responds before you rely on it. Normalise lightly, then let the API be the judge. A malformed value returns 400 before verification, is not billed, and the message names the field so your UI can show it.

Billing and failure behaviour

  • Metered as rc.verify, recorded after a successful response; in production the wallet is debited once the verification completes.
  • RC sits in the premium rate band with Passport. The rate is ₹9 per call on pay-as-you-go and falls on higher plans. Check the pricing page for the plan you are on. Rates are quoted excluding 18% GST.
  • A negative determination, for example a registration that is not valid, is a completed verification. It is recorded, billed and returns a referenceId.
  • 400 (malformed number), 401 (bad key) and 403 (missing scope) do not complete a verification and are not billed.
  • 402 PAYMENT_REQUIRED means the wallet is short. Top up; do not retry.
  • 429 TOO_MANY_REQUESTS means the endpoint rate limit was exceeded. The documented example reads "Rate limit exceeded: 60 requests per 60 seconds for this endpoint." Per-plan request limits differ, and in sandbox a 429 can also be a sandbox limit (10 a minute or 200 a day per organisation; code SANDBOX_RATE_LIMIT, SANDBOX_DAILY_LIMIT or SANDBOX_IP_LIMIT).
  • 502 INTERNAL_ERROR means the upstream verification service could not be reached. No completed check, no completed-call charge. Retry with backoff.
  • referenceId is not an idempotency key and the route documents no idempotency header, so a timed-out call may have completed and been billed.
StatusCodeMeaningYour action
400BAD_REQUESTvehicleNumber does not match the formatShow the message, ask for correction
401UNAUTHORIZEDMissing or invalid keyFix deployment, alert
402PAYMENT_REQUIREDWallet balance insufficientTop up, alert operations
403FORBIDDENKey lacks verification.rc.readIssue a key with the scope
429TOO_MANY_REQUESTSRate limit (or sandbox limit: SANDBOX_RATE_LIMIT, SANDBOX_DAILY_LIMIT or SANDBOX_IP_LIMIT)Back off with jitter
502INTERNAL_ERRORUpstream unreachableRetry with backoff

Every error has the same envelope: { "error": { "code", "message", "requestId" } }. Log the requestId.

  • 400Validation errorBAD_REQUEST

    vehicleNumber must match the format MH12AB1234

  • 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

Running verification at fleet scale

One call per vehicle is simple. A fleet of two thousand vehicles uploaded as a spreadsheet is a different engineering problem because of the rate limit, the cost and the failure handling.

Pace the batch

The endpoint carries a per-endpoint limit, and plan limits range from a modest figure on pay-as-you-go to far higher on Scale. Do not fire an entire upload in parallel. Use a worker pool with a concurrency cap and a token bucket sized below your plan's limit, and treat a 429 as a signal to slow down, not an error to log and drop.

JavaScript
import pLimit from "p-limit"; // or any small concurrency limiter

const limit = pLimit(4); // keep well below your plan's requests-per-minute

export async function verifyFleet(rows, verifyRc) {
  const results = await Promise.all(
    rows.map((row) =>
      limit(async () => {
        const out = await withBackoff(() => verifyRc(row.vehicleNumber));
        return { row, out };
      }),
    ),
  );
  return results;
}

async function withBackoff(fn, attempts = 3) {
  for (let i = 0; i < attempts; i++) {
    const out = await fn();
    if (out.kind !== "retry") return out;
    await new Promise((r) => setTimeout(r, 500 * 2 ** i + Math.random() * 250));
  }
  return { kind: "failed", reason: "retries_exhausted" };
}

Deduplicate and cache

Spreadsheets contain duplicates and re-uploads. Deduplicate on the normalised number before spending a call, and reuse a recent completed result for the same vehicle within your freshness window instead of calling again. Every avoided call is a premium-rate call you do not pay for.

Report row by row

Return a result per row with one of a few states: verified, needs review (with reasons), rejected (with reasons), could not check (retry later). A single failure should never fail the batch, and a user who uploaded two thousand rows should be able to download the three hundred that need attention.

Do it asynchronously

Large uploads do not belong in a web request. Accept the file, enqueue the rows, process in the background and notify when finished. Keep a record of which rows have completed so a restart resumes instead of repeating, which matters here because repeating a premium call costs money.

How often should you re-check?

An RC check is a snapshot, and vehicles change: ownership transfers, RCs get renewed, insurance lapses and renews. How often to refresh depends on what the data is used for.

UseReasonable refreshWhy
One-off onboarding or saleOnce, at the decisionThe decision is made at one moment
Vehicle-backed loanAt disbursal, then on events such as missed payment or renewal dates you trackCollateral status matters over the loan life
Fleet platformAt onboarding, then before each insurance and RC expiry you holdDates drive the risk
Motor insurance quoteAt quote and again at purchase if time has passedQuote data can be stale

The cheapest pattern is event-driven: store rcExpiryDate and insuranceUpto from the last check and schedule a refresh shortly before each date, rather than polling every vehicle every week. That ties spend to the moments the data can change a decision.

Using RC verification in real workflows

Used-vehicle marketplace. A seller lists a vehicle. Before listing goes live, the platform verifies the registration number, compares the registered owner's name to the seller's verified name, checks chassis and engine against the inspection report, and shows the buyer the vehicle class, registration date and RC status. Mismatched owner and seller moves the listing to a transfer-documents request.

Vehicle-backed lending. The lender verifies the RC, matches the owner to the borrower after PAN verification, applies rules on vehicle age from registrationDate and RC tenure from rcExpiryDate, and records the referenceId on the credit file. Hypothecation checks happen through a separate process.

Fleet and logistics onboarding. A transporter submits trucks. The platform requires registrationStatus and rcStatus in the accepted set and isCommercial true, flags any with an RC expiring inside a minimum window, and pairs each vehicle with a verified driver.

Motor insurance. An insurer's or broker's quote journey can prefill make, model and registration date from the record to cut form fields, and use the owner details to detect a quote for someone else's vehicle. Underwriting still relies on the insurer's own data.

Combining with PAN, GSTIN and driver checks

Vehicle data becomes much stronger when joined to the entity that claims it.

  • Individual owner: PAN verification gives you the registered name for the PAN, which you compare with ownerName. A match between PAN name, bank account name and RC owner is a coherent identity.
  • Business owner: GSTIN verification returns legal and trade names. Many commercial vehicles are registered in a company or firm name, so match against the legal name. A GSTIN also encodes the entity's PAN.
  • Payouts to the owner: run bank account verification with the same name before paying out freight or lease amounts.
  • Driver: Driving Licence verification for the person who will operate the vehicle.

Order the checks by cost and by how decisive they are, and stop on the first hard failure. RC is the most expensive of these, so if a cheaper check will end the application, run it first.

Integration walkthrough

cURL

cURL
curl -X POST "https://api-b2b.stampmitra.in/v1/verify/rc" \
  -H "Authorization: Bearer $STAMPMITRA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"vehicleNumber":"MH12AB1234"}'

Node.js

The Node.js SDK and Python SDK wrap this endpoint if you prefer a client library. The raw calls show what they do.

JavaScript
// Node 18+ (built-in fetch)
const BASE = "https://api-b2b.stampmitra.in";

export async function verifyRc(rawNumber, { timeoutMs = 20000 } = {}) {
  const res = await fetch(`${BASE}/v1/verify/rc`, {
    method: "POST",
    headers: {
      Authorization: `Bearer ${process.env.STAMPMITRA_API_KEY}`,
      "Content-Type": "application/json",
    },
    body: JSON.stringify({ vehicleNumber: normaliseVehicleNumber(rawNumber) }),
    signal: AbortSignal.timeout(timeoutMs),
  });
  const body = await res.json().catch(() => ({}));
  if (res.ok) return { kind: "completed", result: body };
  const { code, message, requestId } = body.error ?? {};
  const retryable = res.status === 429 || res.status === 502;
  return { kind: retryable ? "retry" : "failed", status: res.status, code, message, requestId };
}

Python

Python
import os, re, requests

BASE = "https://api-b2b.stampmitra.in"

def verify_rc(raw_number: str, timeout: int = 20) -> dict:
    number = re.sub(r"[\s.\-]", "", raw_number.upper())
    resp = requests.post(
        f"{BASE}/v1/verify/rc",
        headers={"Authorization": f"Bearer {os.environ['STAMPMITRA_API_KEY']}"},
        json={"vehicleNumber": number},
        timeout=timeout,
    )
    body = resp.json() if resp.content else {}
    if resp.ok:
        return {"kind": "completed", "result": body}
    err = body.get("error", {})
    return {
        "kind": "retry" if resp.status_code in (429, 502) else "failed",
        "status": resp.status_code,
        "code": err.get("code"),
        "message": err.get("message"),
        "requestId": err.get("requestId"),
    }

Classifying the response

JavaScript
const ACCEPTED = new Set(["VALID|ACTIVE"]); // extend only after your team decides

export function classifyRc(rc, today = new Date()) {
  const reasons = [];
  if (!ACCEPTED.has(`${rc.registrationStatus}|${rc.rcStatus}`)) reasons.push("status_not_in_allow_list");
  if (new Date(rc.rcExpiryDate) <= today) reasons.push("rc_expired_in_record");
  if (new Date(rc.insuranceUpto) < today) reasons.push("insurance_date_past");
  return { outcome: reasons.length ? "review" : "ok", reasons, referenceId: rc.referenceId };
}

Note the deliberate choice to classify as review, not reject: with a snapshot record that may lag, a human decision beats an automatic refusal for anything other than a clearly invalid registration.

Audit logging and monitoring

For vehicles, the useful audit question is "why did we accept this registration on that day?" Your records should answer it without holding the owner's identity. Keep your own vehicle or application ID, the referenceId, the outcome, the reason codes from your classifier, the HTTP status, which key was used, and the time. Leave out the owner's name, the father's name, chassis and engine numbers and the raw payload. A plate by itself is nearly public, but a plate beside an owner name points at a person, so the pair gets personal-data treatment.

Request logs can be pulled with GET /v1/logs or read in the dashboard; retention follows your plan and tops out at 365 days on Scale. How long to keep your own decisions is for your audit function to say.

Fleet work adds its own gauges. Track the share of calls that were duplicates you could have skipped, because each is a premium-rate call. Track how many rows end in review per upload, since a spike usually means a bad spreadsheet rather than bad vehicles. Watch 429 counts against your plan's limit, expect zero 402 responses, and chart spend against budget daily, since a runaway batch is expensive.

Modelling the cost

Cost is calls times rate, plus GST on wallet top-ups. For RC the lever is calls avoided, because each call is in the premium band.

JavaScript
export function monthlyRcCost({ newVehicles, retryShare = 0.05, refreshPerVehicle = 0, activeVehicles = 0, pricePerCall }) {
  const calls = newVehicles * (1 + retryShare) + activeVehicles * refreshPerVehicle;
  return { calls: Math.ceil(calls), cost: Math.ceil(calls) * pricePerCall };
}

Take a fleet platform that onboards 1,500 vehicles a month with a 5 percent retry share, and refreshes each of 8,000 active vehicles an average of 0.25 times a month, which is roughly one refresh per vehicle per quarter, tied to expiry dates. That is 1,575 plus 2,000, so 3,575 calls a month. Multiply by your plan's RC rate and add 18% GST on the top-up. If instead the platform polled all 8,000 vehicles weekly, the refresh term would be around 34,000 calls a month, several times the whole budget for no extra decision quality. Event-driven refresh is the difference.

Wallet balance is the operational risk. Alert on balance expressed as days of average spend.

Sandbox and production

Sign-up gives you an sk_test_ key straight away. It leaves the wallet alone and answers with sample data. No RC number has a published magic value, so each plate returns a fixed answer, about two in three valid, with invented owner names. A production sk_live_ key appears only once your organisation's KYC and an RC production application are approved. Because the server derives the environment from the key, one request shape serves both; the quickstart shows a first call.

What sandbox is for: proving the key and scope, your plate normalisation, the pacing of a batch, the allow-list classifier and the review screen. A few saved responses make good fixtures so most tests never leave your machine. What it cannot do: tell you how many real vehicles will fail, tune owner-name matching, or size capacity, because sandbox limits are not production limits.

Going live means applying for RC access from the dashboard with a concrete use-case description, creating the key, funding the wallet and swapping the secret. Re-read your handling against the first real responses, because live records carry statuses and formats the sample does not.

Restrict the key

An RC response names a person, which is why sensitive scopes such as RC default to requiring an IP or CIDR allowlist on the key. Register your backend's egress addresses, grant only verification.rc.read (see the authentication docs), run one key per service, keep it in a secrets manager, and never call from a browser or an app. A 403 on a key that is otherwise valid points to a missing scope: a configuration fix, not an outage.

When the record and the person disagree

Sooner or later a customer will insist that the data is wrong: the owner name is out of date, the RC shows as expired when they renewed last month, the colour is different because the car was repainted. How you handle these disputes matters as much as the check, because the record is a snapshot of a register you do not control.

Start by being clear about what you can and cannot fix. StampMitra returns what the register holds at the time of the call. If the register is wrong or late, correcting it is a matter between the owner and the transport authority, not something your support team or an API call can change. What you control is your decision. Give the customer a documented route: an explanation of which field blocked them, a list of documents that would resolve it (the renewed RC, the transfer papers, the insurer's certificate), and a way to resubmit once they have them.

Build the review queue around those routes. A reviewer should see the returned fields next to the customer's claim, the reason code that put the case in review, and a short checklist of acceptable evidence for that reason. Record which evidence settled the case, so that the next identical case is quicker and so that your policy can be audited. Keep a note of cases where the register turned out to lag; if they cluster in one state or one kind of change, that is useful operational knowledge, and a sound reason to schedule a re-check a few days later rather than asking the customer to do more.

Two habits prevent most escalations. Say plainly in your product that the check reads an official register at a point in time, so a recent change may not show. And never tell a customer that the vehicle "failed verification" when the truth is that one date was in the past; name the field and the next step.

Edge cases and odd inputs

Real plates and real records misbehave in ways worth testing before launch.

  • Look-alike characters. Users confuse 0 and O, 1 and I, 8 and B. A plate typed with a letter where a digit belongs fails the format check with a 400, which is the cheap outcome. A plate that is well-formed but belongs to a different vehicle is the expensive one, which is why you show the make, model and colour back to the user and let them say "that is not my car".
  • Recently registered vehicles. A vehicle registered days ago may not appear yet, or may appear with partial fields. Treat one negative on a brand-new registration as a reason to retry later, not a permanent rejection.
  • Temporary registration marks. Vehicles driven off a dealer's lot before permanent registration carry a temporary mark. The reference documents only the permanent format, so test what you expect to receive and handle the rest outside the API.
  • Vehicles re-registered in another state. A vehicle moved between states gets a new registration mark. A customer quoting the old plate may get a negative or an older record. Ask for the current RC.
  • Scrapped or de-registered vehicles. A plate that once belonged to a vehicle may now be marked as no longer valid. This is a legitimate negative, and registrationStatus is the field to read.
  • Company and fleet owners. ownerName can be a business name. Do not run person-name matching rules on it. Match against a legal name from a GSTIN or CIN check.
  • Missing or blank fields. Treat every field other than referenceId as possibly absent in an edge case, and write parsing that tolerates null or an empty string for dates and names rather than throwing.
  • Date handling. The dates in the sample are ISO calendar dates. Compare them as dates in Indian Standard Time, not as timestamps in UTC, when a decision hinges on the last day.
  • Case and whitespace in names. Records are upper case. Normalise both sides before comparing.

A worked scenario: a used-car dealer checks a trade-in

Consider a fictional dealer network, Kaveri Motors, that buys trade-in cars from walk-in customers. The sales executive types the plate into the dealer app. Here is what the backend does, step by step, and why.

  1. Normalise and dedupe. The app uppercases the plate and strips spaces. If the same plate was checked in the last seven days by any branch, the backend returns the cached result rather than making another premium-rate call.
  2. Call the API. The backend calls POST /v1/verify/rc with a ten-second client timeout. A 429 makes the app show "please wait a moment" and retry once after a short delay. A 502 shows "registry unavailable, try again shortly" and does not block the sale conversation.
  3. Show the vehicle back. The app displays make, model, colour and registration date, and asks the executive to confirm they match the car on the lot. This catches the wrong-plate case before any money is discussed.
  4. Check the allow-list. registrationStatus and rcStatus are compared with the accepted pair. Anything else flags the car for the manager.
  5. Check the owner. The customer's name from their ID is compared to ownerName using token matching. A match proceeds. A mismatch opens a task: "ask for transfer papers or the registered owner's authorisation".
  6. Check dates. An rcExpiryDate in the past or an insuranceUpto in the past adds a line to the valuation notes. The dealer may still buy the car, but the price and paperwork reflect it.
  7. Compare numbers. The inspector enters the chassis and engine numbers from the car. The backend compares them with the record after normalising. A mismatch blocks the purchase until a manager clears it in writing.
  8. Persist the minimum. The dealer stores the referenceId, the outcome, the reasons, the executive's ID and the time. The owner's name, the father's name and the chassis stay out of the application database and the logs.

None of this is complicated code. The value is in the order and in what each branch does when the data is imperfect. Notice that no step relies on a field the endpoint does not document: the dealer does not rely on the check to detect a hypothecated car, and the manual process for that sits beside it.

Production checklist

  1. Key holds only verification.rc.read, sits in a secrets manager and is IP-restricted.
  2. Plates are normalised; the API is the validator.
  3. Status handling is an allow-list; unknown values go to review.
  4. The limits of the record are written into product copy and policy.
  5. Batches are paced, deduplicated, asynchronous and resumable.
  6. Retry only on 429 and 502, with backoff and a cap.
  7. Refresh is event-driven from stored expiry dates.
  8. Logs contain reference IDs and outcomes, not owner data.
  9. Wallet and 402 alerts exist, sized in days of spend.
  10. A human review queue exists with an owner and a written policy.
  11. Privacy notice and retention schedule cover the data.
  12. You have tested a lapsed RC date, a lapsed insurance date, an owner mismatch, a commercial mismatch, a malformed plate and a 429.

Common mistakes

  • Treating RC as proof of ownership of the person. It is a record of the registered owner.
  • Promising a "clean vehicle" check. No challan or hypothecation data is documented.
  • Reading only registrationStatus. The certificate status is a separate field.
  • Calling insuranceUpto confirmation of cover. It is a date.
  • Rejecting on owner mismatch. A purchase not yet transferred is the usual cause.
  • Polling every vehicle on a timer. Premium-rate calls add up; refresh around expiry dates.
  • Firing a whole upload in parallel. It trips the rate limit and burns money on retries.
  • Logging the response. It puts owner names in log storage.
  • Writing your own plate regex. Formats vary; normalise and let the API decide.
  • Calling from the client. It exposes the key and sidesteps your IP allowlist.

Sources

  • Vehicle RC API reference, StampMitra product data: request field, response example, scope and validation message, checked October 2026.
  • Pricing, StampMitra: premium per-call rate, plan limits and log retention, checked October 2026. Rates exclude 18% GST.
  • Digital Personal Data Protection Act, 2023, Government of India. Read the current Act and the rules made under it on the official government sites.
  • Ministry of Road Transport and Highways and the Parivahan portal, for registration practice and the current Central Motor Vehicles Rules, 1989 as amended. Check the date of any version you rely on.

Sandbox test values

Send one of these values as vehicleNumber 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 RC
SB00SA0001
200
200 with registrationStatus VALID, rcStatus ACTIVE and the owner, vehicle and insurance details.
Vehicle not found
SB00SA0002
200
200 with registrationStatus INVALID and no owner details.
RC expired
SB00SA0004
200
200 with registrationStatus VALID but rcStatus EXPIRED and a past rcExpiryDate.
Verification source times out
SB00SA0005
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
SB00SA0006
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
SB00SA0007
429TOO_MANY_REQUESTS
Too many requests. Back off and retry with exponential delay and jitter.
Wallet balance too low
SB00SA0008
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
SB00SA00
400BAD_REQUEST
Validation error that names the field. Nothing is looked up and nothing is charged.

Frequently asked questions

What does the vehicle RC verification API return?

It returns referenceId, regNo, registrationStatus, ownerName, ownerFatherName, vehicleClass, make, model, colour, chassis, engine, registrationDate, rcStatus, rcExpiryDate, insuranceUpto and isCommercial. It is a snapshot of the record at the time of the call and does not include hypothecation, challan or ownership history fields.

Why are there two status fields, registrationStatus and rcStatus?

registrationStatus describes the registration and rcStatus describes the certificate, so they can legitimately differ. The reference documents only the sample pair VALID and ACTIVE, so accept that pair explicitly and send every other combination, including values you have not seen, to a human reviewer.

Does the RC API prove the applicant owns the vehicle?

No. It shows the registered owner. A purchase that was never transferred, a company-owned vehicle or a family member's name can all produce a mismatch without any fraud. Match names yourself, ask for transfer papers on a mismatch, and pair RC with PAN or other identity checks.

Does insuranceUpto confirm that the vehicle is insured?

No. insuranceUpto is a validity date as returned. The endpoint has no insurer name or policy number, so treat it as an indicator for display and screening and confirm cover with the insurer for any underwriting or claims decision.

When am I billed for an RC call?

Usage is recorded and the wallet debited, in production, only after the verification completes successfully. A negative result is still a completed, billed check. A malformed number, bad key or missing scope returns 400, 401 or 403 and is not billed, and sandbox calls never debit the wallet.

How do I verify a large fleet without hitting the rate limit?

Deduplicate plates, cache recent results, process asynchronously with a small concurrency cap and a pace below your plan's requests-per-minute limit, and retry only on 429 and 502 with backoff. Report results row by row so one failure never fails the batch.

How often should I re-verify a vehicle?

Tie refreshes to events rather than a timer. Store rcExpiryDate and insuranceUpto from the last check and re-verify shortly before those dates, at loan disbursal and on risk events. Polling an entire fleet weekly multiplies premium-rate calls without improving decisions.

What registration number format should I send?

The documented sample is MH12AB1234. Uppercase the input and strip spaces, hyphens and dots, then let the API validate; a malformed value returns 400 with a message naming the field. Test any other style you expect, such as a Bharat-series number, in sandbox before relying on it.

Can I test RC verification without paying?

Yes. A sandbox key starting with sk_test_ never debits your wallet and returns sample data with synthetic names. The same input always gives the same answer. Use it for plumbing, error handling and UI states, not to estimate real failure rates or tune matching.

Why does my valid key return 403 on the RC endpoint?

The key is valid but lacks the verification.rc.read scope. Issue a key with that scope and keep it narrow. Sensitive scopes such as RC also default to requiring an IP or CIDR allowlist, so call from your backend's registered egress addresses and never from a browser or app.

How should I handle the owner's personal data in the response?

Tell the person what you are checking and why, collect and keep the minimum, store the outcome and referenceId rather than owner details, keep names out of logs, mask them in screens, set a retention period and agree processor terms with your counsel's advice. This is general practice, not legal advice.

What should I check alongside the RC?

Match the owner with the applicant's PAN-verified name, verify a company owner through GSTIN, verify the payout account with bank account verification and verify the driver with Driving Licence verification. Run cheaper, decisive checks first and stop on a hard failure.

Build with AI

Integrate Vehicle RC 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 · Vehicle RC · 6,516 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 "Vehicle RC" API
Verify a Vehicle RC in real time.
Production service code: rc.verify

ENDPOINT: POST /v1/verify/rc
- Verify Vehicle RC
- Required scope: verification.rc.read
- Parameters:
  - vehicleNumber (string, required): Vehicle registration number.
- Example request body: {"vehicleNumber":"MH12AB1234"}
- Response fields: referenceId, regNo, registrationStatus, ownerName, ownerFatherName, vehicleClass, vehicleManufacturerName, model, vehicleColor, chassis, engine, registrationDate, rcStatus, rcExpiryDate, insuranceUpto, isCommercial
- Example response: {"referenceId":"SMV-20260927-3D71Q9","regNo":"MH12AB1234","registrationStatus":"VALID","ownerName":"RAHUL KUMAR","ownerFatherName":"SURESH KUMAR","vehicleClass":"LMV","vehicleManufacturerName":"MARUTI SUZUKI","model":"SWIFT","vehicleColor":"WHITE","chassis":"MA3ERLF1S00123456","engine":"K12MN1234567","registrationDate":"2019-05-14","rcStatus":"ACTIVE","rcExpiryDate":"2034-05-13","insuranceUpto":"2025-05-13","isCommercial":false}
- 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.

Rules for this verification
- Validate vehicleNumber 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.