Developer

SDKs

TypeScript and Python clients generated from the OpenAPI document.

Both clients are generated from openapi.json on every change — a new resource appears in them the day it ships. They are dependency-free (fetch / urllib), send a fresh Idempotency-Key on every write, raise a typed error carrying the API's error / error_description, and include webhook signature verification.

typescript
import { Trabalance, TrabalanceError } from "./trabalance";

const tb = new Trabalance({ apiKey: process.env.TRABALANCE_API_KEY! });

const { data } = await tb.listCustomers({ page_size: 10 });
const created = await tb.createACustomer({ name: "Acme Corp", email: "[email protected]" });
const invoice = await tb.createAnInvoice({
receiver: created.data.id, date: "2026-08-26",
items: [{ id: "<item id>", qty: 2, rate: 150 }],
});

try { await tb.getACustomer("does-not-exist"); }
catch (e) { if (e instanceof TrabalanceError) console.log(e.status, e.body.error); }
ℹ️Where to get them

sdk/typescript/trabalance.ts and sdk/python/trabalance.py in the API repository, regenerated with npm run sdk:generate. Package registries follow once v1 has been in production for a release cycle.