Back to APIs

Unified Agent API

Invoice Parsing

Invoice Parsing

Extract line items, totals, dates from invoices and receipts.

POST/v1/invoices/parse

Overview

Extract structured data from invoices and receipts

Credits

3 credits per call

Providers

Google Gemini

SDK Method

client.parse_invoice(...)

Parameters

document_urlRequired

string

URL to invoice PDF/image.

Example Response

{
  "success": true,
  "data": {
    "invoice_number": "INV-2026-0042",
    "date": "2026-04-15",
    "due_date": "2026-05-15",
    "supplier_name": "Acme Services LLC",
    "supplier_address": "123 Main St, San Francisco, CA 94102",
    "customer_name": "Widget Corp",
    "currency": "USD",
    "subtotal": 250,
    "total_tax": 49.99,
    "total_amount": 299.99,
    "line_items": [
      {
        "description": "Consulting services (10 hrs)",
        "quantity": 10,
        "unit_price": 25,
        "total_amount": 250,
        "tax_rate": 0.2
      }
    ]
  },
  "metadata": {
    "provider_used": "gemini",
    "providers_tried": [
      "gemini"
    ],
    "mode_used": null,
    "response_time_ms": 4200,
    "request_id": "req_nop012"
  },
  "credits_used": 3
}

Get Started

Use this API through the O-mega platform. Create an API key in your dashboard, then call the endpoint with your key in the Authorization header.

Try Invoice Parsing

Test Invoice Parsing in the interactive playground. No setup required.

Open Playground
Invoice Parsing API | Unified Agent APIs | suprbrowser