Skip to main content
Webhooks allow your system to receive real-time event notifications from Monirates. When key events happen — like a payment or currency exchange — Monirates sends an HTTP POST request with a JSON payload to your registered URL.

Setup Overview

All webhook configuration happens in your Monirates dashboard:
  1. Log in at business.monirates.com (or dev.business.monirates.com for sandbox).
  2. Navigate to Settings.
  3. Generate your API Key and Secret Key.
  4. Register your Webhook URL.

Step 1: Generate Your API Key

Your API key authorizes requests and enables your webhook to receive events. Include it in your request headers:

Step 2: Generate Your Secret Key

The Secret Key is used to verify that incoming webhook events genuinely originate from Monirates. Every webhook delivery includes a signature header:
The signature is computed using HMAC SHA256 over the raw request body combined with your Secret Key.

Validating the Signature

Always validate the signature before processing any webhook event.
Never share your Secret Key. Store it securely as an environment variable and never commit it to version control.

Step 3: Register Your Webhook URL

Your webhook endpoint must:
  • Accept POST requests
  • Receive JSON payloads
  • Be publicly accessible over HTTPS
Register your endpoint URL in the Settings section of your Monirates dashboard.

Retry Behavior

If Monirates cannot reach your endpoint, deliveries are retried automatically:

Manual Retry via API

You can also view and retry failed webhook events programmatically:

Security Requirements

Two headers are used to secure webhook communication:
Always reject webhook events that are missing or have an invalid x-monirates-signature. Do not process unsigned events.

Event Types & Sample Payloads

Triggered when a payment link transaction is initiated or updated.

Currency Exchange Event

Triggered when a currency exchange transaction is initiated or completed.

Fetching Webhook Logs

Beyond the API, you can also view webhook delivery history directly in the Monirates dashboard — filter by SUCCESSFUL or FAILED and track retry attempts for reconciliation.
Need help integrating? Reach out to the Monirates support team from your dashboard.