Retrieves the raw OCR (Optical Character Recognition) extraction data for an invoice.
This endpoint returns the data extracted during invoice processing, including recognized text lines, parsed line items, and summary fields. Useful for debugging extraction issues or building custom integrations.
Response Fields
| Field | Type | Description |
|---|---|---|
| ocrLines | array | Raw text lines extracted from the document. |
| lineItems | array | Parsed line items with quantities, prices, and descriptions. |
| summaryFields | object | Extracted summary fields (totals, dates, vendor info, etc.). |
Note: The structure of OCR data may vary depending on the document format and extraction confidence.
Enter your API token.
The unique identifier of the invoice.
OCR data retrieved successfully
OCR Data Retrieved
{
"status": "OK",
"msg": "Invoice OCR data retrieved.",
"result": {
"ocrLines": [
"INVOICE",
"Acme Corporation",
"Invoice #: INV-2024-001",
"Date: January 15, 2024",
"Widget A 10 $100.00 $1,000.00",
"Total: $1,000.00"
],
"lineItems": [
{
"description": "Widget A",
"qty": 10,
"price": 100.0,
"total": 1000.0
}
],
"summaryFields": {
"invoiceNumber": "INV-2024-001",
"invoiceDate": "2024-01-15",
"vendorName": "Acme Corporation",
"total": 1000.0
}
}
}The extracted OCR data from the invoice document.
Raw text lines extracted from the document.
Parsed line items with quantities, prices, and descriptions.
Extracted summary fields (totals, dates, vendor info, etc.).
Bad Request - Invalid or empty invoice ID
Unauthorized - Missing or invalid API token
Missing Token
{
"status": "Error",
"msg": "Bearer token is not set.",
"result": null
}Invalid Token
{
"status": "Error",
"msg": "Token is invalid.",
"result": null
}Token Not Found
{
"status": "Error",
"msg": "Token not found.",
"result": null
}Revoked Token
{
"status": "Error",
"msg": "Token is revoked.",
"result": null
}Invoice or OCR data not found
Invoice Not Found
{
"status": "Error",
"msg": "Record not found.",
"result": null
}No OCR Data
{
"status": "Error",
"msg": "This invoice has no data extraction record.",
"result": null
}