Skip to main content

Event Types

VitaRelay emits exactly five events. Every payload includes event (the type) and occurred_at (ISO 8601 timestamp). Deliveries generated by the sandbox also include "sandbox": true.
In live, order_id, patient_id, and escript_id are UUIDs and order_number is the real order number. In sandbox, ids look like sandbox_ord_…, sandbox_pat_…, and sandbox_int_….

Order events

order.paid

Fires when the order’s card-on-file charge succeeds.

order.shipped

Fires when the order ships and tracking is attached.

order.delivered

Fires when the carrier reports delivery.

order.exception

Fires when the carrier reports a delivery problem (failed attempt, return to sender, address issue, and similar).

Intake events

intake.reviewed

Intake reviewed / prescription signed. Fires the moment a prescriber signs the escript — this is the “Rx cleared” signal you should key fulfillment off of.

Sandbox deliveries

Events generated by the simulated sandbox lifecycle are identical in shape but carry "sandbox": true and sandbox ids:
Never treat a payload with "sandbox": true as a real clinical or financial event.