Node SDK Quick Start
Time: ~5 minutes | Difficulty: BeginnerWhat Is the Node SDK?
The Node SDK lets you control TagadaPay from your server. Think of it as the backend counterpart to the Plugin SDK — while the Plugin SDK builds the checkout UI, the Node SDK manages everything behind it.Why use the Node SDK? If you’re an AI agent, a CI/CD pipeline, a custom backend, or just prefer code over dashboards — this is how you talk to TagadaPay programmatically.
Prerequisites
| Requirement | How to get it |
|---|---|
| Node.js 18+ | nodejs.org — run node --version to check |
| TagadaPay account | Sign up at app.tagadapay.com |
| API key | Dashboard → Settings → Access Tokens → create one |
Finding Your API Key
Your API key is a UUID (e.g.2f681d1d-xxxx-xxxx-xxxx-xxxxxxxxxxxx). To find or create one:
- Click your avatar in the top-right corner and select Settings

- Go to the Access Tokens tab and copy your API key (or click + Create Access Token to generate a new one)

Install
Initialize
tagada.<resource>.
Example: Full Checkout Setup in 7 Steps
This script creates a processor, payment flow, store, product, and funnel — activates the checkout — then generates a checkout session link. No plugin deployment needed; TagadaPay’s native checkout is auto-injected.Available Resources
Every resource follows the same patterns:list, retrieve, create, update, del.
| Resource | Examples |
|---|---|
tagada.stores | .list(), .create(...), .retrieve(id) |
tagada.products | .list(...), .create(...), .update(...) |
tagada.payments | .list(...), .process(...), .refund(...), .void(...) |
tagada.paymentFlows | .create(...), .listWithProcessors() — define how payments cascade across PSPs |
tagada.funnels | .create(...), .update(id, ...), .promote(id, ...) — multi-step flows with auto-routing |
tagada.plugins | .deployDirectory(...) (recommended), .deploy(...), .instantiate(...), .mount(...), .configureSplit(...) — host pages on TagadaPay’s CDN with A/B testing |
tagada.subscriptions | .create(...), .cancel(...), .rebill(id), .changeProcessor(...) |
tagada.customers | .list(...), .retrieve(id) |
tagada.orders | .list(...), .retrieve(id) |
tagada.webhooks | .create(...), .list(...), .del(id) |
tagada.events | .recent(...), .list(...), .statistics(...) — event log and audit trail |
tagada.emailTemplates | .create(...), .list(...), .update(...), .test(...), .del(...) — Emails guide |
tagada.promotions | .create(...), .list(...), .update(...) — discounts |
tagada.promotionCodes | .create(...), .list(...) — discount codes |
tagada.offers | .list(...), .create(...) — upsells, downsells, order bumps |
tagada.blockRules | .create(...), .list(...), .del(...) — fraud prevention |
tagada.paymentInstruments | .createFromToken(...), .list(...), .retrieve(id), .del(id) — stored payment methods |
tagada.checkoutOffers | .list(...), .create(...), .update(...), .del(...) — checkout-scoped offers |
tagada.checkout | .createSession(...), .pay(...) — create checkout links and process payments server-side |
tagada.processors | .list(), .create(...), .retrieve(id), .update(...), .del([ids]) — manage PSP connections |
tagada.domains | .add(...), .list(...), .verify(...), .remove(...), .getConfig(...), .getDnsLookup(...) |
Payment Flows: The Core of TagadaPay
TagadaPay is PSP-agnostic. You connect multiple processors (Stripe, Adyen, NMI, etc.) and define payment flows that route transactions intelligently.Error Handling
The SDK throws typed errors you can catch individually:429, 5xx, and network errors are automatic (configurable via maxRetries).
Configuration
TypeScript
Fully typed. Import any type you need:Next Steps
Email Templates
Create and customize transactional emails — order confirmations, subscription receipts, cart recovery
Webhooks & Events
Real-time notifications and event log for payments, subscriptions, and more
Subscriptions
Recurring billing, trials, retries, processor migration
Multi-Stripe Routing & Vault
Connect multiple Stripe accounts, vault cards, and cascade transactions
Funnel Orchestrator
Deep dive into multi-step funnels with routing, A/B testing, and analytics
API Reference
Full REST API documentation
