Tutorial: your first prescription
This walkthrough covers the complete flow — activation is assumed done (do that first). We use the raw HTTP endpoints so the flow is crystal clear; the Plugin SDK and Headless SDK pages show the same steps as one-liners. Cast of characters:1
1 — Check if the product is an Rx product
At product-page load, ask whether the clinical flow is needed:If
required is false, sell it like any normal product and skip the rest of this page.2
2 — Marketing quiz, then check out
Run a marketing quiz before payment (vertical, goals, preferences). No medical questions, no PHI.Then run a standard Tagada checkout with
mode: 'auth' (card hold, not a capture). When the hold succeeds you have orderId and checkoutToken.3
3 — Medical intake on the thank-you page, then submit the case
After the hold, fetch the network-authored questionnaire and collect the intake on
/thank-you. Then submit. The (orderId, checkoutToken) pair proves ownership — no API key in the browser. Keep patient / intakeAnswers in memory only until submitCase succeeds.Intake answer values must be
string, number, or boolean. For multi-select questions, join the selections into one comma-separated string ("lose_weight,improve_sleep") — arrays are joined automatically but the canonical wire format is the flat string.4
4 — Show live status on the thank-you page
Poll the public lookup with the same ownership proof:Render it as: “A licensed clinician is reviewing your information.” → “Approved — your treatment ships soon.”
5
5 — Let the webhooks do their thing
From here, everything is event-driven. The clinical network calls Tagada’s webhook receiver and the case advances on its own:
case.in_review→ clinician picked it upcase.approved→ prescription issuedshipment.shipped→ tracking attached, next rebill scheduled at ship day + 30shipment.delivered→ done for this cycle
6
6 — The patient uses the portal
Point patients to your storefront’s portal page (the Oakwell template ships one at
/portal). They log in with an email OTP, see their treatments and timelines, message the care team, and upload a photo ID when the offering requires identity verification. Details: Patient portal.When a clinician replies, Tagada emails the patient a content-free notification (“You have a new message”) linking back to the portal.7
7 — Refills happen by themselves
On every shipment, Tagada schedules the next charge for the ship day + cycle (default 30 days). An hourly scan rebills due cases that are still
shipped/delivered. You do nothing; declined or cancelled cases never rebill.What can go wrong (and what to do)
Next
Plugin SDK
The same flow inside a Tagada-hosted storefront.
Headless SDK
The same flow from your own site.
Node SDK
Server-side ops: activation, cases, refills.
