πŸ“£ New Region Unlocked: You can now send payouts directly to Malawi! πŸ‡²πŸ‡Ό
πŸ”— Webhooks
βš™οΈ How Webhooks work in meCash

meCash Webhooks

Webhooks are a way for meCash to send your application automatic notifications whenever specific events take place. Instead of your application constantly asking meCash for updates, meCash pushes the information to you in real-time.

Webhook Security

πŸ›‘οΈ

All meCash webhook events are signed using an HMAC-512 signature in the X-Signature header. The signature is computed from the raw request body using your webhook's secret key (found in Developers β†’ Webhooks in your dashboard). Your server should verify this signature before processing the event to ensure authenticity and prevent replay attacks.

How Webhooks Work

The process is straightforward:

  1. An Event Occurs: Something happens in your account, like a successful payout or a collection.
  2. meCash Sends a Request: We send a secure HTTP POST request containing the event details to the webhook URL you've configured.
  3. You Acknowledge and Verify: Your server acknowledges receipt by returning a 2XX status code and then validates the request's signature to confirm it's genuinely from meCash.

How to Configure a Webhook in meCash

Navigate to the Webhooks Page

  • In the Developers section of your meCash dashboard, select Webhooks from the left-hand menu.

    Navigate to Webhooks

Click on "Create Webhook"

  • To add a new webhook, click on the Create Webhook button at the top right of the page.

    Create Webhook

Enter the Webhook URL

  • Provide the URL where you want to receive webhook events.

  • Ensure that your endpoint is publicly accessible and can handle incoming POST requests.

  • Your endpoint should return an HTTP 2XX status code to acknowledge receipt.

    Enter Webhook URL

Confirm and Activate

  • Click Confirm to register the webhook.
  • Once added, the webhook will appear in the list along with its status.