Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Receive Webhooks

Configure Ramp webhooks and handle delayed, duplicated or out-of-order payment events alongside authenticated status checks.

Webhooks notify your server when a payment changes state. They complement authenticated status checks; they can arrive late, more than once, or out of order.

Set up your endpoint

  1. Create an HTTPS endpoint on your server.

  2. Configure its URL for the correct TEST or LIVE environment using Setup webhook. Webhook configuration uses a business-user JWT and an authorized business role, not an API key.

  3. Verify x-ivorypay-signature using the environment's secret API key. Use the tested Node.js or Python examples.

  4. Save the verified event to durable storage or a durable queue, then return HTTP 200. If saving fails, do not acknowledge it.

  5. Process the event idempotently. Confirm the saved order's amount, currency, reference and destination with the authenticated on-ramp or off-ramp status endpoint before granting value.

Envelope

{
  "event": "onramp.success",
  "data": {
    "reference": "550e8400-e29b-41d4-a716-446655440000",
    "status": "SUCCESS"
  }
}

This is a shortened example; see Event payloads for each event's fields. The signature covers compact JSON data, not the outer event label or complete request body.

Delivery and recovery

HTTP responses other than 200 are treated as delivery failures and may be retried. Do not depend on exact retry timing or webhooks as your only recovery path. Reconcile transactions that remain pending using their saved references.

Deduplicate the same event/status, and separately enforce one fulfilment per order. Deduplicating only by reference would discard later status changes for that same payment. Keep safe event IDs, references, statuses and processing results for troubleshooting; avoid logging credentials or full customer payloads.

Last updated