Skip to main content

Webhooks

Webhooks let you receive real-time HTTP notifications when events happen in RxScale. Instead of polling for changes, register a webhook URL and RxScale will send you a POST request whenever an event occurs.

How Webhooks Work

  1. Register a webhook subscription with your target URL and desired event type.
  2. Receive POST requests to your URL when events occur.
  3. Verify the webhook signature to ensure the request is authentic.
  4. Respond with a 2xx status code to acknowledge receipt.

Webhook Payload Format

All webhook payloads follow the same envelope structure:

Registering Webhooks

You can register webhooks through:
  • Pharmacy Portal — Navigate to API Access in the sidebar. If you manage multiple pharmacy groups, select the group from the dropdown at the top of the page.
  • External Pharmacy APIPOST /v1/external_pharmacy_api/webhooks/
  • Management APIPOST /v1/management/notification-subscriptions/
Registering through the External Pharmacy API (or the Pharmacy Portal) returns a webhook_secret in the creation response. It is shown only once — store it securely, because you need it to verify payload signatures. Organisation subscriptions created through the Management API are authenticated with a custom request header you configure yourself instead of a webhook_secret.

Retry Policy

If your endpoint does not respond with a 2xx status code within 30 seconds (or times out), RxScale will retry the delivery with exponential backoff. Respond quickly and process heavy work asynchronously.