API Documentation
Integrate powerful OCR capabilities into your applications with our comprehensive REST API. Process receipts, invoices, and documents with ease.
🚀 Quick Start
Base URL
Test: https://test.receiptvision.com
1. Get Your API Key
Sign up for an account and generate your API key from the dashboard.
2. Make Your First Request
3. Get Results
Use the returned token to retrieve your processed results:
🔐 Authentication
Receipt Vision OCR API uses API key authentication. Include your API key in the request header:
📡 API Endpoints
/api/ocr/process
Process an image for OCR text extraction using form data.
Parameters
Parameter | Type | Required | Description |
---|---|---|---|
file |
file | Required | Image file (JPG, PNG, PDF). Max 10MB. |
document_type |
string | Optional | Type of document: "receipt", "invoice", "document". Default: "receipt" |
language |
string | Optional | Language code (e.g., "en", "es", "fr"). Default: "en" |
schema_code |
string | Optional | Custom schema code for structured output |
decimal_places |
integer | Optional | Number of decimal places for currency values |
Response
/api/ocr/process-json
Process an image using JSON with base64 encoded image data.
Request Body
/api/ocr/result/{token}
Retrieve OCR processing results using the token from the process endpoint.
Response
/api/ocr/requests
Get your recent OCR processing requests with pagination.
Query Parameters
Parameter | Type | Default | Description |
---|---|---|---|
page |
integer | 1 | Page number (starts from 1) |
pageSize |
integer | 25 | Items per page (max 100) |
/api/credits/balance
Get your current credit balance.
Response
💻 Code Examples
JavaScript (Node.js)
Python
PHP
⚠️ Error Handling
HTTP Status Codes
Error Response Format
📚 SDKs & Libraries
JavaScript/Node.js
Official SDK for JavaScript and Node.js applications.
Python
Python SDK with async support and easy integration.
PHP
Composer package for PHP applications.
Ready to Start Building?
Get your API key and start processing documents in minutes.
Get API Key Get Support