MSME API
Base URL https://acc.ejiapi.com/api/msme/v1. Send your key in the x-api-key header. Any accounting key works (it starts with acc_); you do not need Tally. Get a key, or try the rules without one in the explorer.
Which law: section 37(2)(g), or 43B(h)?
From 1 April 2026 the Income-tax Act, 2025 applies, starting with tax year 2026-27. Section 43B(h) of the Income-tax Act, 1961 is now section 37(2)(g). The Ministry of Finance confirmed this correspondence in the Rajya Sabha on 21 July 2026. The rule itself has not changed: a sum owed to a micro or small enterprise and paid after the MSMED Act section 15 time limit is allowed only in the year it is paid. For FY 2025-26 and earlier years, section 43B(h) of the 1961 Act still applies and is reported in Form 3CD, clause 22. Every answer about the rule has a law object, and the date you give decides which one: the supply date, or the year end.
Answers
Every answer is JSON: {status, statusCode, message, data}. Answers based on open data also carry source, with the publisher, licence and date. Errors are application/problem+json. Status codes: 401 means a missing or wrong key, 404 means not found, 422 means a bad parameter, 429 means too many requests, and 503 means the counts are loading. Dates are YYYY-MM-DD, and DD-MM-YYYY is accepted too.
Rules
| Endpoint | Parameters | What it returns |
|---|---|---|
GET /rules/due-date | accepted_on, optional agreed_days | The MSMED Act s.15 due date: 15 days from acceptance without a written agreement, otherwise the agreed days, never more than 45. Acceptance is the day of delivery, or the day an objection raised within 15 days is removed. Returns dueDate, days and basis. |
GET /rules/in-scope | category (micro, small or medium), activity (manufacturing, services or trading), optional registered_on and supplied_on | applies is true, false or null (unknown), with reasons and the law. The rule covers micro and small suppliers only. It does not cover medium enterprises or traders, and the supplier must have been registered when it supplied. |
POST /rules/year-end | Body {"fy_end": "2027-03-31", "items": [...]}, up to 2,000 purchases. Each purchase has ref, amount, accepted_on, agreed_days, paid_on, category and activity. | For each purchase: dueDate, a result in words, and disallowed, the amount not allowed in this year. Also disallowedTotal and the law for that year end. /rules/43bh is the same endpoint under its first name. Worked example: a year-end check. |
GET /rules/interest | amount, due_on, paid_on, bank_rate (RBI bank rate in percent) | An estimate under MSMED Act s.16: compound interest with monthly rests at three times the bank rate, from the due date to payment. You give the bank rate because it changes. |
GET /rules/limits | optional on | Micro, small and medium limits for investment and turnover in force on a date, with the notification. The limits changed on 1 April 2025. |
Udyam numbers and counts
| Endpoint | Parameters | What it returns |
|---|---|---|
GET /urn/{urn}/check | A Udyam registration number | validFormat (the form UDYAM-XX-00-0000000), state, district code and serial, and verifyUrl, the official Verify page. exists is always "unknown": no open data says whether a number exists or its category. |
GET /counts | sector (total or manufacturing), optional state | Udyam-registered enterprises (micro, small, medium, total) by state, or by district within a state. The data is the Ministry of MSME's on data.gov.in (GODL) and can be behind the Ministry's live dashboard. |
Your vendors' declarations
These are your own records, kept for your keys only. No other customer and no demo key can read them.
| Endpoint | What it does |
|---|---|
PUT /vendors/{vendor} | Records or replaces what a vendor declared. The body has urn, category, activity, registered_on, declared_on, cin, note and evidence_sha256 (the SHA-256 of their certificate file; we keep the fingerprint, not the file). Vendor names ignore case and extra spaces. |
GET /vendors, GET /vendors/{vendor} | Your declarations, optionally only one category. Each one has rule: whether the late-payment rule can apply. |
DELETE /vendors/{vendor} | Deletes a declaration. |
GET /vendor-check | vendor, cin or urn: your declaration, the company's status in the company register, and the Udyam number's format, together. It never says "verified MSME". |
Examples
curl -H "x-api-key: YOUR_acc_KEY" "https://acc.ejiapi.com/api/msme/v1/rules/due-date?accepted_on=2026-06-01&agreed_days=45"
curl -X PUT -H "x-api-key: YOUR_acc_KEY" -H "content-type: application/json" \
-d '{"urn": "UDYAM-RJ-17-0123456", "category": "micro", "activity": "services", "declared_on": "2026-06-02"}' \
"https://acc.ejiapi.com/api/msme/v1/vendors/Ravi%20Traders"
In Google Sheets: =EJI_MSME_DUE_DATE, =EJI_MSME_INTEREST, =EJI_MSME_RULE_APPLIES, =EJI_MSME_URN_VALID, =EJI_MSME_DECLARED, =EJI_MSME_COUNTS. In an MCP client: msme_due_date, msme_rule_applies, msme_urn_check, msme_vendor_check, msme_year_end.
Beta. These are working figures, not tax or legal advice: check acceptance dates and categories with your CA. This is not an official service of the Ministry of MSME.