Skip to main content

Installation

Package managers

Install @smartbills/sdk using your preferred package manager:

System requirements

The SDK ships with full TypeScript type definitions. No separate @types package is required.

Module formats

The package supports both ESM and CommonJS. The appropriate format is resolved automatically through the exports field in package.json.

Dependencies

The SDK depends on axios for HTTP requests. It is installed automatically as a production dependency.

TypeScript configuration

For the best experience, enable strict mode in your tsconfig.json:

Basic setup

After installation, create a client instance and verify connectivity:

Environment variables

We recommend storing credentials in environment variables rather than hard-coding them:
Never commit API keys to source control. Use .env files, secret managers, or your platform’s environment variable configuration.

Next steps

  • Authentication, learn about token management and multi-tenant configuration
  • Expenses, start working with the expense service