Skip to main content

Tagada Rx with the Node SDK

The Node SDK exposes the whole merchant-side Rx surface under tagada.rx.*. Use it from your backend, ops scripts, or partner provisioning flows — anywhere you hold a Tagada API key.
The Node SDK maps 1:1 onto the REST endpoints under /api/v1/rx/*, so everything here is also available as plain HTTP with Authorization: Bearer <key>.

Setup & configuration

Check where you stand at any point:

Statement descriptor

In affiliate mode Tagada is the merchant of record, so the cardholder line is TGDCARE*<BRAND>. The brand chooses <BRAND> (A-Z, 0-9 and spaces, 14 characters max; accents are folded, other characters dropped) and Tagada reviews it. Until it is approved, statements show a line built from the store name.
A rejected descriptor comes back with status: 'rejected' and a rejectionReason; submit a new one.

Working with cases

You can also submit cases server-side (e.g. from a custom backend that already collected the intake) — but remember the PHI rule: pass it through, never store it:
The same rules apply as from the browser: a patient or intake that does not meet the clinical network rules fails with 422 and the list of fields to fix, and nothing reaches the clinician. Check first with POST /api/public/v1/rx/intake/validate (see Headless SDK); the headless SDK helpers isQuestionActive and toIntakeAnswers also run on Node.

Refills

Refills normally run themselves (ship-day rebill engine, see How it works). Trigger one manually when support needs it:
Only cases in shipped or delivered are refill-eligible.

Affiliate terms (MoR mode)

Accruals post automatically at case submission and reverse automatically on clinician decline — there is nothing to call.

Install the storefront Funnel v2

tagada.rx.* is the clinical surface. The canvas operators see in the CRM is a regular Funnel v2. After you activate Rx (or when you seed a headless store), create the same six-step graph the hosted templates get on publish:
Copy the full graph from With the Headless SDK or run the rx-storefront example (pnpm seed calls funnels.create and writes funnel.bundle.json for Funnels → Import bundle).

Method reference