ApiIdentityVerification class provides methods to create and manage identity verification sessions, which allow users to verify their identity through a hosted verification flow.
Methods
Create
Creates a new identity verification session for a user.The created IdentityVerification object with the HostedUrl where the user should be redirected
Example
Get
Retrieves a specific identity verification session by its identifier.The IdentityVerification object returned from the API
Example
GetAll
Retrieves all identity verification sessions for a specific user.Array of IdentityVerification objects for the specified user
Example
IdentityVerification Object
TheIdentityVerification object represents an identity verification session.
The unique identifier of the verification session
The URL to redirect the user to for the hosted identity verification session. This URL is where users complete the verification process
The current status of the identity verification session:
PENDING- The session is available on the HostedUrl, to which the user must be redirected to complete itVALIDATED- The session was successfulREFUSED- The session was refusedREVIEW- The session is under manual review by MangopayOUT_OF_DATE- The session is no longer valid (likely due to expired documents used during the session)TIMEOUT- The session timed out due to inactivityERROR- The session was not completed because an error occurred
The URL to which the user is returned after the hosted identity verification session, regardless of the outcome
The unique identifier of the user undergoing verification
Unix timestamp of when the verification session was last updated
Unix timestamp of when the verification session was created
Array of Check objects containing detailed verification results for different aspects of the identity verification process
Workflow
Create verification session
Call
Create() with a user ID and return URL. The API returns a HostedUrl.Redirect user
Redirect the user to the
HostedUrl where they will complete the identity verification process.User completes verification
The user uploads documents, takes selfies, or completes other verification steps as required.
User returns to your app
After completion (success or failure), the user is redirected to your
ReturnUrl.