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 theexports 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, enablestrict 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:Next steps
- Authentication, learn about token management and multi-tenant configuration
- Expenses, start working with the expense service