Overview
Credzu sends webhook callbacks (HTTP POST requests) to your registered endpoint whenever a significant event occurs for a lead. This allows your system to stay synchronized with borrower progress without polling.How Webhooks Work
- When you onboard as a partner, you provide Credzu with your webhook URL
- When events occur for your leads, Credzu sends a POST request to your URL
- Your server processes the event and returns a
200 OKresponse - If delivery fails, Credzu retries with exponential backoff
Webhook Payload Structure
All webhook payloads follow this structure:Available Events
Implementing Your Webhook Endpoint
Your endpoint must:- Accept
POSTrequests withContent-Type: application/json - Return
200 OKto acknowledge receipt - Process events asynchronously if needed (respond quickly, process later)
Example Implementation (PHP)
Retry Logic
If your endpoint fails to respond with200 OK:
After 3 failed retries:
- The webhook is marked as
failed - Credzu support is notified
- You can retrieve missed events using Get Events
Security Considerations
1
Use HTTPS
Your webhook URL must use HTTPS for secure data transmission.
2
Validate the payload
Check that required fields (
event, lead_id) are present before processing.3
Verify the lead belongs to you
Cross-reference the
partner_lead_id with your records.4
Process asynchronously
Return
200 OK immediately, then process the event in the background.Testing Webhooks
In the sandbox environment, you can:- Trigger simulated events for your test leads
- Verify your webhook endpoint is receiving and processing events correctly
- Test retry logic by temporarily returning error responses
Contact Credzu support to configure your webhook URL or update it for a new integration.