How to test user verification in sandbox environment
Last updated: September 19, 2024
When testing verification users (KYC) in the AiPrise sandbox environment, you may initially receive an "unknown" verification result with a "pending" status. This is expected behavior, as the SSN verification process is asynchronous. Here's how to properly test and interpret the results:
Steps for Testing User Verification
Use the sandbox environment for testing.
Make an API call to the
run_user_verificationendpoint with the test data.Initially, you will receive a response with "UNKNOWN" verification result and "PENDING" status.
The actual verification result will be sent to your callback URL within 10-15 seconds.
Setting Up the Callback URL
To receive the final verification result, you need to set up a callback URL. You can do this in two ways:
Include the callback URL as part of the
run_user_verificationendpoint call.Set up the callback URL at the template level.
Callbacks
The response schema of a KYC verification is documented here - https://docs.aiprise.com/docs/verification-result-1
For detailed information on setting up callbacks, refer to our documentation: Callbacks Authentication.
Interpreting Results
After the verification process is complete:
Check the AiPrise dashboard to see the final verification status.
The callback to your specified URL will provide the detailed verification result.
Important Notes
The initial "UNKNOWN" and "PENDING" status is normal and does not indicate a failed verification.
Always wait for the callback response to get the final verification result.
For testing purposes, you can use sample data provided in our testing guide: Testing Guide
By following these steps and properly interpreting the results, you can effectively test SSN verification in the Aiprise sandbox environment.