# patrapi > patrapi turns documents into an API. Upload a sample, name the fields you need, test on real files and publish a versioned endpoint that returns each field as typed JSON with the page and source text it was read from. It ships with ready-made recipes for common business paperwork (PAN, Aadhaar, GST, Udyam, ITR, bank statements, sanction letters, electricity bills and more), and any other document can be built the same way. Site: https://patrapi.com. Index of this content: https://patrapi.com/llms.txt. ## 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). ## API quickstart Base URL: https://api.patrapi.com. Every request carries an API key as a bearer token; keys are created in the app at https://patrapi.com/keys. ### 1. Send a document Post a file to a published workflow. The body is multipart form data. ```bash curl https://api.patrapi.com/v1/workflows/wf_YOUR_WORKFLOW_ID/extractions \ -H "Authorization: Bearer $PATRAPI_KEY" \ -H "Idempotency-Key: APP-2291-pan" \ -F file=@pan-card.jpg \ -F wait=30 \ -F metadata='{"application_id":"APP-2291"}' ``` | Form field | Required | Meaning | | --- | --- | --- | | `file` | yes | The document: a PDF, JPEG, PNG or WebP. One file is one document. | | `version` | no | Pin a published version of the workflow. Latest when omitted. | | `wait` | no | Hold the request open up to this many seconds (60 at most) and return the finished extraction if it completes in time. | | `metadata` | no | A JSON object as a string. Returned on the extraction and in webhooks, so you can carry your own ids. | | `password` | no | The open password of a locked PDF. Used once to unlock the file, never stored. | Send an `Idempotency-Key` header to make retries safe. The same file sent twice to the same workflow version is read, and charged, once. ### 2. Read the result With `wait`, a document that finishes in time comes back in the same response (200). Otherwise the response is a receipt (202) and you poll, or let a webhook tell you. ```json { "object": "extraction.receipt", "id": "ext_3f9c1e2ab7d44c0e9a51b6f0c2d87e14", "status": "queued" } ``` ```bash curl https://api.patrapi.com/v1/extractions/ext_3f9c1e2ab7d44c0e9a51b6f0c2d87e14 \ -H "Authorization: Bearer $PATRAPI_KEY" ``` ```json { "object": "extraction", "id": "ext_3f9c1e2ab7d44c0e9a51b6f0c2d87e14", "status": "succeeded", "document_type": "pan_card", "profile_version": 1, "pipeline_version": "pan_card.v1.spec10", "fields": { "pan": { "value": "ABCDE1234F", "normalized": "ABCDE1234F", "status": "present", "page": 1, "source_text": "Permanent Account Number ABCDE1234F", "bbox": null }, "name": { "value": "ASHA RAMESH PATEL", "normalized": "ASHA RAMESH PATEL", "status": "present", "page": 1, "source_text": "Name ASHA RAMESH PATEL", "bbox": null }, "father_name": { "value": null, "normalized": null, "status": "not_present", "page": null, "source_text": null, "bbox": null }, "date_of_birth": { "value": "12/04/1990", "normalized": "1990-04-12", "status": "present", "page": 1, "source_text": "Date of Birth 12/04/1990", "bbox": null } }, "warnings": [], "review_reasons": [], "credits": 1, "metadata": { "application_id": "APP-2291" }, "workflow": { "id": "wf_YOUR_WORKFLOW_ID", "version": 1 }, "reviewed_at": null, "rejection": null, "pages": 1, "created_at": "2026-11-25T09:30:00.000Z", "completed_at": "2026-11-25T09:30:06.000Z", "result_expires_at": "2027-02-23T09:30:06.000Z", "deleted_at": null } ``` Extraction statuses: `queued`, `processing`, `succeeded`, `needs_review`, `failed`, `cancelled`, `rejected`. | Field 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. | | Field status | Meaning | | --- | --- | | `present` | Found, with the source text to prove it. | | `not_present` | Not on this document. The value is null, never invented. | | `unreadable` | It is there, but the scan is too poor to read it. | | `redacted` | Masked on the document itself. | | `conflicting` | Two different values on the document. Sent to review. | ### 3. Webhooks Add an endpoint in the app at https://patrapi.com/webhooks and patrapi posts an event when an extraction finishes, is reviewed, or a batch completes. Events: `extraction.succeeded`, `extraction.needs_review`, `extraction.failed`, `extraction.approved`, `extraction.rejected`, `batch.completed`. ```json { "id": "msg_2b7e0c9d41f84a6c8d3e5f1a9b0c7d62", "type": "extraction.succeeded", "timestamp": "2026-11-25T09:30:06.000Z", "data": { … the extraction, as GET /v1/extractions/{id} returns it … } } ``` Deliveries are signed the Standard Webhooks way (https://www.standardwebhooks.com) with the headers `webhook-id`, `webhook-timestamp`, `webhook-signature`; verify them with any Standard Webhooks library and the endpoint's `whsec_` secret. Failed deliveries are retried with the same `webhook-id`, so deduplicate on it. ### Errors Errors are JSON with a `_tag` naming the error. | Status | _tag | Meaning | | --- | --- | --- | | 401 | `Unauthorized` | The key is missing, malformed, revoked or unknown. | | 402 | `InsufficientCredits` | The account's pages cannot cover this document. The body carries `required` and `available`, in pages. | | 404 | `WorkflowNotPublished` | No such workflow for this key, or it has no published version (or not the one asked for). | | 422 | `UnsupportedFile` | The file is not a PDF, JPEG, PNG or WebP that patrapi can read. | | 422 | `PasswordProtected` | The PDF is locked: `reason` is `password_required` or `wrong_password`. Send `password` with the file. | | 429 | `RateLimited` | Too many requests. Wait `retry_after_seconds`; the `Retry-After` header says the same. | ### Endpoints | Method | Path | What it does | | --- | --- | --- | | POST | `/v1/workflows/{id}/extractions` | Run a document through a published workflow. Returns 202 with an id to poll at `GET /v1/extractions/{id}`, or 200 with the finished extraction when `wait` is set and it completes in time, or the same bytes were already processed by this version. Send `Idempotency-Key` to make retries safe. | | POST | `/v1/extractions` | Submit one logical document. Returns 202 with an id to poll. Send `Idempotency-Key` to make retries safe. Returns 200 with the existing resource when the same bytes were already processed under the same profile and pipeline version. | | GET | `/v1/extractions` | | | GET | `/v1/extractions/{id}` | | | DELETE | `/v1/extractions/{id}` | Delete the document's data: stops it first if it is still queued or processing, then removes the field values, evidence, metadata and file name. The extraction stays (status, pages and usage) with `deleted_at` set. Results are also deleted automatically at `result_expires_at`. Safe to repeat. | | POST | `/v1/extractions/{id}/feedback` | Tell us which fields were wrong and what they should have been. Send only the wrong fields: `{ "fields": { "pan": { "correct": "ABCDE1234F" }, "trade_name": { "correct": null } } }`, where `null` means the document doesn't carry the field. The result itself is not changed. Corrections show up as field health on the workflow, so its weak fields can be fixed. Sending a field again replaces its earlier correction. | | GET | `/v1/document-profiles` | | ## Links - [API quickstart](https://patrapi.com/docs): authentication, one request, one response with evidence, webhooks, errors - [API reference](https://api.patrapi.com/docs): every endpoint, interactive (needs JavaScript) - [OpenAPI spec](https://api.patrapi.com/openapi.json): the same reference as JSON ## Recipes (40) A recipe is a ready-made list of fields for one kind of document. Start a workflow from it, change the fields if you need to, test and publish. - Identity: PAN card, Aadhaar card, Birth certificate, School leaving certificate, ST / SC / OBC caste certificate - Business: Udyam Registration Certificate, GST registration certificate, PAN card of a firm or company, Registrar of Firms (ROF) certificate, Certificate of Incorporation, Memorandum and Articles of Association, Partnership deed, Gujarat Pollution Control Board consent, MANTRA certificate, Visiting card - Property: Rent / leave and licence agreement, Property tax bill, Index copy, Sale deed, Dastavej, Approved building plan copy, Construction permission letter - Power & utilities: Electricity bill, Proforma-15, Electricity connection quotation, Power estimate copy, Power released letter, HT checking sheet, Electrical inspector report, GEDA certificate, Tri-party agreement for solar installation - Finance: Income tax return, Sale bill / tax invoice, Indigenous machinery purchase bill, Machinery payment receipt, Cancelled cheque, CC / OD / CA or bank account statement showing rent paid, Bank account statement, Loan account statement, Loan sanction letter ### PAN card OCR API > A laminated card carrying the PAN, the holder's name, father's name and date of birth. - Page: https://patrapi.com/recipes/pan-card - Category: Identity - Template name: `pan_card` - Fields: 4 #### Fields | Field | Key | Type | Required | Notes | | --- | --- | --- | --- | --- | | PAN | `pan` | PAN | yes | | | Name | `name` | Name | yes | | | Father's name | `father_name` | Name | no | Older cards carry it; newer ones may not | | Date of birth | `date_of_birth` | Date | yes | | ### Aadhaar card OCR API > The front carries name, date of birth (or year of birth) and gender; the 12-digit number is printed in groups of four. The back carries the address. A document may contain either side or both. - Page: https://patrapi.com/recipes/aadhaar-card - Category: Identity - Template name: `aadhaar_card` - Fields: 4 #### Fields | Field | Key | Type | Required | Notes | | --- | --- | --- | --- | --- | | Name | `name` | Name | yes | | | DOB | `date_of_birth` | Date | yes | Some cards print only the year of birth; report it as printed | | Gender | `gender` | Choice | yes | | | Aadhaar Card Number | `aadhaar_number` | Aadhaar | yes | | ### Birth certificate OCR API > Issued by a municipal or panchayat registrar. - Page: https://patrapi.com/recipes/birth-certificate - Category: Identity - Template name: `birth_certificate` - Fields: 2 #### Fields | Field | Key | Type | Required | Notes | | --- | --- | --- | --- | --- | | Full name | `full_name` | Name | yes | Name of the child | | Date of birth | `date_of_birth` | Date | yes | | ### School leaving certificate OCR API > Issued by a school on leaving; often handwritten entries on a printed form, sometimes in Gujarati. - Page: https://patrapi.com/recipes/school-leaving-certificate - Category: Identity - Template name: `school_leaving_certificate` - Fields: 3 #### Fields | Field | Key | Type | Required | Notes | | --- | --- | --- | --- | --- | | Name | `name` | Name | yes | Name of the student | | Date of birth | `date_of_birth` | Date | yes | The date in figures, not the date in words | | Education | `education` | Text | yes | Last standard or class studied / passed | ### ST / SC / OBC caste certificate OCR API > Issued by a district or taluka authority certifying the holder's caste category. - Page: https://patrapi.com/recipes/caste-certificate - Category: Identity - Template name: `caste_certificate` - Fields: 4 #### Fields | Field | Key | Type | Required | Notes | | --- | --- | --- | --- | --- | | Name | `name` | Name | yes | Name of the certificate holder | | Cast | `caste` | Text | yes | Caste and its category (ST, SC or OBC) as printed | | Cast certificate no. | `certificate_number` | Text | yes | | | Certificate issue date | `issue_date` | Date | yes | | ### 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 | ### GST registration certificate OCR API > Issued by the GST department. The first page has the registration number, legal and trade name, constitution, address and dates; an annexure lists additional places of business and partners. Also used for a property owner's GST certificate. - Page: https://patrapi.com/recipes/gst-certificate - Category: Business - Template name: `gst_certificate` - Fields: 9 #### Fields | Field | Key | Type | Required | Notes | | --- | --- | --- | --- | --- | | GST Registration Number | `gstin` | GSTIN | yes | | | Legal name | `legal_name` | Name | yes | | | Trade name | `trade_name` | Name | no | | | Constitution of business | `constitution` | Text | yes | e.g. Proprietorship, Partnership, Private Limited Company | | Address line 1 | `address_line_1` | Address | yes | | | Address line 2 | `address_line_2` | Address | no | | | Area code | `area_code` | PIN code | no | PIN code | | Date of Liability | `date_of_liability` | Date | no | | | Date of issue of Certificate | `date_of_issue` | Date | yes | | ### PAN card of a firm or company OCR API > Issued by the Income Tax Department to a firm, company or other non-individual; carries the date of incorporation instead of a date of birth. - Page: https://patrapi.com/recipes/firm-pan-card - Category: Business - Template name: `firm_pan_card` - Fields: 3 #### Fields | Field | Key | Type | Required | Notes | | --- | --- | --- | --- | --- | | PAN card number | `pan` | PAN | yes | | | Name | `name` | Name | yes | Name of the firm or company | | Date of incorporation | `date_of_incorporation` | Date | yes | | ### Registrar of Firms (ROF) certificate OCR API > Certificate or extract showing a partnership firm's registration with the Registrar of Firms. - Page: https://patrapi.com/recipes/registrar-of-firms - Category: Business - Template name: `registrar_of_firms` - Fields: 5 #### Fields | Field | Key | Type | Required | Notes | | --- | --- | --- | --- | --- | | Firm name | `firm_name` | Name | yes | | | Number of partners | `number_of_partners` | Whole number | yes | | | Address line 1 | `address_line_1` | Address | yes | | | Address line 2 | `address_line_2` | Address | no | | | Area code | `area_code` | PIN code | no | PIN code | ### Certificate of Incorporation OCR API > Issued by the Registrar of Companies on incorporating a company or LLP. - Page: https://patrapi.com/recipes/certificate-of-incorporation - Category: Business - Template name: `certificate_of_incorporation` - Fields: 3 #### Fields | Field | Key | Type | Required | Notes | | --- | --- | --- | --- | --- | | Firm name | `firm_name` | Name | yes | Name of the company | | Corporate Identity Number | `cin` | CIN | yes | | | Date of incorporation | `date_of_incorporation` | Date | yes | | ### Memorandum and Articles of Association OCR API > A company's constitutional document; the company name appears on the cover and in clause I. - Page: https://patrapi.com/recipes/moa-aoa - Category: Business - Template name: `moa_aoa` - Fields: 1 #### Fields | Field | Key | Type | Required | Notes | | --- | --- | --- | --- | --- | | Firm name | `firm_name` | Name | yes | Name of the company | ### Partnership deed OCR API > A stamped agreement constituting a partnership firm; lists each partner, the capital or profit-sharing ratio, the firm's address and the date. - Page: https://patrapi.com/recipes/partnership-deed - Category: Business - Template name: `partnership_deed` - Fields: 6 #### Fields | Field | Key | Type | Required | Notes | | --- | --- | --- | --- | --- | | Number of partners | `number_of_partners` | Whole number | yes | | | Partners | `partners` | Table | | One row each: Name of partner (`name`), PAN number of partner (`pan`), Equity share ratio in percentage (`share_percentage`) | | Address line 1 | `address_line_1` | Address | yes | | | Address line 2 | `address_line_2` | Address | no | | | Area code | `area_code` | PIN code | no | PIN code | | Date of registration | `date_of_registration` | Date | yes | Date the deed was executed or registered | ### Gujarat Pollution Control Board consent OCR API > Consent to establish or operate issued by GPCB; carries the consent order number, validity and permitted products with capacity. - Page: https://patrapi.com/recipes/gpcb-certificate - Category: Business - Template name: `gpcb_certificate` - Fields: 8 #### Fields | Field | Key | Type | Required | Notes | | --- | --- | --- | --- | --- | | Firm name | `firm_name` | Name | yes | | | Address line 1 | `address_line_1` | Address | yes | | | Address line 2 | `address_line_2` | Address | no | | | Area code | `area_code` | PIN code | no | PIN code | | Consent order number | `consent_order_number` | Text | yes | | | Date of issue | `date_of_issue` | Date | yes | | | Valid upto | `valid_upto` | Date | yes | | | Products | `products` | Table | | One row each: Product name (`product_name`), Production capacity per month (`capacity_per_month`) | ### MANTRA certificate OCR API > Certificate issued by MANTRA (Man-Made Textiles Research Association) for technical textile products. - Page: https://patrapi.com/recipes/mantra-certificate - Category: Business - Template name: `mantra_certificate` - Fields: 6 #### Fields | Field | Key | Type | Required | Notes | | --- | --- | --- | --- | --- | | Mantra certificate number | `certificate_number` | Text | yes | | | Firm name | `firm_name` | Name | yes | | | Address line 1 | `firm_address_line_1` | Address | yes | | | Address line 2 | `firm_address_line_2` | Address | no | | | Area code | `firm_area_code` | PIN code | no | PIN code | | Technical textile category | `technical_textile_category` | Text | yes | | ### Visiting card OCR API > A business card, as a photo or scan of one side or both. The person's name is usually the largest line after the company's; phone numbers, email, website and address sit together in small type. - Page: https://patrapi.com/recipes/visiting-card - Category: Business - Template name: `visiting_card` - Fields: 10 #### Fields | Field | Key | Type | Required | Notes | | --- | --- | --- | --- | --- | | Name | `name` | Name | yes | The person the card belongs to, not the company | | Designation | `designation` | Text | no | Job title, e.g. Proprietor, Director, Sales Manager | | Company | `company` | Text | yes | The firm or company name as printed, usually beside the logo | | Mobile | `mobile` | Mobile | no | The first mobile number printed | | Other phone | `other_phone` | Text | no | A second mobile or a landline with its STD code, if printed | | Email | `email` | Email | no | | | Website | `website` | Text | no | | | Address | `address` | Address | no | The full address as one string | | PIN code | `pincode` | PIN code | no | | | GSTIN | `gstin` | GSTIN | no | Only when the card prints one | ### Rent / leave and licence agreement OCR API > A stamped agreement between the property owner (licensor / lessor) and the user (licensee / lessee). Often long; the parties, premises, rent and term are usually on the first pages. - Page: https://patrapi.com/recipes/rent-agreement - Category: Property - Template name: `rent_agreement` - Fields: 9 #### Fields | Field | Key | Type | Required | Notes | | --- | --- | --- | --- | --- | | Agreement date | `agreement_date` | Date | yes | | | Owners of property | `owners` | Table | | One row each: Owner name (`name`) | | User of property — name | `user_name` | Name | yes | Licensee / lessee | | Address line 1 | `property_address_line_1` | Address | yes | | | Address line 2 | `property_address_line_2` | Address | no | | | Area code | `property_area_code` | PIN code | no | PIN code | | Monthly rental | `monthly_rent` | Amount (₹) | yes | | | Duration start date | `start_date` | Date | yes | | | Duration end date | `end_date` | Date | yes | | ### Property tax bill OCR API > Municipal or gram panchayat property tax bill / receipt, often in Gujarati. - Page: https://patrapi.com/recipes/vera-bill - Category: Property - Template name: `vera_bill` - Fields: 6 #### Fields | Field | Key | Type | Required | Notes | | --- | --- | --- | --- | --- | | Name of owner | `owner_name` | Name | yes | | | Year of vera bill | `bill_year` | Text | yes | Financial year or year as printed, e.g. 2024-25 | | Address line 1 | `address_line_1` | Address | yes | | | Address line 2 | `address_line_2` | Address | no | | | Area code | `area_code` | PIN code | no | PIN code | | Ward number | `ward_number` | Text | no | | ### Index copy OCR API > Sub-registrar's index extract of a registered property document, usually in Gujarati. - Page: https://patrapi.com/recipes/index-copy - Category: Property - Template name: `index_copy` - Fields: 8 #### Fields | Field | Key | Type | Required | Notes | | --- | --- | --- | --- | --- | | Type of dastavej | `document_type` | Text | yes | Nature of the registered document, e.g. sale deed | | Dastavej amount | `document_amount` | Amount (₹) | yes | Consideration / market value as printed | | Address line 1 | `address_line_1` | Address | yes | | | Address line 2 | `address_line_2` | Address | no | | | Area code | `area_code` | PIN code | no | PIN code | | Land area in sq. metre | `land_area_sq_m` | Number | yes | | | Owner's name | `owner_name` | Name | yes | | | Date of registration | `date_of_registration` | Date | yes | | ### Sale deed OCR API > A registered deed transferring property; long and stamped, often in Gujarati. The buyer (purchaser / vendee) and the property schedule are the key parts. - Page: https://patrapi.com/recipes/sale-deed - Category: Property - Template name: `sale_deed` - Fields: 5 #### Fields | Field | Key | Type | Required | Notes | | --- | --- | --- | --- | --- | | Buyer's name | `buyer_name` | Name | yes | | | Address line 1 | `address_line_1` | Address | yes | | | Address line 2 | `address_line_2` | Address | no | | | Area code | `area_code` | PIN code | no | PIN code | | Land area in sq. metre | `land_area_sq_m` | Number | yes | | ### Dastavej OCR API > A registered property document; owner, property address and the document date. - Page: https://patrapi.com/recipes/dastavej - Category: Property - Template name: `dastavej` - Fields: 5 #### Fields | Field | Key | Type | Required | Notes | | --- | --- | --- | --- | --- | | Name of owner | `owner_name` | Name | yes | | | Address line 1 | `address_line_1` | Address | yes | | | Address line 2 | `address_line_2` | Address | no | | | Area code | `area_code` | PIN code | no | PIN code | | Date of dastavej | `document_date` | Date | yes | | ### Approved building plan copy OCR API > Approved layout or building plan; the site address is usually in the title block. - Page: https://patrapi.com/recipes/plan-copy - Category: Property - Template name: `plan_copy` - Fields: 3 #### Fields | Field | Key | Type | Required | Notes | | --- | --- | --- | --- | --- | | Address line 1 | `address_line_1` | Address | yes | | | Address line 2 | `address_line_2` | Address | no | | | Area code | `area_code` | PIN code | no | PIN code | ### Construction permission letter OCR API > Permission to construct issued by a municipality, development authority or gram panchayat. - Page: https://patrapi.com/recipes/construction-permission - Category: Property - Template name: `construction_permission` - Fields: 4 #### Fields | Field | Key | Type | Required | Notes | | --- | --- | --- | --- | --- | | Firm name | `firm_name` | Name | yes | | | Address line 1 | `address_line_1` | Address | yes | | | Address line 2 | `address_line_2` | Address | no | | | Area code | `area_code` | PIN code | no | PIN code | ### Electricity bill OCR API > A monthly electricity bill. Gujarat distribution companies are DGVCL, MGVCL, PGVCL, UGVCL; Torrent Power in some cities. - Page: https://patrapi.com/recipes/light-bill - Category: Power & utilities - Template name: `light_bill` - Fields: 9 #### Fields | Field | Key | Type | Required | Notes | | --- | --- | --- | --- | --- | | Electricity Co. | `electricity_company` | Text | yes | | | Name | `name` | Name | yes | Consumer name | | Address line 1 | `address_line_1` | Address | yes | | | Address line 2 | `address_line_2` | Address | no | | | Area code | `area_code` | PIN code | no | PIN code | | Customer No. | `customer_number` | Text | yes | Consumer / service number | | Meter No. | `meter_number` | Text | yes | | | Sub Div. office | `sub_division_office` | Text | no | | | Connected load | `connected_load` | Text | yes | With its unit (kW / HP / kVA), as printed | ### Proforma-15 OCR API > A discom form for a new or changed electricity connection, often scanned. Gujarat distribution companies are DGVCL, MGVCL, PGVCL, UGVCL; Torrent Power in some cities. - Page: https://patrapi.com/recipes/proforma-15 - Category: Power & utilities - Template name: `proforma_15` - Fields: 7 #### Fields | Field | Key | Type | Required | Notes | | --- | --- | --- | --- | --- | | Service provider | `service_provider` | Text | yes | | | Sub division name | `sub_division_name` | Text | yes | | | Date of proforma-15 | `date` | Date | yes | | | Consumer / firm name | `consumer_name` | Name | yes | | | Consumer number | `consumer_number` | Text | yes | | | Meter number | `meter_number` | Text | yes | | | Connected load in kW | `connected_load_kw` | Number | yes | | ### Electricity connection quotation OCR API > A discom's quotation / demand note for a new connection or load increase. Gujarat distribution companies are DGVCL, MGVCL, PGVCL, UGVCL; Torrent Power in some cities. - Page: https://patrapi.com/recipes/power-quotation - Category: Power & utilities - Template name: `power_quotation` - Fields: 11 #### Fields | Field | Key | Type | Required | Notes | | --- | --- | --- | --- | --- | | Service provider name | `service_provider` | Text | yes | | | Firm name | `firm_name` | Name | yes | | | Address line 1 | `address_line_1` | Address | yes | | | Address line 2 | `address_line_2` | Address | no | | | Area code | `area_code` | PIN code | no | PIN code | | Consumer number | `consumer_number` | Text | no | | | Application date | `application_date` | Date | yes | | | Connection type | `connection_type` | Text | yes | e.g. LT / HT, new connection / load extension | | Agreement fees | `agreement_fees` | Amount (₹) | yes | | | Fixed charges | `fixed_charges` | Amount (₹) | yes | | | Security deposit | `security_deposit` | Amount (₹) | yes | | ### Power estimate copy OCR API > A discom's estimate for catering a new load. Gujarat distribution companies are DGVCL, MGVCL, PGVCL, UGVCL; Torrent Power in some cities. - Page: https://patrapi.com/recipes/power-estimate - Category: Power & utilities - Template name: `power_estimate` - Fields: 7 #### Fields | Field | Key | Type | Required | Notes | | --- | --- | --- | --- | --- | | Service provider name | `service_provider` | Text | yes | | | Division | `division` | Text | yes | | | Firm name | `firm_name` | Name | yes | | | Address line 1 | `address_line_1` | Address | yes | | | Address line 2 | `address_line_2` | Address | no | | | Area code | `area_code` | PIN code | no | PIN code | | Estimate for catering in kVA | `estimate_kva` | Number | yes | | ### Power released letter OCR API > A discom letter confirming release of a power connection or load. Gujarat distribution companies are DGVCL, MGVCL, PGVCL, UGVCL; Torrent Power in some cities. - Page: https://patrapi.com/recipes/power-released-letter - Category: Power & utilities - Template name: `power_released_letter` - Fields: 9 #### Fields | Field | Key | Type | Required | Notes | | --- | --- | --- | --- | --- | | Service provider name | `service_provider` | Text | yes | | | Division | `division` | Text | yes | | | Power released date | `release_date` | Date | yes | | | Firm name | `firm_name` | Name | yes | | | Address line 1 | `address_line_1` | Address | yes | | | Address line 2 | `address_line_2` | Address | no | | | Area code | `area_code` | PIN code | no | PIN code | | Consumer number | `consumer_number` | Text | yes | | | Power released in kVA | `released_kva` | Number | yes | | ### HT checking sheet OCR API > A discom inspection sheet for a high-tension connection. Gujarat distribution companies are DGVCL, MGVCL, PGVCL, UGVCL; Torrent Power in some cities. - Page: https://patrapi.com/recipes/ht-checking-sheet - Category: Power & utilities - Template name: `ht_checking_sheet` - Fields: 9 #### Fields | Field | Key | Type | Required | Notes | | --- | --- | --- | --- | --- | | Service provider name | `service_provider` | Text | yes | | | Division | `division` | Text | yes | | | Date of checking sheet | `date` | Date | yes | | | Firm name | `firm_name` | Name | yes | | | Address line 1 | `address_line_1` | Address | yes | | | Address line 2 | `address_line_2` | Address | no | | | Area code | `area_code` | PIN code | no | PIN code | | Meter number | `meter_number` | Text | yes | | | Power released in kVA | `released_kva` | Number | yes | | ### Electrical inspector report OCR API > Report or approval from the electrical inspectorate for an installation. - Page: https://patrapi.com/recipes/electrical-inspector-report - Category: Power & utilities - Template name: `electrical_inspector_report` - Fields: 6 #### Fields | Field | Key | Type | Required | Notes | | --- | --- | --- | --- | --- | | Firm name | `firm_name` | Name | yes | | | Consumer number | `consumer_number` | Text | yes | | | Total capacity in kW | `total_capacity_kw` | Number | yes | | | Address line 1 | `address_line_1` | Address | yes | | | Address line 2 | `address_line_2` | Address | no | | | Area code | `area_code` | PIN code | no | PIN code | ### GEDA certificate OCR API > Registration or commissioning certificate from the Gujarat Energy Development Agency for a solar installation. - Page: https://patrapi.com/recipes/geda-certificate - Category: Power & utilities - Template name: `geda_certificate` - Fields: 10 #### Fields | Field | Key | Type | Required | Notes | | --- | --- | --- | --- | --- | | Registration no. | `registration_number` | Text | yes | | | Firm name | `firm_name` | Name | yes | | | Date of registration | `date_of_registration` | Date | yes | | | Consumer no. | `consumer_number` | Text | yes | | | Sanctioned load in kW | `sanctioned_load_kw` | Number | yes | | | Solar capacity (AC) | `solar_capacity_ac_kw` | Number | yes | kW | | Solar capacity (DC) | `solar_capacity_dc_kw` | Number | yes | kW | | Address line 1 | `address_line_1` | Address | yes | | | Address line 2 | `address_line_2` | Address | no | | | Area code | `area_code` | PIN code | no | PIN code | ### Tri-party agreement for solar installation OCR API > Agreement between the consumer, the discom and the solar installer. - Page: https://patrapi.com/recipes/triparty-agreement-solar - Category: Power & utilities - Template name: `triparty_agreement_solar` - Fields: 6 #### Fields | Field | Key | Type | Required | Notes | | --- | --- | --- | --- | --- | | Customer / firm name | `customer_name` | Name | yes | | | Consumer number | `consumer_number` | Text | yes | | | Address line 1 | `installed_address_line_1` | Address | yes | | | Address line 2 | `installed_address_line_2` | Address | no | | | Area code | `installed_area_code` | PIN code | no | PIN code | | Installed capacity in kW | `installed_capacity_kw` | Number | yes | | ### Income tax return OCR API > ITR-V acknowledgement, computation of income or tax audit report, possibly with financial statements. - Page: https://patrapi.com/recipes/income-tax-return - Category: Finance - Template name: `income_tax_return` - Fields: 3 #### Fields | Field | Key | Type | Required | Notes | | --- | --- | --- | --- | --- | | Name | `name` | Name | yes | Name of the assessee | | A.Y. | `assessment_year` | Assessment year | yes | | | Last year machinery amount | `machinery_amount` | Amount (₹) | no | Plant and machinery value from the fixed-asset / depreciation schedule, if present | ### Sale bill / tax invoice OCR API > A GST tax invoice issued by the firm for goods it sold. - Page: https://patrapi.com/recipes/sale-bill - Category: Finance - Template name: `sale_bill` - Fields: 6 #### Fields | Field | Key | Type | Required | Notes | | --- | --- | --- | --- | --- | | Invoice no. | `invoice_number` | Text | yes | | | Invoice date | `invoice_date` | Date | yes | | | Firm name | `firm_name` | Name | yes | Seller (issuer of the invoice) | | Buyer's name | `buyer_name` | Name | yes | | | HSN code | `hsn_codes` | Text | yes | All HSN codes on the invoice, separated by commas | | Invoice amount | `invoice_amount` | Amount (₹) | yes | Grand total including tax | ### Indigenous machinery purchase bill OCR API > A GST tax invoice for machinery bought by the firm from an Indian supplier. - Page: https://patrapi.com/recipes/machinery-bill - Category: Finance - Template name: `machinery_bill` - Fields: 9 #### Fields | Field | Key | Type | Required | Notes | | --- | --- | --- | --- | --- | | Invoice number | `invoice_number` | Text | yes | | | Invoice date | `invoice_date` | Date | yes | | | Seller firm name | `seller_firm_name` | Name | yes | | | Seller address | `seller_address` | Address | yes | | | Seller GST number | `seller_gstin` | GSTIN | yes | | | Buyer firm name | `buyer_firm_name` | Name | yes | | | Description of goods | `description_of_goods` | Text | yes | | | Amount of invoice without GST | `amount_without_gst` | Amount (₹) | yes | Taxable value | | Amount of invoice with GST | `amount_with_gst` | Amount (₹) | yes | Grand total | ### Machinery payment receipt OCR API > A receipt from a machinery seller acknowledging payment. - Page: https://patrapi.com/recipes/machinery-payment-receipt - Category: Finance - Template name: `machinery_payment_receipt` - Fields: 4 #### Fields | Field | Key | Type | Required | Notes | | --- | --- | --- | --- | --- | | Seller name | `seller_name` | Name | yes | | | Receipt number | `receipt_number` | Text | yes | | | Receipt date | `receipt_date` | Date | yes | | | Receipt amount | `receipt_amount` | Amount (₹) | yes | | ### Cancelled cheque OCR API > A cheque leaf marked cancelled; the account number and IFSC are printed on it, the account name usually above the signature. - Page: https://patrapi.com/recipes/cancelled-cheque - Category: Finance - Template name: `cancelled_cheque` - Fields: 5 #### Fields | Field | Key | Type | Required | Notes | | --- | --- | --- | --- | --- | | Name of account | `account_name` | Name | yes | | | Account number | `account_number` | Bank account number | yes | | | Name of bank | `bank_name` | Text | yes | | | Branch | `branch` | Text | yes | | | IFSC | `ifsc` | IFSC | yes | | ### CC / OD / CA or bank account statement showing rent paid OCR API > A bank account statement with entries for rent paid to the property owner. - Page: https://patrapi.com/recipes/account-statement-rent - Category: Finance - Template name: `account_statement_rent` - Fields: 6 #### Fields | Field | Key | Type | Required | Notes | | --- | --- | --- | --- | --- | | Name of account | `account_name` | Name | yes | Firm / owner name on the statement | | Account number | `account_number` | Bank account number | no | | | Name of bank | `bank_name` | Text | yes | | | Branch | `branch` | Text | no | | | IFSC | `ifsc` | IFSC | no | | | Rent payments | `rent_payments` | Table | | One row each: Date of rent paid (`date`), Amount of rent paid (`amount`), Owner's name in rent paid entry (`payee`), Duration / month of rent paid (`month`) | ### Bank account statement OCR API > A savings, current, CC or OD account statement from an Indian bank: account details at the top, then a table of transactions with a running balance, often followed by a summary of totals. Column names differ by bank (Withdrawal / Debit / Dr, Deposit / Credit / Cr, Balance / Closing Balance). A consolidated statement carries several accounts, each with its own header, table and summary. Pages also carry tables that are not transactions (relationship summaries, linked loans and deposits, reward points), which are left out. - Page: https://patrapi.com/recipes/bank-statement - Category: Finance - Template name: `bank_statement` - Fields: 6 #### Fields | Field | Key | Type | Required | Notes | | --- | --- | --- | --- | --- | | Account holder | `account_holder` | Name | yes | | | Bank | `bank_name` | Text | yes | | | Statement from | `period_from` | Date | yes | | | Statement to | `period_to` | Date | yes | | | Accounts | `accounts` | Table | | One row each: Account number (`account_number`), Account type (`account_type`), IFSC (`ifsc`), Branch (`branch`), Opening balance (`opening_balance`), Closing balance (`closing_balance`), Total debits (`total_debits`), Total credits (`total_credits`), Debit count (`debit_count`), Credit count (`credit_count`) | | Transactions | `transactions` | Table | | One row each: Account (`account_number`), Date (`date`), Value date (`value_date`), Narration (`description`), Cheque / ref no (`reference`), Withdrawal (`debit`), Deposit (`credit`), Balance (`balance`) | ### Loan account statement OCR API > A term-loan account statement showing disbursements and repayments. - Page: https://patrapi.com/recipes/loan-statement - Category: Finance - Template name: `loan_statement` - Fields: 7 #### Fields | Field | Key | Type | Required | Notes | | --- | --- | --- | --- | --- | | Firm name | `firm_name` | Name | yes | Borrower | | Loan account number | `loan_account_number` | Bank account number | yes | | | Date of 1st disbursement | `first_disbursement_date` | Date | yes | | | Amount of 1st disbursement | `first_disbursement_amount` | Amount (₹) | yes | | | Name of bank | `bank_name` | Text | yes | | | Branch name | `branch_name` | Text | yes | | | Receipt amount | `receipt_amount` | Amount (₹) | no | | ### Loan sanction letter OCR API > A bank's letter sanctioning a credit facility: amount, tenure, interest, margin, security and terms. A letter may list several facilities; report the term loan for machinery when there are several, and the total otherwise. - Page: https://patrapi.com/recipes/loan-sanction-letter - Category: Finance - Template name: `loan_sanction_letter` - Fields: 12 #### Fields | Field | Key | Type | Required | Notes | | --- | --- | --- | --- | --- | | Loan application date | `application_date` | Date | no | | | Loan sanction date | `sanction_date` | Date | yes | | | Firm name | `firm_name` | Name | yes | Borrower | | Loan amount | `loan_amount` | Amount (₹) | yes | Sanctioned amount, not the requested amount | | Loan repayment month | `repayment_months` | Whole number | yes | Repayment period in months | | Moratorium period | `moratorium_months` | Whole number | no | In months | | Margin | `margin` | Percentage | yes | | | Loan under CGTMSE | `under_cgtmse` | Choice | no | | | Rate of interest | `rate_of_interest` | Text | yes | As printed, e.g. RLLR + 1.50% = 9.75% p.a. | | Bank | `bank` | Text | yes | | | Branch | `branch` | Text | yes | | | Branch address | `branch_address` | Address | no | |