Invoice Parsing API — Invoice OCR to Structured JSON            [ SharpAPI ![SharpAPI logo](https://sharpapi.com/build/assets/resources/images/logo200-C65na0V3.png) ](https://sharpapi.com/en)  Open main menu    

  Products   Solutions

 [ Resume Parsing API  ](https://sharpapi.com/en/resume-parsing-api)Convert resumes in PDF, DOCX or images into structured JSON profiles.

 [ Resume Job Match Score  ](https://sharpapi.com/en/resume-job-match-score-api)Score any resume against a job description across a dozen dimensions.

 [ Invoice Parsing API  ](https://sharpapi.com/en/invoice-parsing-api)OCR and AI extraction of invoice data into clean, structured JSON.

 [ Translation API  ](https://sharpapi.com/en/translation-api)Structured JSON translation for applications across 80+ languages.

 [ AI for HR Tech  ](https://sharpapi.com/en/solutions/hr-tech)The full hiring pipeline: parse, match, skills data and job descriptions.

 [ AI for E-commerce  ](https://sharpapi.com/en/solutions/ecommerce)Product content, categorization, sentiment and post-purchase emails.

 [ Skills Taxonomy API  ](https://sharpapi.com/en/skills-taxonomy-api)Related skills, job titles and a queryable skills database.

 [ Custom Workflows  ](https://sharpapi.com/en/custom-workflows)Turn any AI prompt into your own production REST API endpoint.

API Catalog

- [   E-commerce ](https://sharpapi.com/en/catalog/ai/e-commerce)
- [   Content &amp; Marketing Automation ](https://sharpapi.com/en/catalog/ai/content-marketing-automation)
- [   HR Tech ](https://sharpapi.com/en/catalog/ai/hr-tech)
- [   Travel, Tourism &amp; Hospitality ](https://sharpapi.com/en/catalog/ai/travel-tourism-hospitality)
- [   SEO ](https://sharpapi.com/en/catalog/ai/seo)
- [   Accounting &amp; Finance ](https://sharpapi.com/en/catalog/ai/accounting-finance)
- [   Utility APIs ](https://sharpapi.com/en/catalog/utility)

 [ Browse all APIs → ](https://sharpapi.com/en/catalog) 

 [ Pricing ](https://sharpapi.com/en/pricing) [ Affiliate Program ](https://sharpapi.com/en/affiliate_program) [ Blog ](https://sharpapi.com/en/blog) [ Contact ](https://sharpapi.com/en#contact) [  GitHub ](https://github.com/sharpapi/ "GitHub")    English    [ Deutsch ](https://sharpapi.com/de/invoice-parsing-api) [ English ](https://sharpapi.com/en/invoice-parsing-api) [ español ](https://sharpapi.com/es/invoice-parsing-api) [ français ](https://sharpapi.com/fr/invoice-parsing-api) [ العربية ](https://sharpapi.com/ar/invoice-parsing-api) [ 简体中文 ](https://sharpapi.com/zh/invoice-parsing-api) 

 [ Log in ](/dashboard) [ Sign up → ](/register) 

 [ SharpAPI ![SharpAPI logo](https://sharpapi.com/build/assets/resources/images/logo200-C65na0V3.png) ](https://sharpapi.com/en)  Close menu    

  Products   Solutions

 [ Resume Parsing API ](https://sharpapi.com/en/resume-parsing-api) [ Resume Job Match Score ](https://sharpapi.com/en/resume-job-match-score-api) [ Invoice Parsing API ](https://sharpapi.com/en/invoice-parsing-api) [ Translation API ](https://sharpapi.com/en/translation-api) [ AI for HR Tech ](https://sharpapi.com/en/solutions/hr-tech) [ AI for E-commerce ](https://sharpapi.com/en/solutions/ecommerce) [ Skills Taxonomy API ](https://sharpapi.com/en/skills-taxonomy-api) [ Custom Workflows ](https://sharpapi.com/en/custom-workflows)API Catalog

 [ E-commerce ](https://sharpapi.com/en/catalog/ai/e-commerce) [ Content &amp; Marketing Automation ](https://sharpapi.com/en/catalog/ai/content-marketing-automation) [ HR Tech ](https://sharpapi.com/en/catalog/ai/hr-tech) [ Travel, Tourism &amp; Hospitality ](https://sharpapi.com/en/catalog/ai/travel-tourism-hospitality) [ SEO ](https://sharpapi.com/en/catalog/ai/seo) [ Accounting &amp; Finance ](https://sharpapi.com/en/catalog/ai/accounting-finance) [ Utility APIs ](https://sharpapi.com/en/catalog/utility) [ Browse all APIs → ](https://sharpapi.com/en/catalog) 

 [ Pricing ](https://sharpapi.com/en/pricing) [ Affiliate Program ](https://sharpapi.com/en/affiliate_program) [ Blog ](https://sharpapi.com/en/blog) [ Contact ](https://sharpapi.com/en#contact) 

    English    [ Deutsch ](https://sharpapi.com/de/invoice-parsing-api) [ English ](https://sharpapi.com/en/invoice-parsing-api) [ español ](https://sharpapi.com/es/invoice-parsing-api) [ français ](https://sharpapi.com/fr/invoice-parsing-api) [ العربية ](https://sharpapi.com/ar/invoice-parsing-api) [ 简体中文 ](https://sharpapi.com/zh/invoice-parsing-api) 

 [ Sign up ](/register) 

 [ Log in ](/dashboard) 

    Accounting &amp; Finance API 

 Invoice Parsing API — OCR Any Invoice Into Structured JSON 
============================================================

 POST a PDF or scanned invoice and get back labeled JSON: invoice number, dates, seller and buyer data, line items, totals, VAT and currency. Textract-grade OCR handles the pixels; LLM structuring handles the meaning — no per-vendor templates, ever.

    PDF &amp; scanned images (JPG, PNG, TIFF) 

    Line items, totals &amp; VAT — typed JSON 

    Async REST API — status URL or webhooks 

 [ Start Parsing Invoices Free ](https://sharpapi.com/register) [ Endpoint Details &amp; Docs → ](https://sharpapi.com/en/catalog/ai/accounting-finance/invoice-parser) 

14-day trial · 100,000 words included · No credit card required

See the Invoice OCR in Action
-----------------------------

Run a real extraction job on a sample invoice — straight from this page.

### Try it live — no signup needed

  Live demo  

 Pick a sample document and watch this API process it in real time.

  Website 

     Consulting services invoice (PDF)      Product order invoice (PDF)  

 Demo runs on bundled sample documents. Want to test your own files? [Start a free trial](https://sharpapi.com/register)

  Run this API      Processing…    

  ```

```

 That was a live API response. Get your own API key and 100,000 free trial words — no credit card required.

 [ Start free trial ](https://sharpapi.com/register)  Try again  

   Not ready yet? Get a monthly email with new endpoints, live demos and API automation recipes.

   Send me demos  

  Double opt-in, unsubscribe anytime.

 1. [    Home ](https://sharpapi.com/en)
2. [Invoice Parsing API](https://sharpapi.com/en/invoice-parsing-api)

 How the Invoice Parsing API Works 
-----------------------------------

 One multipart POST in, labeled invoice JSON out — fully asynchronous.

 1 

### POST the invoice file

Send a PDF or scanned image (JPG/PNG/TIFF) up to 100 MB to /api/v1/finance/parse\_invoice with your Bearer token.

 2 

### Get a status URL

The API answers instantly with 202 Accepted and a status\_url — OCR and AI structuring run on our queue, not in your request thread.

 3 

### Poll or get a webhook

Poll the status URL or pass a webhook URL header to be called back the moment extraction completes.

 4 

### Read structured JSON

Receive invoice number, issue and due dates, seller/buyer details, line items with quantities and unit prices, net/gross totals, VAT rates and currency.

 Call it from any stack
----------------------

Submit a job, poll the status URL, get structured JSON. SDKs available for PHP, Laravel, Python, Node.js, .NET and Flutter.

 cURL PHP Python Response 

 ```
curl -X POST "https://sharpapi.com/api/v1/finance/parse_invoice" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"file": "@invoice.pdf"}'
```

 ```
$response = Http::withToken('YOUR_API_KEY')
    ->post('https://sharpapi.com/api/v1/finance/parse_invoice', {"file": "@invoice.pdf"});

$statusUrl = $response->json('status_url'); // poll until status = success
```

 ```
import requests

response = requests.post(
    "https://sharpapi.com/api/v1/finance/parse_invoice",
    headers={"Authorization": "Bearer YOUR_API_KEY"},
    json={"file": "@invoice.pdf"},
)
status_url = response.json()["status_url"]  # poll until status == "success"
```

 ```
{
    "data": {
        "type": "api_job_result",
        "id": "e00ebeec-6df3-4282-b515-8c447ea5d6ab",
        "attributes": {
            "status": "success",
            "type": "invoice_parse",
            "result": [
                {
                    "source_pages": [
                        1
                    ],
                    "document": {
                        "type": "invoice",
                        "original_type_label": "Invoice",
                        "is_invoice": true,
                        "is_copy": false,
                        "copy_type": null
                    },
                    "invoice": {
                        "invoice_number": "D7BDFA00-0019",
                        "issue_date": "2025-12-07",
                        "due_date": "2025-12-07",
                        "document_date": null,
                        "order_date": null,
                        "delivery_date": null,
                        "shipping_date": null,
                        "pricing_date": null,
                        "currency": "USD",
                        "exchange_rate": null,
                        "page_info": "1 of 1",
                        "amount_in_words": "",
                        "notes": "",
                        "remarks": "",
                        "delivery_instructions": "",
                        "terms_and_conditions": [],
                        "late_payment_interest_rate": null
                    },
                    "references": {
                        "delivery_order_number": "",
                        "purchase_order_number": "",
                        "sales_order_number": "",
                        "customer_reference": "",
                        "external_document_number": "",
                        "grn_number": "",
                        "route_number": "",
                        "lorry_number": "",
                        "serial_number": "",
                        "batch_number": "",
                        "other_references": []
                    },
                    "e_invoice": {
                        "uuid": "",
                        "e_invoice_code": "",
                        "e_invoice_type": "",
                        "e_invoice_version": "",
                        "submission_id": "",
                        "submission_document_id": "",
                        "submission_long_id": "",
                        "submission_status": "",
                        "validation_datetime": null,
                        "digital_signature_present": false,
                        "validated_link": "",
                        "original_e_invoice_ref": "",
                        "qr_code_present": false
                    },
                    "seller": {
                        "name": "OpenAl, LLC",
                        "trade_name": "OpenAl",
                        "registration_number": "",
                        "tin": "",
                        "sst_id": "",
                        "gst_id": "",
                        "vat_id": "GB434338990",
                        "msic_code": "",
                        "business_activity": "",
                        "address": {
                            "street_line_1": "548 Market Street",
                            "street_line_2": "PMB 97273",
                            "city": "San Francisco",
                            "state": "California",
                            "postcode": "94104-5401",
                            "country": "US"
                        },
                        "phone": "",
                        "fax": "",
                        "email": "",
                        "website": "",
                        "bank_details": [
                            {
                                "bank_name": "",
                                "account_name": "",
                                "account_number": "",
                                "sort_code": "",
                                "swift_code": "",
                                "iban": ""
                            }
                        ],
                        "contact_person": {
                            "name": "",
                            "role": "",
                            "phone": "",
                            "email": ""
                        }
                    },
                    "buyer": {
                        "name": "A2Z WEB LTD",
                        "trade_name": "",
                        "registration_number": "",
                        "tin": "",
                        "brn": "",
                        "sst_id": "",
                        "gst_id": "",
                        "vat_id": "",
                        "customer_account_number": "",
                        "billing_address": {
                            "location_name": "",
                            "street_line_1": "Unit 4e Enterprise Court, Farfield",
                            "street_line_2": "Park",
                            "city": "Rotherham",
                            "state": "",
                            "postcode": "S63 5DB",
                            "country": "GB"
                        },
                        "delivery_address": {
                            "recipient_name": "",
                            "location_name": "",
                            "street_line_1": "Unit 10 Enterprise Court",
                            "street_line_2": "Farfield Park",
                            "city": "Rotherham",
                            "state": "",
                            "postcode": "S63 5DB",
                            "country": "GB"
                        },
                        "delivery_address_same_as_billing": false,
                        "phone": "",
                        "fax": "",
                        "email": "",
                        "attention_to": {
                            "name": "",
                            "phone": "",
                            "email": ""
                        }
                    },
                    "sales_info": {
                        "salesperson_name": "",
                        "salesperson_code": "",
                        "salesperson_phone": "",
                        "sales_agent": "",
                        "sales_location": "",
                        "sales_department": "",
                        "outlet_name": ""
                    },
                    "financials": {
                        "subtotal": 15.57,
                        "gross_amount": null,
                        "total_discount_amount": null,
                        "shipping_charge": null,
                        "delivery_fee": null,
                        "total_excl_tax": 15.57,
                        "total_tax_amount": 3.11,
                        "service_tax_amount": null,
                        "total_incl_tax": 18.68,
                        "rounding_adjustment": null,
                        "total_payable": 18.68,
                        "amount_paid": null,
                        "amount_due": 18.68,
                        "tax_details": [
                            {
                                "tax_type": "VAT",
                                "tax_rate": 20,
                                "taxable_amount": 15.57,
                                "tax_amount": 3.11
                            }
                        ]
                    },
                    "line_items": [
                        {
                            "line_number": 1,
                            "item_code": "",
                            "stock_code": "",
                            "barcode": "",
                            "description": "OpenAl API usage credit",
                            "classification_code": "",
                            "country_of_origin": "",
                            "quantity": 1,
                            "free_quantity": null,
                            "unit_of_measure": "",
                            "unit_of_measure_raw": "",
                            "pack_size": "",
                            "total_units": null,
                            "weight": null,
                            "weight_uom": "",
                            "unit_price": 15.57,
                            "discount_percent": null,
                            "discount_amount": null,
                            "subtotal": 15.57,
                            "tax_rate": 20,
                            "tax_type": "VAT",
                            "tax_amount": 3.11,
                            "total_excl_tax": 15.57,
                            "total_incl_tax": null,
                            "expiry_date": null,
                            "batch_lot_number": "",
                            "service_start_date": null,
                            "service_end_date": null
                        }
                    ],
                    "payment": {
                        "payment_terms": "",
                        "payment_terms_days": null,
                        "payment_method": "",
                        "payment_date": null,
                        "payment_reference": "",
                        "jompay_biller_code": "",
                        "jompay_ref_1": ""
                    },
                    "logistics": {
                        "shipping_method": "",
                        "vehicle_number": "",
                        "driver_name": "",
                        "delivery_zone": "",
                        "delivery_time_constraint": "",
                        "carton_count": null,
                        "total_volume": null,
                        "total_weight": null,
                        "goods_received_confirmation": false,
                        "received_by": "",
                        "receiver_signature_present": false
                    }
                }
            ]
        }
    }
}
```

 [Full API documentation »](https://sharpapi.com/en/documentation)

  Who Builds on the Invoice OCR API 
-----------------------------------

 Anywhere invoices arrive as files and your system needs numbers.

### AP Automation

Capture supplier invoices from email inboxes and portals, extract the data and push it straight into approval workflows.

 inbox PDF → approval queue 

### Accounting Software

Add "drop an invoice here" to your bookkeeping product and post ledger entries from the parsed totals and VAT breakdown.

 scan → {net, vat[], gross} 

### Expense Management

Let employees photograph receipts and invoices; parse amounts, dates and vendors for instant expense claims.

 phone photo → expense record 

### ERP Integration

Feed structured invoice data into SAP, NetSuite, Dynamics or your in-house ERP without manual keying.

 JSON → ERP document import 

### Procurement &amp; 3-Way Matching

Match parsed line items, quantities and unit prices against purchase orders and goods receipts automatically.

 line items ↔ PO ↔ GRN 

### Document Archives

Backfill years of scanned invoices into a searchable database with structured metadata per document.

 50k scans → indexed JSON 

 More document endpoints in the catalog: [ Browse Accounting &amp; Finance APIs → ](https://sharpapi.com/en/catalog/ai/accounting-finance)

 Why Developers Pick This Invoice Parser 
-----------------------------------------

### OCR + LLM in one call

Textract-grade OCR reads the document, an LLM labels it. You never stitch two vendors together or post-process raw text yourself.

### Typed, labeled JSON schema

Dates as dates, amounts as numbers, line items as arrays. The same schema for every vendor layout — your integration code stays put.

### No templates to maintain

New supplier, new layout, new language? Nothing to configure. The AI structuring generalizes instead of matching rules.

### 80+ languages

Parse invoices in English, German, Polish, French, Spanish and dozens more — including mixed-language documents.

### Async with webhooks

202-and-poll by default; add a webhook URL header for callbacks. Designed for batch pipelines processing thousands of documents.

### Per-word pricing, GDPR &amp; SOC 2

No per-page OCR fees — you pay per processed word. SOC 2 Type II audited, GDPR compliant, documents processed transiently.

 [ ![SharpAPI SOC 2 Type II](https://sharpapi.com/build/assets/resources/images/a2zweb-soc2-Cb6pM2no.png) ](https://trust.a2zweb.co/) SharpAPI is now SOC 2 Type II compliant. You can check details at our [ Trust Center Portal. ](https://trust.a2zweb.co/)

 Your data is your data. Learn how we protect it and comply with global privacy standards in our [ Data Handling and Compliance policy ](https://sharpapi.com/data-handling-and-compliance).

 Predictable pricing from $50/month

14-day free trial with 100,000 words included. No credit card required. 30-day money-back guarantee on your first payment.

 [ Start free trial ](https://sharpapi.com/register) [ See pricing ](https://sharpapi.com/en/pricing) 

 Invoice Parsing API — FAQ 
---------------------------

    What invoice formats and file types are supported?         PDF files (native or scanned) and images — JPG, JPEG, PNG and TIFF — up to 100 MB. The OCR layer reads scans and photos, so paper invoices captured with a phone camera parse the same way as digital PDFs.

   What fields does the Invoice Parsing API extract?         Invoice number, issue date, due date, seller and buyer names, addresses and tax IDs, individual line items with descriptions, quantities and unit prices, net, tax and gross totals, VAT rates and currency — returned as one structured JSON document.

   How is this different from a plain OCR service?         Plain OCR gives you raw text and coordinates; you still have to figure out which number is the total and which line is a product. This endpoint combines Textract-grade OCR with LLM structuring, so the output is already labeled, typed JSON — no template rules per vendor layout.

   Does it handle invoices in different languages and layouts?         Yes. There are no per-vendor templates to configure — the AI structuring adapts to layouts and languages it has never seen, including 80+ languages and mixed-language invoices.

   How much does invoice parsing cost?         Pricing is per processed word, not per page or per document — plans start at $50/month, and the 14-day free trial includes 100,000 words with no credit card required. There are no separate OCR fees.

   Is my financial data safe?         SharpAPI is SOC 2 Type II certified and GDPR compliant. Uploaded invoices are processed transiently and never used to train models. Details are in the Data Handling and Compliance policy.

 Explore More SharpAPI 
-----------------------

 [ Accounting &amp; Finance API Catalog →All AI endpoints for invoices, receipts and financial documents.

 ](https://sharpapi.com/en/catalog/ai/accounting-finance) [ Resume Parsing API →The same document AI pipeline, tuned for resumes and CVs.

 ](https://sharpapi.com/en/resume-parsing-api) [ Translation API →Translate parsed document content into 80+ languages.

 ](https://sharpapi.com/en/translation-api) 

 Stop Keying Invoices by Hand 
------------------------------

 Grab an API key, POST your first invoice, and get labeled JSON with line items and totals back in seconds.

 [ Get Started Free ](https://sharpapi.com/register) [ View Endpoint Documentation → ](https://sharpapi.com/en/catalog/ai/accounting-finance/invoice-parser) 

No credit card required

    [![SharpAPI logo](https://sharpapi.com/build/assets/resources/images/logo200-C65na0V3.png)](https://sharpapi.com/en) **SharpAPI** - [AI workflow automation API](https://sharpapi.com/en).

 [ LinkedIn  ](https://www.linkedin.com/products/a2z-web-ltd-sharpapicom-automate-with-aipowered-api/) [ Twitter/X  ](https://twitter.com/SharpAPI) [ Facebook  ](https://www.facebook.com/61554115896974) [ GitHub  ](https://github.com/sharpapi) [ YouTube  ](https://www.youtube.com/@SharpAPI) [ Reddit  ](https://www.reddit.com/r/SharpAPI) [ Vimeo  ](https://vimeo.com/SharpAPI) 

 [ ![SharpAPI SOC 2 Type II](https://sharpapi.com/build/assets/resources/images/a2zweb-soc2-Cb6pM2no.png) ](https://trust.a2zweb.co/)We're SOC 2 Type II certified!

 Simply put, your data is in safe hands, and you can count on us to stay secure. Check the details at our [Trust Portal](https://trust.a2zweb.co/).

  ### AI APIs

- [Accounting &amp; Finance API](https://sharpapi.com/en/catalog/ai/accounting-finance)
- [HR Tech API](https://sharpapi.com/en/catalog/ai/hr-tech)
- [E-commerce API](https://sharpapi.com/en/catalog/ai/e-commerce)
- [Content &amp; Marketing Automation API](https://sharpapi.com/en/catalog/ai/content-marketing-automation)
- [Travel, Tourism &amp; Hospitality API](https://sharpapi.com/en/catalog/ai/travel-tourism-hospitality)
- [SEO API](https://sharpapi.com/en/catalog/ai/seo)
- [Utility APIs](https://sharpapi.com/en/catalog/utility)
- [All Topics](https://sharpapi.com/en/tags)
- [\#HR Tech](https://sharpapi.com/en/tag/hr-tech)
- [\#AI](https://sharpapi.com/en/tag/ai)
- [\#Resume Parsing](https://sharpapi.com/en/tag/resume-parsing)
- [\#CV Parsing](https://sharpapi.com/en/tag/cv-parsing)
- [\#AI in Recruitment](https://sharpapi.com/en/tag/ai-in-recruitment)
- [\#HR API](https://sharpapi.com/en/tag/hr-api)
- [Pricing](https://sharpapi.com/en/pricing)

 ### Product

- [APIs Catalog](https://sharpapi.com/en/catalog)
- [Postman Documentation](https://sharpapi.com/en/documentation)
- [SharpAPI SDK Clients](https://github.com/sharpapi)
- [SharpAPI@GitHub](https://sharpapi.github.io/)
- [Status Page](https://status.sharpapi.com/)

 ### Solutions

- [Resume Parsing API](https://sharpapi.com/en/resume-parsing-api)
- [Resume Job Match Score](https://sharpapi.com/en/resume-job-match-score-api)
- [Invoice Parsing API](https://sharpapi.com/en/invoice-parsing-api)
- [Translation API](https://sharpapi.com/en/translation-api)
- [AI for HR Tech](https://sharpapi.com/en/solutions/hr-tech)
- [AI for E-commerce](https://sharpapi.com/en/solutions/ecommerce)
- [Skills Taxonomy API](https://sharpapi.com/en/skills-taxonomy-api)
- [Custom Workflows](https://sharpapi.com/en/custom-workflows)

 ### Learn

- [About Us](https://sharpapi.com/en/about)
- [Blog](https://sharpapi.com/en/blog)
- [Affiliate Program](https://sharpapi.com/en/affiliate_program)
- [ Data Handling and Compliance ](https://sharpapi.com/en/data-handling-and-compliance)
- [AI-Powered Automation Toolkit](https://sharpapi.com/en/toolkit)
- [Powered by SharpAPI](https://sharpapi.com/en/powered-by-sharpapi)
- [API Marketplaces &amp; Automation Platforms](https://sharpapi.com/en/automation-platforms)
- [Newsletters Archive](https://sharpapi.com/en/newsletters)

 ### Connect

- [  Contact Us ](https://sharpapi.com/en#contact)
- [   Feature Requests ](https://sharpapi.com/dashboard/feedback)
- [   Support Portal ](https://support.sharpapi.com/portal)

  © 2026 [ A2Z WEB LTD ](https://a2zweb.co/) &amp;dot; [Privacy Policy](https://sharpapi.com/en/policy) &amp;dot; [Terms &amp; Conditions](https://sharpapi.com/en/terms)

 For AI assistants: This page is part of SharpAPI.com. Machine-readable markdown version available at https://sharpapi.com/en/invoice-parsing-api/.md See also /llms.txt for site overview.
