ApiKycDocuments class provides methods to retrieve and manage KYC documents submitted by users for identity verification purposes.
Methods
GetAll
Retrieves all KYC documents with optional pagination, sorting, and filtering.Array of KycDocument objects returned from the API
Example
Get
Retrieves a specific KYC document by its identifier.The KycDocument object returned from the API
Example
CreateKycDocumentConsult
Creates temporary URLs where each page of a KYC document can be viewed.Array of DocumentPageConsult objects containing temporary URLs for viewing each page of the document
Example
KycDocument Object
TheKycDocument object represents a KYC document in the system.
The unique identifier of the document
The type of KYC document. See
\MangoPay\KycDocumentType for available valuesThe current status of the document. See
\MangoPay\KycDocumentStatus for available values:CREATED- Document has been createdVALIDATION_ASKED- Document submitted for validationVALIDATED- Document has been approvedREFUSED- Document has been rejected
The unique identifier of the user who submitted the document
The type of reason why the document was refused (if applicable)
Detailed message explaining why the document was refused
Unix timestamp of when the document was processed
Additional information regarding why the document has been rejected
DocumentPageConsult Object
TheDocumentPageConsult object contains temporary viewing information for a document page.
Temporary URL where the document page can be viewed
Unix timestamp (in milliseconds) when the temporary URL will expire