sandbox-api.fraudeg.com). In production, change the host to https://api.fraudeg.com/api;
the path is the same. There is no /verifications/sandbox.
Request
The call requires the
KYC_WRITE scope.
Always send customer_ref. Without it we generate one, and then the verification cannot be
linked to your own record. It is also what makes retrying cheap: while there is a verification
in progress for that reference, a second call returns the same one, does not charge again, and gives
you a url to pick up where the person left off.
Response
- Store
idin your record. - Send the person to
url, or hand it to your page so it opens it.
session_token is a credential. Do not write it to logs, do not store it, and do not put it in
a URL the person can share. If your framework serializes entire responses to the logs,
exclude this one.
While the person is being verified
You do not need to ask anything: the decision reaches your backend by webhook. If you want to check the status anyway —for an internal screen, or to reconcile— use:KYC_READ scope. A key with only that scope cannot create anything, which is
what you want to give a process that only reconciles.