Compliance & KYC
Learn how to implement KYC (Know Your Customer) verification using the Bloque SDK.
Overview
The compliance module provides tools for KYC verification, allowing you to verify user identities and maintain regulatory compliance.
Starting KYC Verification
Initialize a KYC verification process for a user:
Parameters
KycVerificationParams
Response
KycVerificationResponse
Verification Status
Getting Verification Status
Check the status of an existing verification:
Webhook Integration
Set up webhooks to receive real-time updates on verification status changes:
Setting Up Webhooks
Webhook Payload
Your webhook endpoint will receive POST requests with the following payload:
Webhook Handler Example
Complete Workflow
Here's a complete KYC verification workflow:
User Experience Flow
- User initiates verification in your application
- Your app calls
startVerification() - Redirect user to the returned verification URL
- User completes KYC process on the provider's page
- Webhook notification sent to your endpoint
- Update user status in your system
Security Best Practices
- Validate Webhooks: Implement webhook signature validation
- HTTPS Only: Use HTTPS for webhook URLs
- Idempotency: Handle duplicate webhook deliveries
- Timeout Handling: Set appropriate timeouts for API calls
- Error Logging: Log all verification attempts and errors
Testing
Use sandbox mode to test without real verifications:
Next Steps
- Accounts Guide - Create virtual cards for verified users
- Organizations Guide - Manage business accounts