Prerequisites
- A pawaPass partner account with access to the sandbox Backoffice. Ask support if you do not have one.
- A sandbox API key, created in the sandbox Backoffice under Settings > Integration.
- The user’s country enabled as a market under Settings > Verification markets. The examples use Zambia (
ZM).
1
Create a verification
Call Required fields are
POST /verifications/ from your server. You do not list the checks: the workflow set up for the country decides them. This example uses a workflow with a face scan and a document scan.externalId, country, successUrl, errorUrl and supportUrl. The others are optional:The response is the verification. Send the user to its
url:A new verification returns
201 Created. If the same externalId already has an active verification, that one is returned unchanged with 200 OK. See Re-verifying the same user.2
Send the user to the flow
Redirect the user to
url. They complete the face scan and the document scan on a pawaPass page.At the end, the last screen shows a button back to your site. The button links to:pawaPass does not redirect on its own and adds nothing to your URL. To know which user came back, put your own reference in the URL, for example
https://your-website.com/success?ref=user-zm-98765. Take the result from the webhook or the API, never from which URL the user lands on.3
Check the result
In production, the webhook tells you when the status changes. To check a verification yourself, fetch it:When the status is
APPROVED, identityDocument holds the data read from the document (other fields left out here):Going live
Sandbox and production are separate environments, each with its own Backoffice and settings. Before you switch:- Create a production API key in the production Backoffice and use the base URL
https://api.pawapass.com. - Set the production webhook URL and generate the production webhook secret. Do this before you create the first production verification.
- Set up your markets and workflows in production. They do not carry over from the sandbox, and
workflowIdvalues differ between environments. - If you use the Web SDK, create a production public key (
pk_prod_...) with your production domains, and update your Content Security Policy tohttps://app.pawapass.com.
Next steps
- Webhooks: receive status changes and verify signatures
- Verification lifecycle: what each status means and what to do after a decline
- Web SDK: keep the user on your site
- Errors: every error code the API returns
