Developer docs
Every webhook event, its fields and the scope it needs
In short
There are 22 event types. Each needs one scope: orders and disputes need read_orders, subscriptions and memberships read_subscriptions, customers and contact messages read_customers, campaigns read_marketing, and visits the PHI scope read_visits. This page is generated from the API's own catalog.
Orders events
order.created Order created
An order exists. Follows the customer paying at checkout or the visit's charge. Needs read_orders.
| Field | Type | What it is |
|---|---|---|
orderId | string | The order's id. |
orderNumber | string | The order number customers see, e.g. ORD-20261104-C35FFE05. |
customerId | string | null | The customer's id, when the order has an account behind it. |
totalCents | number | What was charged now, in cents. |
subtotalCents | number | Before discounts, in cents. |
discountCents | number | Discounts applied, in cents. |
currency | string | ISO code, usd. |
source | "cart" | "consultation" | A cart checkout or a visit. |
fulfilment | "ship" | "pickup" | undefined | On a visit's order: shipped, or collected from a pharmacy. |
pickupPharmacyName | string | null | undefined | The pharmacy the customer collects from, on a pickup order. Its address and phone are on the order. |
order.paid Order paid
Payment captured for the order. Needs read_orders.
| Field | Type | What it is |
|---|---|---|
orderId | string | The order's id. |
orderNumber | string | The order number customers see, e.g. ORD-20261104-C35FFE05. |
customerId | string | null | The customer's id, when the order has an account behind it. |
amountCents | number | Captured, in cents. |
currency | string | ISO code, usd. |
order.refunded Order refunded
A full or partial refund was issued from the dashboard. Needs read_orders.
| Field | Type | What it is |
|---|---|---|
orderId | string | The order's id. |
orderNumber | string | The order number customers see, e.g. ORD-20261104-C35FFE05. |
customerId | string | null | The customer's id, when the order has an account behind it. |
amountCents | number | Refunded in this action, in cents. |
currency | string | ISO code, usd. |
reason | string | null | The reason entered, if any. |
order.shipped Order shipped
The order left: the pharmacy shipped it, the merchant marked it fulfilled, or a dropship supplier shipped it. Needs read_orders.
| Field | Type | What it is |
|---|---|---|
orderId | string | The order's id. |
trackingNumber | string | null | Carrier tracking number, when known. |
carrier | string | null | Carrier name, when known. |
source | "beluga" | "pharmacy_approved" | "fulfilled_offline" | Which path shipped it. |
order.cancelled Order canceled
The merchant canceled the order. Needs read_orders.
| Field | Type | What it is |
|---|---|---|
orderId | string | The order's id. |
orderNumber | string | The order number customers see, e.g. ORD-20261104-C35FFE05. |
customerId | string | null | The customer's id, when the order has an account behind it. |
reason | string | null | The reason entered, if any. |
fromStatus | string | The status it was in before canceling. |
Subscriptions events
subscription.created Subscription created
A product subscription started, after the provider approved the visit. Needs read_subscriptions.
| Field | Type | What it is |
|---|---|---|
subscriptionId | string | The product subscription's id. |
customerId | string | null | The customer's id, when the order has an account behind it. |
productId | string | null | The anchor product. |
bundleId | string | null | The bundle, when the subscription is for one. |
flowSessionId | string | The visit's id. |
subscription.renewed Subscription renewed
A renewal was charged. Needs read_subscriptions.
| Field | Type | What it is |
|---|---|---|
subscriptionId | string | The product subscription's id. |
customerId | string | null | The customer's id, when the order has an account behind it. |
productId | string | null | The product renewed. |
amountCents | number | Charged, in cents. |
chargeCount | number | How many charges so far, this one included. |
subscription.paused Subscription paused
The customer paused from their account. Needs read_subscriptions.
| Field | Type | What it is |
|---|---|---|
subscriptionId | string | The product subscription's id. |
customerId | string | null | The customer's id, when the order has an account behind it. |
resumeAt | string | null | When it resumes on its own, ISO date, if set. |
by | "customer" | Who paused it. |
subscription.resumed Subscription resumed
The customer resumed from their account. Needs read_subscriptions.
| Field | Type | What it is |
|---|---|---|
subscriptionId | string | The product subscription's id. |
customerId | string | null | The customer's id, when the order has an account behind it. |
by | "customer" | Who resumed it. |
subscription.cancelled Subscription canceled
The customer canceled from their account. Needs read_subscriptions.
| Field | Type | What it is |
|---|---|---|
subscriptionId | string | The product subscription's id. |
customerId | string | null | The customer's id, when the order has an account behind it. |
reason | string | null | The reason they picked, if any. |
by | "customer" | Who canceled it. |
subscription.payment_failed Subscription payment failed
A renewal charge failed. Needs read_subscriptions.
| Field | Type | What it is |
|---|---|---|
subscriptionId | string | The product subscription's id. |
customerId | string | null | The customer's id, when the order has an account behind it. |
reason | string | The processor's reason. |
consecutiveFailures | number | Failures in a row, this one included. |
decision | string | What happens next: retry, pause or cancel. |
Customers events
customer.created Customer created
A customer account was created on the storefront. Needs read_customers.
| Field | Type | What it is |
|---|---|---|
customerId | string | The customer's id. |
email | string | The address they signed up with. |
Visits events
flow_session.submitted Visit submitted
The customer finished the intake. The visit goes to the provider, or to your review first when the product asks for it. Needs read_visits (health information).
| Field | Type | What it is |
|---|---|---|
flowSessionId | string | The visit's id. |
customerId | string | null | The customer's id, when the order has an account behind it. |
productId | string | null | The product the visit is for. |
bundleId | string | null | The bundle, when the visit is for one. |
orderId | string | null | The order, when one exists already. |
status | "INTAKE_SUBMITTED" | "MERCHANT_REVIEW_INTAKE" | Where it went. |
source | "storefront" | Where it came from. |
flow_session.approved Visit approved
The provider approved the visit. Needs read_visits (health information).
| Field | Type | What it is |
|---|---|---|
flowSessionId | string | The visit's id. |
customerId | string | null | The customer's id, when the order has an account behind it. |
orderId | string | null | The order the visit belongs to. |
productId | string | null | The product. |
bundleId | string | null | The bundle, if any. |
source | "beluga" | Which provider network decided. |
flow_session.declined Visit declined
The provider declined the visit. Needs read_visits (health information).
| Field | Type | What it is |
|---|---|---|
flowSessionId | string | The visit's id. |
customerId | string | null | The customer's id, when the order has an account behind it. |
orderId | string | null | The order the visit belongs to. |
productId | string | null | The product. |
bundleId | string | null | The bundle, if any. |
source | "beluga" | Which provider network decided. |
Disputes events
dispute.opened Dispute opened
A customer opened a dispute from their account, or the card issuer opened a chargeback. The customer's own words are never included. Needs read_orders.
| Field | Type | What it is |
|---|---|---|
orderId | string | The order's id. |
orderNumber | string | undefined | Present when the customer opened it. |
customerId | string | null | The customer's id, when the order has an account behind it. |
reason | string | null | The reason category. |
disputedAmountCents | number | null | The amount in question, in cents. |
evidenceDueAt | string | null | undefined | For a chargeback, when the evidence is due, ISO date. |
source | "customer" | "stripe_chargeback" | Who opened it. |
Campaigns events
campaign.sent Campaign sent
An email campaign started sending. Needs read_marketing.
| Field | Type | What it is |
|---|---|---|
campaignId | string | The campaign's id. |
name | string | Its name. |
recipientCount | number | How many people it goes to. |
steps | number | Emails per person, the first plus every drip step. |
Contact messages events
contact.received Contact message received
Someone used the store's contact form. Needs read_customers.
| Field | Type | What it is |
|---|---|---|
contactMessageId | string | The message's id. |
name | string | The sender's name. |
email | string | The sender's address. |
topic | string | null | The topic they picked, if any. |
Memberships events
program.started Membership started
A customer joined a membership program. Needs read_subscriptions.
| Field | Type | What it is |
|---|---|---|
programSubscriptionId | string | The membership subscription's id. |
programId | string | The membership program's id. |
customerId | string | null | The customer's id, when the order has an account behind it. |
feeCents | number | The monthly fee, in cents. |
flowSessionId | string | null | The visit it started from, or null when joined on its own. |
program.renewed Membership renewed
A membership month was charged. Needs read_subscriptions.
| Field | Type | What it is |
|---|---|---|
programSubscriptionId | string | The membership subscription's id. |
programId | string | The membership program's id. |
customerId | string | null | The customer's id, when the order has an account behind it. |
amountCents | number | Charged, in cents. |
orderId | string | The order the charge created. |
program.payment_failed Membership payment failed
A membership charge failed and will be retried. Needs read_subscriptions.
| Field | Type | What it is |
|---|---|---|
programSubscriptionId | string | The membership subscription's id. |
programId | string | The membership program's id. |
customerId | string | null | The customer's id, when the order has an account behind it. |
reason | string | The processor's reason. |
program.cancelled Membership canceled
The membership ended: canceled, or the period ran out after failed payments. Needs read_subscriptions.
| Field | Type | What it is |
|---|---|---|
programSubscriptionId | string | The membership subscription's id. |
programId | string | The membership program's id. |
customerId | string | null | The customer's id, when the order has an account behind it. |
reason | string | Why it ended, e.g. period_ended. |
Questions
Can I receive every event?
An app subscribes to the events it needs and requests the scopes that cover them. A store grants the scopes at install; a PHI scope also needs our approval.