SDKs

Integrate Suger in your language of choice.

Official SDKs for Node.js, Python, Go, and Java. Type-safe, well-documented, and production-ready.

Available libraries

Four official SDKs, consistent API

Node.js

JavaScript / TypeScript

Full-featured SDK for Node.js with first-class TypeScript support.

$ npm install @suger/sdk
View documentation

Python

Python 3.8+

Pythonic SDK with async support and type hints.

$ pip install suger-sdk
View documentation

Go

Go 1.18+

Idiomatic Go SDK with context and error wrapping.

$ go get github.com/suger/sdk-go
View documentation

Java

Java 11+

Enterprise-ready SDK for Java applications.

$ implementation 'io.suger:sdk:1.0.0'
View documentation
Simple API

Create your first private offer in 10 lines of code

Every SDK uses the same consistent client pattern. Initialize with your API key, call the resource method, and you're done.

Read SDK Docs
example.ts
import { SugerClient } from '@suger/sdk';

const client = new SugerClient({
  apiKey: process.env.SUGER_API_KEY
});

// Create a private offer
const offer = await client.offers.create({
  productId: 'prod_abc123',
  buyerId: 'buyer_xyz789',
  pricing: {
    type: 'fixed',
    amount: 10000,
    currency: 'USD'
  }
});

console.log('Offer created:', offer.id);
FAQ

SDK questions, answered

Which programming languages does Suger support? +

Suger provides official SDKs for Node.js (with TypeScript), Python, Go, and Java. The underlying REST API works with any language that can make HTTPS requests.

How do I install the Suger SDK? +

Use your language's package manager: `npm install @suger/sdk` (Node.js), `pip install suger-sdk` (Python), `go get github.com/suger/sdk-go` (Go), or add the Gradle/Maven dependency for Java.

Are Suger SDKs type-safe? +

Yes. The Node.js SDK ships with first-class TypeScript types, the Python SDK uses PEP 484 type hints, the Go SDK uses strict typing, and the Java SDK provides full class definitions.

Do Suger SDKs support async operations? +

Yes. Node.js returns Promises, Python supports both sync and async clients, Go uses context.Context for cancellation, and Java provides CompletableFuture-based async methods.

Where can I find SDK code examples? +

The full documentation at doc.suger.io includes runnable code examples for every endpoint in each SDK. There are also integration recipes for Salesforce, HubSpot, and common billing providers.

Can I use the Suger API without an SDK? +

Yes. The REST API works with any HTTP client — cURL, Postman, or your language's native library. The SDKs are optional but recommended for type safety and convenience.

Need a different language?

Our REST API works with any language. Check out the full API reference.