Extract data from files uploaded to an order's supporting document

Start data extraction on files that were already uploaded to one supporting document row of an order.

Choosing the row and files

docType names a row that already exists on the order. List the rows and their files with Get order supporting documents. Names are matched case-insensitively. A repeated row such as Passport_1 is addressed by its full name.

fileIds are the files[].id values of that row (items[].files[].id) in the Get order supporting documents response. They are the same as the destFileId values returned by Upload supporting documents. Send at most 50 distinct IDs. Files generated from a supplemental form cannot be extracted with this endpoint.

Requirements

Extraction requires that:

  • every file is a PDF of at most 500 pages and is not password-protected;
  • supporting document extraction is enabled for the fund;
  • the fund has an extraction workspace;
  • the document type is mapped to an extraction template;
  • no extraction is in progress or completed for any of the files.

If any check fails, the whole call is rejected and no extraction starts.

The response contains extractionRequestId. Track the request in extractionRequests of Get order supporting documents; once it is PENDING_REVIEW or REVIEWED, read its data from the supportingDocData entry with the same requestId in GetExtractionData.

If an error is returned, call Get order supporting documents before retrying: an extraction may already have started, and retrying files listed in extractionRequests fails with EXTRACTION_ALREADY_EXISTS.

Errors

CodeStatusMeaning
INVALID_FILE_ID400A value in fileIds is not a valid file ID.
PERMISSION_DENIED or (none)403The fund or order does not exist, or the API key has no permission for it.
SUPPORTING_DOC_NOT_FOUND404The order has no supporting document row named docType.
VALIDATION_FAILED400fileIds is empty, has more than 50 file IDs, or repeats a file ID.
FILES_NOT_IN_DOC_TYPE400One or more files are not uploaded to this row, including files that do not exist.
EXTRACTION_ALREADY_EXISTS400An extraction is already in progress or completed for one of the files.
NON_PDF_FILE400A file is not a PDF.
TOO_MANY_PAGES400A PDF has more than 500 pages.
PASSWORD_PROTECTED_PDF400A PDF is password-protected.
CORRUPT_PDF400A PDF cannot be read.
EXTRACTION_NOT_CONFIGURED400Data extraction is not configured for the fund.
SUPPORTING_DOC_EXTRACTION_NOT_ENABLED400Supporting document extraction is not enabled for the fund.
EXTRACTION_WORKSPACE_NOT_CONFIGURED400The fund has no extraction workspace.
DOC_TYPE_NOT_MAPPED400docType is not mapped to an extraction template.
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

The Anduin ID of the Order object, or your custom ID

Body Params
string
required

The name of a supporting document row that already exists on the order, as listed by GetOrderSupportingDoc. Matched case-insensitively.

fileIds
array of strings
required
length ≥ 1

A non-empty list of at most 50 distinct IDs of files already uploaded to this supporting document row: the items[].files[].id values returned by GetOrderSupportingDoc.

fileIds*
Responses

Language
Credentials
Header
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json