Node.js SDK
Easy Labs Node.js SDK (@easylabs/node) — installation, quickstart, and API reference.
@easylabs/node is the official Easy Labs SDK for Node.js. It wraps the Easy Labs REST API in a single createClient({ apiKey }) factory, exposes a typed method for every endpoint — customers, payment instruments, transfers, refunds, orders, checkout, embedded checkout, products and prices, subscriptions, coupons and promotion codes, invoices, dunning, treasury, settlements, disputes, authorizations, compliance forms, webhooks, and analytics — and ships an EasyWebhooks.constructEvent helper for verifying inbound webhook deliveries.
The SDK is server-only: it sends your secret API key on every request as x-easy-api-key and is designed to be initialized once per process (typically inside a framework plugin or a module-level singleton). It targets Node.js 22+, ships dual ESM + CJS bundles, and re-exports every request/response type from @easylabs/common so you can import type { CreateCustomer, SubscriptionData } from "@easylabs/node" without reaching into a separate package.