Changing an OCR provider is a document-processing migration, not a simple endpoint replacement. This checklist helps you compare old and new behavior, preserve downstream contracts, test real documents, and move production traffic gradually without breaking extraction workflows.
Overview
An OCR API migration can affect every stage of a document workflow: upload, classification, text recognition, field extraction, validation, review, storage, and downstream automation. Two providers may both return text from an image while differing substantially in file limits, page handling, coordinate systems, confidence scores, asynchronous job behavior, and error semantics.
Start by treating the existing integration as a contract. Document what your application sends, what it expects in return, and what business rules depend on those results. Include receipt, invoice, PDF, identity document, form, and handwriting workflows if they use different endpoints or processing options.
Before selecting a replacement, create a representative test set. Include clean and difficult samples, multiple document layouts, different languages, multi-page files, rotated pages, low-resolution scans, handwritten regions, and documents that contain sensitive information. Measure more than character accuracy: compare field completeness, table structure, coordinates, confidence behavior, processing time, retry rates, and the frequency of manual review.
A stable internal schema is one of the strongest protections against vendor lock-in. Your application should consume a normalized representation of pages, blocks, lines, words, fields, bounding boxes, confidence values, warnings, and provenance rather than provider-specific response objects. For schema design guidance, see Designing a Reliable OCR JSON Schema for Text, Fields, Confidence, and Provenance.
Checklist by scenario
1. Authentication and request setup
- List every credential used by the current OCR API, including server-side keys, short-lived tokens, webhook secrets, and environment-specific values.
- Confirm whether the replacement uses headers, query parameters, signed requests, OAuth-style tokens, or an SDK-managed authentication method.
- Move credentials into the same secret-management process before migration. Do not place a new key directly in application code or mobile clients.
- Record required headers, content types, regional endpoints, tenant identifiers, and request parameters for language, page range, layout, tables, or field models.
- Check whether the new provider distinguishes unsupported files, invalid credentials, malformed requests, and quota failures with separate status codes or response fields.
2. Files, pages, and upload limits
- Compare supported formats for images, PDFs, office files, archives, and encrypted documents. Do not assume that support for a file extension means equivalent processing quality.
- Compare maximum file size, page count, image dimensions, color modes, compression types, and per-request item limits.
- Decide how the integration will handle oversized files: reject them, compress them, split them, or route them to a separate batch workflow.
- Test multi-page PDFs separately from single-page images. Check whether page numbers remain stable and whether output is returned per page or as one combined result.
- Confirm how the API treats blank pages, rotated pages, embedded text, duplicate uploads, and password-protected PDFs.
For PDF-specific decisions about searchable text, layout, and tables, use the PDF OCR Processing Checklist as a companion review.
3. Synchronous and asynchronous processing
- Map the current request lifecycle: upload, immediate response, job creation, polling, webhook delivery, result retrieval, and cleanup.
- Identify the new provider’s job states and map them to internal states such as queued, processing, succeeded, failed, expired, and cancelled.
- Set bounded polling intervals and a maximum wait time. Avoid indefinite polling when a job has stopped progressing.
- Make result handling idempotent. A repeated webhook or retry should not create duplicate invoices, expenses, or customer records.
- Validate webhook signatures where available, record delivery attempts, and provide a safe replay path for failed consumers.
- Confirm how long results remain available and whether your system must download and store them before expiration.
4. Response schemas and field mapping
Build a field-mapping document before writing the adapter. The following template is a practical starting point:
| Internal field | Current provider | Replacement provider | Transformation or decision |
|---|---|---|---|
| Document identifier | Request or job ID | Request or job ID | Store both external IDs and one internal ID |
| Page number | Provider page index | Provider page index | Normalize to a documented one-based or zero-based convention |
| Full text | Page or document text | Page or document text | Define reading order and whitespace rules |
| Words and lines | Nested layout objects | Nested layout objects | Preserve hierarchy where available; mark missing levels |
| Bounding box | Polygon or rectangle | Polygon or rectangle | Normalize coordinates, origin, units, and rotation |
| Confidence | Word, line, or field score | Word, line, or field score | Store the original value and document its meaning |
| Extracted field | Provider field name | Provider field name | Map to a controlled internal name and preserve raw evidence |
| Error | Status and message | Status and message | Map to retryable, permanent, user-correctable, or review-required |
Pay particular attention to bounding boxes. Providers may return rectangles, four-point polygons, normalized coordinates, pixel coordinates, or coordinates affected by page rotation. A migration that gets text right but places highlights incorrectly can still disrupt review screens and form processing.
5. Receipts, invoices, and structured documents
- Compare field names and coverage for dates, totals, taxes, currencies, merchant or supplier names, invoice numbers, line items, and payment details.
- Check whether absent fields are omitted, returned as null, returned as empty strings, or accompanied by low confidence.
- Preserve the source text and coordinates behind each normalized field so users can verify extracted values.
- Re-run business validation rules for totals, date formats, currency codes, duplicate invoices, and required fields. OCR confidence is not a substitute for business validation.
- Test tables independently. Compare row boundaries, merged cells, multiline descriptions, decimal separators, and missing values.
For receipt workflows, the Receipt OCR Data Extraction guide provides a useful checklist of fields and validation considerations.
6. Mobile, identity, and specialized capture
If the workflow uses a mobile OCR SDK, camera capture, ID card OCR, passport processing, or offline handling, compare more than recognition output. Review supported operating systems, SDK versions, capture guidance, image preprocessing, network behavior, local caching, and the handoff between client and server. The Mobile OCR SDK comparison can help structure this review.
What to double-check
Accuracy and evaluation
Run both providers against the same versioned document set. Compare character-level text only when it reflects your use case; for invoices and receipts, field-level accuracy and downstream acceptance are usually more useful. For forms, compare field association and coordinates. For scanned PDFs, compare reading order and page completeness. Separate results by document type, language, image quality, and processing option so a strong average does not hide a weak workflow.
Record changes that require application logic. Examples include date normalization, decimal separators, language detection, line-item grouping, name matching, and handling of uncertain values. A provider may produce a plausible value that requires review rather than automatic posting.
Limits, rate limits, and cost controls
- Confirm requests-per-minute, concurrent-job, page, and batch limits from the provider documentation and your contract.
- Determine whether rate-limit responses include retry guidance. Use exponential backoff with a cap and avoid retrying permanent validation errors.
- Model the cost of retries, page splitting, reprocessing, polling, storage, and human review rather than comparing only a headline unit price.
- Test peak and seasonal workloads with realistic concurrency. Keep a queue so a temporary provider limit does not overload the rest of the application.
Privacy, retention, and observability
Document what data leaves your environment, how long inputs and results are retained, which logs contain document content, and how deletion requests are handled. These settings can vary by product, endpoint, account configuration, and deployment model, so verify them for the exact service you will use. The OCR Privacy and Compliance Checklist can support this review.
Add metrics before switching traffic: request volume, success rate, latency, retry count, rejected files, empty results, field completeness, confidence distributions, manual-review rate, webhook failures, and provider-specific errors. Alert on changes from the baseline rather than relying only on API availability.
Common mistakes
- Replacing calls without an adapter: Provider response objects spread through application code make rollback and future migrations harder. Keep provider-specific logic behind a narrow interface.
- Assuming confidence scores are interchangeable: A score from one provider may describe a word, line, field, or model estimate. Store the original score and define how your application uses it.
- Ignoring coordinate conventions: Incorrect origins, units, page rotation, or polygon ordering can break highlights, redaction, and human review.
- Testing only clean samples: Include the documents that caused production failures, not just ideal scans. Preserve a representative, access-controlled regression set.
- Changing OCR and business rules together: Separate the provider migration from changes to validation, matching, or approval logic so failures are easier to isolate.
- Skipping rollback design: Keep the old integration available until the new path has passed acceptance tests and a monitored production period. Define the rollback trigger in advance.
- Treating webhooks as guaranteed delivery: Implement signature checks, retries, deduplication, dead-letter handling, and a reconciliation job for jobs that appear stuck.
When to revisit
Revisit this checklist before a contract renewal, a major SDK upgrade, a change in document volume, a new country or language, or the introduction of a new document type. It is also worth reviewing before seasonal planning cycles when receipt, invoice, or application workloads may rise.
Update the field map and regression set whenever your workflow adds a field, changes a confidence threshold, introduces a new PDF or image format, or modifies human-review rules. Recheck provider limits, endpoint behavior, SDK compatibility, webhook handling, and retention settings whenever the provider publishes a breaking change, deprecates a feature, or changes your account configuration.
For a practical migration sequence, use this final action list:
- Inventory current requests, responses, limits, errors, and downstream dependencies.
- Define a provider-neutral schema and complete the field-mapping table.
- Build a versioned, access-controlled test set covering every production document scenario.
- Implement the replacement behind an adapter with normalized errors, coordinates, confidence, and job states.
- Run side-by-side tests and review both automated metrics and representative documents.
- Launch with a small traffic slice, monitor operational and extraction metrics, and keep rollback ready.
- After migration, remove obsolete provider assumptions from documentation, dashboards, secrets, and runbooks.
A careful OCR API migration preserves the business meaning of extracted documents while allowing the underlying provider to change. Treat compatibility as a measured workflow property, not a promise made by matching endpoint names.