Skip to main content
The SDK is distributed as the taxmaxi npm package and ships full TypeScript type definitions — no separate @types package is needed. Choose the installation command that matches your package manager, then follow the configuration steps for your runtime.

Install the package

Configure your client

The TaxMaxi class is the single entry point for all SDK operations. How you construct it depends on how your application authenticates with the TaxMaxi API.
Use new TaxMaxi({ apiKey }) when your code runs on a server or in a script and you hold a session token directly. The apiKey is the session token returned by POST /auth/login — pass it as a bearer token.
The apiKey option accepts the session token returned by POST /auth/login, not a long-lived API key. Treat it like a password and keep it out of source control.

Constructor options

When using new TaxMaxi(options), the constructor accepts a TaxMaxiOptions object:

TypeScript support

The SDK is written in TypeScript and all types are included in the package. No additional configuration is required. Import types directly alongside values:
Your editor will surface parameter types, return types, and inline documentation for every SDK method as you type.