Skip to main content

Python SDK

The smartbills 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/await support
  • 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_id context
  • 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