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
TheTaxMaxi class is the single entry point for all SDK operations. How you construct it depends on how your application authenticates with the TaxMaxi API.
- API key
- Browser session
- Server-side (SSR)
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 usingnew TaxMaxi(options), the constructor accepts a TaxMaxiOptions object: