Skip to content
NEWCollect for MSMEs: UPI Autopay, eNACH & remindersExplore app ↗

Add Webhook

Use this API to add or update the webhook destination for a specific event code.

POST /api/v1/integrations/erp/webhooks
Terminal window
curl -X POST 'https://[base_url]/api/v1/integrations/erp/webhooks' \
-H 'Content-Type: application/json' \
-H 'Authorization: Basic <token>' \
-d '{
"event_code": "cred.loan.final_approved",
"url": "https://example.com/jodo-webhooks",
"failure_notification_email": "you@example.com",
"secret_key": "my-secret-key",
"header_key": "my-custom-header",
"header_value": "my-custom-header-value"
}'
AttributeTypeRequiredDescription
collector_codestringConditionalBranch code. Required if the institute has more than one branch.
event_codestringYesWebhook event code.
urlstringYesDestination URL where Jodo sends POST requests when the event is triggered.
failure_notification_emailstringYesComma-separated email list for failure notifications.
secret_keystringNoSecret key used for signature generation.
header_keystringNoCustom header key.
header_valuestringNoCustom header value.

HTTP 201

{
"status": "success",
"data": {
"id": "21d8f41b-aefd-4463-8179-55144f5f1ea5",
"event_code": "cred.loan.final_approved",
"failure_notification_email": "you@example.com",
"url": "https://example.com/jodo-webhooks"
}
}
CodeHTTP CodeDescription
HUE00000400Bad request error.
  • A webhook event can be subscribed to only one URL.
  • Calling this API again for the same event_code updates the existing subscription.
  • Only secret_key, header_key, and header_value can be updated after creation.