Webhooks for prescription status in Kroll
Your systems stay in sync
The AutoRx API is queue-based. Webhooks are how you close the loop, no polling required.
- Live in 2 days
- PHIPA compliant
- Canadian data residency
How webhooks report prescription status
rx.completed when the Kroll write succeeds, rx.failed when it fails permanently, rx.excepted when it goes to human review, and rx.resolved when a reviewer approves it and the write completes. Each event carries the queue ID you received at submission, so status reaches your system without a single status query.Why webhooks
Events AutoRx sends
rx.completedThe Kroll write succeeded. Includes patient identifier, queue ID, and the DIN written.
rx.failedThe write failed permanently after retries. Includes the failure reason and the original queue ID.
rx.exceptedThe prescription was routed to the human review queue. Fires when exception occurs, not when it's resolved.
rx.resolvedA human reviewed and approved the exception; Kroll write has now completed.
Delivery and reliability
AutoRx delivers webhooks with at-least-once semantics. If your endpoint is unreachable or returns a non-2xx response, AutoRx retries with exponential backoff over 24 hours. Each delivery attempt includes a timestamp and attempt number in the payload, so your system can deduplicate if needed.
Payload structure
All webhook events use a consistent envelope.
event
Event type string, e.g. rx.completed.
id
Unique event ID for deduplication across retries.
queueId
The intake queue ID returned when the Rx was first submitted.
timestamp
ISO 8601 UTC timestamp of when the event fired.
data
Event-specific payload, differs per event type.
Security: signature verification
X-AutoRx-Signature header, an HMAC-SHA256 signature of the raw payload body using your webhook secret. Verify this header on your end before processing any event. Details are in the developer documentation.Configuring endpoints
Frequently asked questions
- How do webhooks report prescription status?
- AutoRx sends an HTTPS POST to your endpoint each time a prescription changes state in the Kroll write path. There are four events: rx.completed (the Kroll write succeeded, with the DIN written), rx.failed (the write failed permanently after retries, with the reason), rx.excepted (the prescription went to the human review queue) and rx.resolved (a person approved the exception and the write completed). Every event carries the queue ID returned when the prescription was submitted, so your system matches it to the original request without polling.
- What happens if my endpoint is down when a webhook fires?
- AutoRx delivers webhooks with at-least-once semantics. If your endpoint is unreachable or returns a non-2xx response, AutoRx retries with exponential backoff over 24 hours. Each attempt includes a timestamp and an attempt number, and every event has a unique ID, so your system can deduplicate.
- How do I verify that a webhook came from AutoRx?
- Every delivery includes an X-AutoRx-Signature header: an HMAC-SHA256 signature of the raw payload body made with your webhook secret. Verify the header before processing the event.
Get started with AutoRx
Ready to automate?
Most pharmacies go live within 2 days. No waitlist, and your existing Kroll setup stays exactly as-is.
Usually responds same business day