Skip to main content

Overview

Webhooks provide real-time notifications when data becomes available for a user. Instead of continuously polling our APIs, you can configure a webhook endpoint to receive instant notifications for a specific use-case.

General Webhook Structure

All webhooks are sent as POST requests with JSON payloads containing the following common fields:
FieldTypeDescription
event_typestringType of webhook event (e.g., ANALYTICS_CALLBACK, CONSENT_REVOKED_CALLBACK)
transaction_idstringUnique identifier generated on our side for tracking this transaction
reference_idstringUnique identifier provided by your application during user onboarding
mobilestring(Optional) User’s mobile number associated with the event
panstring(Optional) User’s PAN number associated with the event
data_typesarray(Optional) Array of FI types for which the event occurred. Possible values: DEPOSIT, MUTUAL_FUNDS, EQUITIES, TERM_DEPOSIT, RECURRING_DEPOSIT, ETF. Not present in all webhook types.

Available Webhooks

This webhook triggers when analytics are successfully generated for any new data across financial information types.

Event Details

  • Event Type: ANALYTICS_CALLBACK
  • Trigger: Analytics successfully generated for new financial data
  • HTTP Method: POST
  • Content-Type: application/json

Webhook Payload

When analytics are generated, we send a POST request to your configured webhook URL with the following payload:
{
  "event_type": "ANALYTICS_CALLBACK",
  "transaction_id": "47a73537-1b15-40d6-b107-c7832da6fb5b",
  "reference_id": "1234abcd",
  "mobile": "9876543210",
  "pan": "ABCDE1234F",
  "data_types": [
    "ETF",
    "DEPOSIT"
  ]
}
This webhook triggers when nudges are successfully evaluated and available for a user.

Event Details

  • Event Type: NUDGES_CALLBACK
  • Trigger: Nudges successfully evaluated and ready for retrieval
  • HTTP Method: POST
  • Content-Type: application/json

Webhook Payload

When nudges are evaluated, we send a POST request to your configured webhook URL with the following payload:
{
  "event_type": "NUDGES_CALLBACK",
  "transaction_id": "47a73537-1b15-40d6-b107-c7832da6fb5b",
  "reference_id": "1234abcd",
  "mobile": "9876543210",
  "pan": "ABCDE1234F",
  "data_types": [
    "NUDGES"
  ]
}

Configuration

To set up webhooks for your application:
  1. Provide Webhook URL: Share your webhook endpoint URL with our technical team
  2. Endpoint Requirements:
    • Must accept POST requests
    • Must respond with HTTP 200 status for successful receipt
    • Should handle JSON payloads
    • Must be accessible via HTTPS
  3. Encryption Support: We can enable encryption for webhook payloads if required for enhanced security. When enabled, the webhook payload will be encrypted using the same structure as our other encrypted APIs. For more details, see Encrypted Response Format.

Webhook Response Handling

Upon receiving the webhook notification, you can take the following actions:

Option 1: Retrieve User Data

Call the User Data API to get the formatted user financial data.

Option 2: Retrieve Analytics Data

Call the User Analytics API to get detailed analytics insights.

Option 3: Retrieve Nudges Data

Call the User Nudges API to get personalized recommendations and nudges.

Best Practices

Security

  • HTTPS Only: Only accept webhooks over HTTPS
  • Input Validation: Validate all incoming webhook data
  • Encryption Support: Webhooks support encryption. When encryption is enabled for your integration, webhook payloads will be encrypted. See API Encryption Guide for details.

Reliability

  • Idempotency: Handle duplicate webhook deliveries gracefully
  • Response Time: Respond to webhooks within 10 seconds
  • Error Handling: Return appropriate HTTP status codes
  • Retry Logic: Implement retry logic for failed API calls triggered by webhooks
Contact our technical team to set up webhooks for your PFM integration.