Python SDK
Thesmartbills package provides an async Python client for the Smartbills REST API. Built on httpx for async HTTP and pydantic for data validation, it offers a fully typed, production-ready integration layer.
Features
- Fully async with
async/awaitsupport - Pydantic v2 models for all request and response types
- Automatic retry with exponential back-off on transient failures
- Structured error hierarchy matching HTTP status codes
- Multi-tenant support via
business_idcontext - Async context manager for clean resource management
Quick start
Available services
All methods are async and must be called with
await.
Requirements
- Python 3.10 or later
- httpx 0.27+
- pydantic 2.0+
Next steps
- Installation, install the package and configure your environment
- Expenses, full expense service reference
- Expense Reports, report lifecycle management
- Error Handling, understand the error classes