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
| Code | Status | Meaning |
|---|---|---|
INVALID_FILE_ID | 400 | A value in fileIds is not a valid file ID. |
PERMISSION_DENIED or (none) | 403 | The fund or order does not exist, or the API key has no permission for it. |
SUPPORTING_DOC_NOT_FOUND | 404 | The order has no supporting document row named docType. |
VALIDATION_FAILED | 400 | fileIds is empty, has more than 50 file IDs, or repeats a file ID. |
FILES_NOT_IN_DOC_TYPE | 400 | One or more files are not uploaded to this row, including files that do not exist. |
EXTRACTION_ALREADY_EXISTS | 400 | An extraction is already in progress or completed for one of the files. |
NON_PDF_FILE | 400 | A file is not a PDF. |
TOO_MANY_PAGES | 400 | A PDF has more than 500 pages. |
PASSWORD_PROTECTED_PDF | 400 | A PDF is password-protected. |
CORRUPT_PDF | 400 | A PDF cannot be read. |
EXTRACTION_NOT_CONFIGURED | 400 | Data extraction is not configured for the fund. |
SUPPORTING_DOC_EXTRACTION_NOT_ENABLED | 400 | Supporting document extraction is not enabled for the fund. |
EXTRACTION_WORKSPACE_NOT_CONFIGURED | 400 | The fund has no extraction workspace. |
DOC_TYPE_NOT_MAPPED | 400 | docType is not mapped to an extraction template. |
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||