capabilities.work

Parse and Reject a Document

A 4-step recipe with Affinda. We can help you get access.

Recipe · 4 steps

Parse and Reject a Document

with Affinda

Parse a document then reject it if it failed, otherwise confirm it.

  1. Upload the file with wait=false so an identifier is returned for polling.
  2. Poll the document until meta.ready becomes true, then branch on whether processing failed.
  3. Reject the document because processing failed.
  4. Confirm the document because processing succeeded.
What you'll need to have ready
  • workspace: The workspace identifier to upload the document into.
  • file: The document file contents (binary) to upload.
For your developer

Arazzo workflow affinda:parse-and-reject-document, 4 operations: createDocument → getDocument → updateDocument → updateDocument. Specs on APIs.io.