Skip to main content

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

  1. When you onboard as a partner, you provide Credzu with your webhook URL
  2. When events occur for your leads, Credzu sends a POST request to your URL
  3. Your server processes the event and returns a 200 OK response
  4. 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 POST requests with Content-Type: application/json
  • Return 200 OK to acknowledge receipt
  • Process events asynchronously if needed (respond quickly, process later)

Example Implementation (PHP)

Retry Logic

If your endpoint fails to respond with 200 OK: After 3 failed retries:
  • The webhook is marked as failed
  • Credzu support is notified
  • You can retrieve missed events using Get Events
Ensure your webhook endpoint is reliable and responds quickly. Slow responses or downtime can cause missed 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.