SUQODocs
User GuideAPI ReferenceSDKs
TypeScript SDK v2.0.0. This version is frozen and no longer updated. Read the latest (2.1.0).

TypeScript SDK

Official SUQO SDK for server-side TypeScript.

Server-side TypeScript SDK for the SUQO subscription management platform. Integrate products, checkout sessions, subscriptions, customers, and webhooks into your own app without hand-writing raw API calls.

Source: github.com/suqo-ai/suqo-sdk-ts · npm: @suqo/sdk · v2.0.0

Server-side only. This SDK uses your full-access API key and must never be bundled into browser code.

Install

npm install @suqo/[email protected]

What's included

  • Dual build — ESM and CommonJS, with full TypeScript types either way.
  • Strict typing — no any in the public surface; money and other decimal fields always stay strings, never silently coerced or rounded.
  • Zero runtime dependencies.
  • Automatic retries on safe (read) requests, with sane timeout defaults — writes are never retried automatically.

Next

  • Quickstart — install the package and make your first real call.
  • Configure the client — API keys, environment inference, timeouts and retries.
  • Collect payments — open a checkout session, the recommended way to take a payment.
  • Manage subscriptions — retrieve, cancel, resume and renew what buyers subscribed to.
  • Handle webhooks — verifying inbound deliveries and managing registrations.
  • Changelog & versioning — what shipped, and what a major bump means. Upgrading from 1.x? Start with the 2.0.0 notes there.

On this page