Content documents reference

DOCS

Last updated: Aug 15th, 8:03am

Resources

Document (/documents)

The Document object represents a document within the Document Management System. The Document object and its sub-resources include the following:

  • The origin or intake channel of the document, the purpose for document collection, and association with a PayPal account if applicable.
  • Additional information or metadata about a document, including document type such as License, PAN, and Passport, and class or category such as Proof of Identity (POI), and Proof of Address (POA).
  • The file data associated with a document and its descriptors such as filename, file type, and number of bytes.

Use cases

Document Upload

Creates a new Document object, file sub-resource, and associated file data.

Sample request & responseDescription
Upload a document sampleThis sample creates a document within the Document Management System. The Swagger 2.0 support for multipart requests is poor, so the sample represents the request as having a body and formData. In actuality, the JSON data and file data are separate parts of the request body.
Upload a document with tenant header sampleThis sample shows how to use the tenant headers to associate a tenant with a document at the time of document creation.
HTTP codeError NameMessageDetails
201N/AN/AResource successfully created with a POST operation.
400INVALID_REQUESTRequest is not well-formed, syntactically incorrect, or violates schema.One or more validation errors have occurred.
403NOT_AUTHORIZEDAuthorization failed due to insufficient permissions.Check your credentials, such as the application context and security context.
422UNPROCESSABLE_ENTITYThe requested action could not be performed, semantically incorrect, or failed business validation.Errors such as a file type and file name extension mismatch or file size too large can result in this response status.
500INTERNAL_SERVER_ERRORAn internal server error has occurred.Resend the request at another time. If this error continues, contact the API development team.

Search for documents using metadata field values.

Sample request & responseDescription
Search documents sampleSearch a document using metadata filters. Only specific metadata filters are searchable.
HTTP codeError NameMessageDetails
200N/AN/ADocument search successfully completed.
400INVALID_REQUESTRequest is not well-formed, syntactically incorrect, or violates schema.One or more validation errors have occurred.
403NOT_AUTHORIZEDAuthorization failed due to insufficient permissions.Check your credentials, such as the application context and security context.
422UNPROCESSABLE_ENTITYThe requested action could not be performed, semantically incorrect, or failed business validation.Requested search criteria are not supported.
500INTERNAL_SERVER_ERRORAn internal server error has occurred.Resend the request at another time. If this error continues, contact the API development team.

Document Get

Retrieve a Document resource by ID.

Sample request & responseDescription
Sample request & responseGet a Document object, including the document and its file metadata, using the document ID.
HTTP codeError NameMessageDetails
200N/AN/ADocument successfully retrieved.
400INVALID_REQUESTRequest is not well-formed, syntactically incorrect, or violates schema.One or more validation errors have occurred.
403NOT_AUTHORIZEDAuthorization failed due to insufficient permissions.Authorization failed due to insufficient permissions.
404RESOURCE_NOT_FOUNDThe specified resource does not exist.There is no document associated with the ID provided.
500INTERNAL_SERVER_ERRORAn internal server error has occurred.Resend the request at another time. If this error continues, contact the API development team.

Document Update

Update a document's metadata fields.

Sample request & responseDescription
Patch document sampleThis sample shows how to update a document's metadata by adding, replacing, and removing fields.
HTTP codeError NameMessageDetails
200N/AN/ADocument successfully updated.
400INVALID_REQUESTRequest is not well-formed, syntactically incorrect, or violates schema.One or more validation errors have occurred.
403NOT_AUTHORIZEDAuthorization failed due to insufficient permissions.Check your credentials, such as the application context and security context.
404RESOURCE_NOT_FOUNDThe specified resource does not exist.There is no document associated with the ID provided.
422UNPROCESSABLE_ENTITYThe requested action could not be performed, semantically incorrect, or failed business validation.Value not allowed for given operation or the field is read-only.
500INTERNAL_SERVER_ERRORAn internal server error has occurred.Resend the request at another time. If this error continues, contact the API development team.

Document Delete

Permanently delete a document.

Sample request & responseDescription
Delete document sampleDelete document object, including the document object, the file metadata, and the actual file, using the document ID.
HTTP codeError NameMessageDetails
204N/AN/ADocument successfully deleted or is not present.
400INVALID_REQUESTRequest is not well-formed, syntactically incorrect, or violates schema.One or more validation errors have occurred.
403NOT_AUTHORIZEDAuthorization failed due to insufficient permissions.Check your credentials, such as the application context and security context.
500INTERNAL_SERVER_ERRORAn internal server error has occurred.Resend the request at another time. If this error continues, contact the API development team.

Document Initiate Upload

Upload a document from the local Document Management System to a remote geography Document Management System.

Sample request & responseDescription
Initiate upload sampleRequest to initiate the cross-geo document upload workflow.
HTTP codeError NameMessageDetails
200N/AN/ACross-geo document upload successfully initiated.
400INVALID_REQUESTRequest is not well-formed, syntactically incorrect, or violates schema.One or more validation errors have occurred.
403NOT_AUTHORIZEDAuthorization failed due to insufficient permissions.Check your credentials, such as the application context and security context.
404RESOURCE_NOT_FOUNDThe specified resource does not exist.There is no document associated with the id provided.
500INTERNAL_SERVER_ERRORAn internal server error has occurred.Resend the request at another time. If this error continues, contact the API development team.

Document Files Get

Retrieves the list FileReference sub-resources for a document.

Sample request & responseDescription
Get files sampleGet the file collection associated with the document using the document ID.
HTTP codeError NameMessageDetails
200N/AN/AFile references successfully retrieved.
400INVALID_REQUESTRequest is not well-formed, syntactically incorrect, or violates schema.One or more validation errors have occurred.
403NOT_AUTHORIZEDAuthorization failed due to insufficient permissions.Check your credentials, such as the application context and security context.
404RESOURCE_NOT_FOUNDThe specified resource does not exist.There is no document associated with the id provided.
500INTERNAL_SERVER_ERRORAn internal server error has occurred.Resend the request at another time. If this error continues, contact the API development team.

Document File Get

Retrieves the specified FileReference sub-resources for a document.

Sample request & responseDescription
Get file sampleGet the file associated with a document using the document ID and file reference.
HTTP codeError NameMessageDetails
200N/AN/AFile references successfully retrieved.
403NOT_AUTHORIZEDRequest is not well-formed, syntactically incorrect, or violates schema.One or more validation errors have occurred.
403NOT_AUTHORIZEDAuthorization failed due to insufficient permissions.Check your credentials, such as the application context and security context.
404RESOURCE_NOT_FOUNDThe specified resource does not exist.There is no document associated with the id provided.
500INTERNAL_SERVER_ERRORAn internal server error has occurred.Resend the request at another time. If this error continues, contact the API development team.

Document File Download

Downloads the file data associated with a document and its specified file sub-resource.

Sample request & responseDescription
Download sampleDownload the file binary data associated with a document using the document ID and file reference. The server attempts to honor the request Accept header by fetching the matching file type rendition if present.
HTTP codeError NameMessageDetails
200N/AN/AFile references successfully retrieved.
400INVALID_REQUESTRequest is not well-formed, syntactically incorrect, or violates schema.One or more validation errors have occurred.
403NOT_AUTHORIZEDAuthorization failed due to insufficient permissions.Check your credentials, such as the application context and security context.
404RESOURCE_NOT_FOUNDThe specified resource does not exist.There is no document associated with the document id provided or there is no file reference associated with the provided file id.
406MEDIA_TYPE_NOT_ACCEPTABLEThe server does not implement the media type that would be acceptable to the client.The server cannot provide the Mime Type specified by the request Accept header.
500INTERNAL_SERVER_ERRORAn internal server error has occurred.Resend the request at another time. If this error continues, contact the API development team.

Document Capture

Start the Document Capture process.

Sample request & responseDescription
Extract sampleInitiate document capture process to extract raw text and fields associated with the file.
HTTP codeError NameMessageDetails
200N/AN/AFile references successfully retrieved.
202N/AN/AThe document capture process is successfully initiated for this file.
400INVALID_REQUESTRequest is not well-formed, syntactically incorrect, or violates schema.One or more validation errors have occurred.
403NOT_AUTHORIZEDAuthorization failed due to insufficient permissions.Check your credentials, such as the application context and security context.
404RESOURCE_NOT_FOUNDThe specified resource does not exist.There is no document associated with the document id provided or there is no file reference associated with the provided file id.
500INTERNAL_SERVER_ERRORAn internal server error has occurred.Resend the request at another time. If this error continues, contact the API development team.

Upload Document Snapshots

Persists a full representation of a Document Management System document to the system. Access to this operation is limited, and use cases usually involve cross-geo movement of data. The operation attempts to use the document ID provided in the request body, but it is not guaranteed.

Sample request & responseDescription
Upload snapshots sampleDocument snapshots are uploaded and persisted in the target Document Management system.
HTTP codeError NameMessageDetails
200N/AN/AThe document has already been successfully uploaded.
201N/AN/AThe document was uploaded successfully.
400INVALID_REQUESTRequest is not well-formed, syntactically incorrect, or violates schema.One or more validation errors have occurred.
403NOT_AUTHORIZEDAuthorization failed due to insufficient permissions.Check your credentials, such as the application context and security context.
500INTERNAL_SERVER_ERRORAn internal server error has occurred.Resend the request at another time. If this error continues, contact the API development team.

Download Document Thumbnail

Retrieve the Document thumbnail of a specific document version using the document's ID.

Sample request & responseDescription
Download thumbnail sampleGet the thumbnail binary data associated with a document using the document ID and file reference.
HTTP codeError NameMessageDetails
200N/AN/AThumbnail reference successfully retrieved.
400INVALID_REQUESTRequest is not well-formed, syntactically incorrect, or violates schema.One or more validation errors have occurred.
403NOT_AUTHORIZEDAuthorization failed due to insufficient permissions.Check your credentials, such as the application context and security context.
500INTERNAL_SERVER_ERRORAn internal server error has occurred.Resend the request at another time. If this error continues, contact the API development team.