Webhooks

SwitchApp initiates calls to your webhook endpoints to notify you of actions or changes on your profile.

SwitchApp initiates calls to your webhook endpoints configured on your dashboard or provided on the transaction/request body itself. Webhook-enabled actions include payments, top-ups, disbursements, and payouts.

Each webhook call includes an event property that describes the status change. This can be used to configure your system's reaction to the webhook call.

The example below simulates the possible endpoints in a merchant's application for handling SwitchApp webhook calls.

NOTE: All webhook endpoints should be unprotected i.e. they must not require authentication to be called, as these calls are coming from SwitchApp servers which will not authenticate on the merchant servers.

Sample Merchant Payment Webhook Endpoint

Payment webhook events include the following

  • charge.successful
  • charge.partial
  • charge.failed
  • charge.abandoned
  • charge.refunded
  • charge.pending

Sample Merchant Top-Up Webhook Endpoint

Top-up webhook events include the following

  • topup.successful

Sample Merchant Disbursement Webhook Endpoint

Disbursement webhook events include the following

  • transfer.successful

  • transfer.failed

  • transfer.awaitingAuthorization

  • transfer.authorizationFailed

Last updated