Integration Scenarios
End-to-end test scripts for validating your Zenoo integration. Run these against the staging environment before going live.Replace
{project_hash} with your staging project hash and staging-key with your staging API key in all examples below.Scenario 1: Company Verification sync end-to-end
Submit a company for verification using sync mode and validate the response.overall_verdictis"Pass","Refer", or"Fail"risk_tieris"Low","Medium", or"High"company.legal_nameis populatedcompany.verification_statusis"Verified"screeningobject containspep_status,sanctions_status,adverse_media_statuschecks_summary.totalis greater than 0case_referencestarts with"AML-"
Scenario 2: Person Verification async end-to-end
Initiate an async Person Verification journey, extract tokens, and poll for results.- Init response contains
tokens.pullandtokens.start - Poll returns
204(processing) or200(results ready) - Final
200response containsoverall_verdictandrisk_tier
Scenario 3: Idempotency
Submit the sameexternal_reference twice. The second request should return the existing case, not create a duplicate.
Verify:
- Both responses return the same
case_reference - No duplicate verification is created
- The second request completes faster (returns cached result)
Scenario 4: Error handling
Test error responses for common failure modes.Missing required field (400)
400 with error: "VALIDATION_ERROR".
Invalid API key (401)
401 with error: "UNAUTHORIZED".
Invalid project hash (404)
404 with error: "NOT_FOUND".
Invalid JSON (400)
400 with error: "INVALID_JSON".
Scenario 5: Webhook delivery
Submit a verification and confirm your webhook endpoint receives the event.Setup
Before running this test, ensure your staging webhook URL is configured. For local development:Submit verification
Verify webhook received
Check your webhook listener for averification.completed event. The payload should include:
event_type: "verification.completed"callback_referencematching yourexternal_referencedataobject with the full verification resultsX-Zenoo-Signatureheader for signature verification
Verify signature
Checklist
Run all five scenarios and confirm:- Scenario 1: Sync Company Verification returns a complete compliance report
- Scenario 2: Async Person Verification init returns tokens, poll returns results
- Scenario 3: Duplicate
external_referencereturns same case - Scenario 4: All four error cases return correct status codes
- Scenario 5: Webhook received with valid signature
Next steps
- Go-Live Checklist — Pre-production requirements
- Test Data — Additional test payloads
- Error Handling — Production error handling patterns