# Udyam Registration Certificate OCR API

> Issued by the Ministry of MSME. The first page has the registration number, enterprise name, type and classification; later pages list the units, NIC codes and dates.

- Page: https://patrapi.com/recipes/udyam-certificate
- Category: Business
- Template name: `udyam_certificate`
- Fields: 18

## Fields

| Field | Key | Type | Required | Notes |
| --- | --- | --- | --- | --- |
| Udyam Registration Number | `udyam_number` | Udyam number | yes |  |
| Type of Enterprise | `enterprise_type` | Choice | yes | The latest classification year's value |
| Major activity | `major_activity` | Choice | yes |  |
| Social Category of Entrepreneur | `social_category` | Choice | yes |  |
| Name of Firm | `firm_name` | Name | yes | Name of enterprise |
| Address of Enterprise | `enterprise_address` | Address | yes | Official address of the enterprise, as one string |
| Date of incorporation | `date_of_incorporation` | Date | no | Date of incorporation / registration of the enterprise |
| Date of commencement of production / business | `date_of_commencement` | Date | yes |  |
| Date of Udyam Registration | `date_of_udyam_registration` | Date | yes |  |
| District | `district` | Name | yes |  |
| Activity | `activity` | Choice | yes |  |
| Type of Organization | `organisation_type` | Choice | yes |  |
| Name of Owner | `owner_name` | Name | yes | Name of entrepreneur / owner |
| PAN | `pan` | PAN | yes |  |
| Do you have GSTIN | `has_gstin` | Choice | no |  |
| Mob No. | `mobile` | Mobile | yes |  |
| Email Id | `email` | Email | yes |  |
| National Industry Classification code(s) | `nic_codes` | Text | yes | All NIC codes, separated by commas |

## Request

Publish the recipe as a workflow in the app, then send it files. The workflow id and an API key come from the app. Full steps: https://patrapi.com/docs

```bash
curl https://api.patrapi.com/v1/workflows/wf_YOUR_WORKFLOW_ID/extractions \
  -H "Authorization: Bearer $PATRAPI_KEY" \
  -F file=@udyam-certificate.pdf
```

## Response

Each field is an object; values are elided here.

```json
{
  "object": "extraction",
  "id": "ext_…",
  "status": "succeeded",
  "document_type": "udyam_certificate",
  "pages": …,
  "credits": …,
  "fields": {
    "udyam_number": { "value": …, "normalized": …, "status": "present", "page": …, "source_text": …, "bbox": … },
    "enterprise_type": { "value": …, "normalized": …, "status": "present", "page": …, "source_text": …, "bbox": … },
    "major_activity": { "value": …, "normalized": …, "status": "present", "page": …, "source_text": …, "bbox": … },
    "social_category": { "value": …, "normalized": …, "status": "present", "page": …, "source_text": …, "bbox": … },
    "firm_name": { "value": …, "normalized": …, "status": "present", "page": …, "source_text": …, "bbox": … },
    "enterprise_address": { "value": …, "normalized": …, "status": "present", "page": …, "source_text": …, "bbox": … },
    "date_of_incorporation": { "value": …, "normalized": …, "status": "present", "page": …, "source_text": …, "bbox": … },
    "date_of_commencement": { "value": …, "normalized": …, "status": "present", "page": …, "source_text": …, "bbox": … },
    "date_of_udyam_registration": { "value": …, "normalized": …, "status": "present", "page": …, "source_text": …, "bbox": … },
    "district": { "value": …, "normalized": …, "status": "present", "page": …, "source_text": …, "bbox": … },
    "activity": { "value": …, "normalized": …, "status": "present", "page": …, "source_text": …, "bbox": … },
    "organisation_type": { "value": …, "normalized": …, "status": "present", "page": …, "source_text": …, "bbox": … },
    "owner_name": { "value": …, "normalized": …, "status": "present", "page": …, "source_text": …, "bbox": … },
    "pan": { "value": …, "normalized": …, "status": "present", "page": …, "source_text": …, "bbox": … },
    "has_gstin": { "value": …, "normalized": …, "status": "present", "page": …, "source_text": …, "bbox": … },
    "mobile": { "value": …, "normalized": …, "status": "present", "page": …, "source_text": …, "bbox": … },
    "email": { "value": …, "normalized": …, "status": "present", "page": …, "source_text": …, "bbox": … },
    "nic_codes": { "value": …, "normalized": …, "status": "present", "page": …, "source_text": …, "bbox": … }
  }
}
```

| Key | Meaning |
| --- | --- |
| `value` | What was read, as printed on the document. |
| `normalized` | The same value in a clean, typed form: dates as YYYY-MM-DD, amounts as numbers, names in capitals. |
| `status` | Whether the value was found: present, not_present, unreadable, redacted, conflicting. |
| `page` | The page it was read from. |
| `source_text` | The text on the page the value came from: the evidence. |
| `bbox` | Where on the page, as four numbers, when known. |

## Pricing

- 1¢ a page (₹1 in India), pay as you go. Every page of a document counts; failed documents and repeats of the same file are free.
- A new account starts with 200 free pages, no card.
- Consultant plan, for firms that read every day: $30 a month (₹2,500 in India) for 5,000 pages, then 1¢ a page (₹0.50 in India).
- While building, the first 25 test and assistant runs on each workflow are free (up to 100 a month per account).

## Questions

### What does the Udyam Registration Certificate API extract?

18 fields: Udyam Registration Number, Type of Enterprise, Major activity, Social Category of Entrepreneur, Name of Firm, Address of Enterprise, Date of incorporation, Date of commencement of production / business, Date of Udyam Registration, District, Activity, Type of Organization, Name of Owner, PAN, Do you have GSTIN, Mob No., Email Id and National Industry Classification code(s). You can rename them, drop the ones you don't need or add your own before publishing.

### What comes back for each field?

A JSON object with value, normalized, status, page, source_text and bbox. The status is one of present, not_present, unreadable, redacted and conflicting, so a value that is not on the document comes back as null instead of a guess.

### Which Udyam Registration Certificate fields are optional?

Date of incorporation and Do you have GSTIN. When the document doesn't carry one, the field comes back with the status not_present and a null value.

### How much does Udyam Registration Certificate extraction cost?

1¢ a page (₹1 in India), and every page counts. Failed documents and repeats of the same file are free.

### Can I test Udyam Registration Certificate extraction for free?

Yes. You can try it without an account: 15 test runs on documents of up to 15 pages. A new account starts with 200 free pages, and the first 25 test and assistant runs on each workflow cost nothing (up to 100 a month per account).

## Links

- API quickstart: https://patrapi.com/docs
- API reference: https://api.patrapi.com/docs
- OpenAPI spec: https://api.patrapi.com/openapi.json
- All recipes: https://patrapi.com/recipes
