Skip to main content

Split Processing with Async Enrichment

Get fast initial responses and enriched results later

Updated this week

Async Enrichment

Async Enrichment is an optional processing mode that reduces the initial latency of Veryfi /Receipts& Invoices API requests. Instead of waiting for all enrichment services to complete before returning a full response, Veryfi returns the core extraction data immediately and deliver the enriched results shortly after via a webhook notification.

This means your application can act on the most time-sensitive data right away, without being blocked by enrichment services that may not be needed in real time.

Note:
- Avaialble for SLA clients only

- Available for Receipts/Invoices API
- Configured on Veryfi side
- Contact your support team to get set up, help & guidance, or learn more

How Does It Work?

The flow is straightforward:

  • You send a synchronous POST request to /api/v8/partner/documents, as usual

  • Veryfi returns a fast initial response with your core extraction data

  • Veryfi processes your configured enrichments in the background

  • Once enrichments are complete, system sends a webhook notification (document.enriched) with the document ID.

  • You call GET on that document ID to retrieve the full response, including all enrichment data. Check out API Docs for Sync vs Async flow for more details

Which Enrichments Can Be Deferred?

Any combination of the following enrichments can be configured to run asynchronously. Each one is independently configurable, so you can defer only what makes sense for your workflow.

Enrichment

What it adds to your response

Fraud Detection

AI-generated and tampered document signals.

Address Parsing

Structured, normalized address components from raw address strings.

Line Item Expansion

Expanded and normalized line item data from extracted totals.

Line Item Categorization

Categorized spend classifications for each line item.

Duplicate Detection

Flags duplicate or previously submitted documents.

Similarity Detection

Surfaces similar documents from your document history.

Business rules that depend on enrichment outputs will also run asynchronously when relevant enrichments are deferred, ensuring your rules always have the data they need.

Frequently Asked Questions

Does this affect which enrichments run?

No. Async Enrichment only changes when enrichments are delivered, not whether they run. All the same conditions and settings that control your enrichments today continue to apply. If an enrichment is not enabled for your account or the required request parameters are not included, it will not run regardless of this setting.

What does the webhook payload look like?

When enrichments are complete, we send a webhook event with the type document.enriched and the ID of the enriched document. You then call Veryfi standard GET endpoint with that document ID to retrieve the full response. The response structure is identical to what you already receive today.

Do I have to use webhooks?

Webhooks are the approach and provide the most reliable experience, including failure notifications. That said, a polling strategy also works well: send your initial request, wait a short interval, and call GET on the document ID. Either approach is valid and can be combined.

How much work is this to implement?

For most teams, this is a light integration lift that can typically be completed within a single sprint. If you already have webhook infrastructure in place for other purposes, the incremental work is minimal. Our support team will walk you through the setup and help you identify which enrichments make sense to defer for your specific use case.

Can I configure different enrichments to run async than others?

Yes. Each enrichment is independently configurable. For example, you might want address parsing returned in the initial response but prefer to defer duplicate detection and fraud, which can have higher or more variable latency. We will work with you to find the right configuration for your workflow.

Ready to Get Started?

Async Enrichment is available now. Setup is handled by Veryfi team and tailored to your account configuration.

Please reach out to our support team to discuss Async Enrichment set up for your account. We will review your current setup, recommend which services to defer, and configure everything on our end before you make any changes to your integration.

Did this answer your question?