SDKs
Integrate Suger in your language of choice.
Official SDKs for Node.js, Python, Go, and Java. Type-safe, well-documented, and production-ready.
Four official SDKs, consistent API
Node.js
JavaScript / TypeScriptFull-featured SDK for Node.js with first-class TypeScript support.
Python
Python 3.8+Pythonic SDK with async support and type hints.
Go
Go 1.18+Idiomatic Go SDK with context and error wrapping.
Java
Java 11+Enterprise-ready SDK for Java applications.
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 Docsimport { 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); 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.