Below is a list of attributes available for documents.
Attribute
Type
type
string
classification
string
issuingCountry
string
Example - Get all documents for one type
In the example below, we will request to get all documents that are of type passport.
curl -X GET https://api.complycube.com/v1/documents?clientId={:clientId}&type=passport \
-H 'Authorization: <YOUR_API_KEY>'
from complycube import ComplyCubeClient
cc_api = ComplyCubeClient(api_key='<YOUR API KEY>')
filtered = cc_api.documents.list('CLIENT_ID',issuingCountry='GB')
use ComplyCube\ComplyCubeClient;
$ccapi = new ComplyCubeClient('<YOUR API KEY>');
$pports = $ccapi->documents()->list('CLIENT_ID', ['type' => 'passport']);