Webhook

Webhooks are a way for your application to receive real-time notifications from Spendo. When an event occurs, Spendo will send an HTTP POST request to the webhook's configured URL.

Setting Webhook URL and Secret:

  • Webhook URL: The URL where you want to receive the notifications.

  • Webhook Secret: The secret used to create a hash signature of the webhook payload. This signature is sent in the X-Spendo-Signature header of the webhook request and is used to verify the authenticity of the request.

Security:

  • Spendo uses the webhook secret to generate a secure hash signature of the webhook payload. The signature is included in the X-Spendo-Signature header.

  • You should verify this signature to ensure the webhook request is coming from Spendo.

Example Webhook Payload:

{"eventType": "USSD_VERIFICATION","eventData": "{"status": "VERIFIED","phoneNumber": "+2347037716490"}",}

Last updated