Skip to main content

Python client for the Easybill REST API

Project description

Easybill API Client

Python client for the Easybill REST API.

Installation

pip install easybill-api-client

Usage

from easybill_client import EasybillClient

with EasybillClient(api_key="your-api-key") as client:
    # Get all customers
    customers = client.get_customers()

    # Get invoices for a year
    invoices = client.get_invoices(year=2025)

    # Get all documents
    documents = client.get_documents()

    # Get projects
    projects = client.get_projects()

API

EasybillClient

  • get_customers(limit=1000) - Get all customers
  • get_customer(customer_id) - Get single customer
  • get_documents(document_type, start_date, end_date, customer_id, status, limit) - Get documents
  • get_invoices(year, start_date, end_date, customer_id) - Get invoices
  • get_document(document_id, with_items=True) - Get single document
  • get_document_pdf(document_id) - Download document PDF
  • get_projects(customer_id, limit) - Get projects

Document Types

from easybill_client import DOC_TYPE_INVOICE, DOC_TYPE_CREDIT, DOC_TYPE_OFFER, DOC_TYPE_ORDER, DOC_TYPE_RECURRING

Exceptions

  • EasybillError - Base exception
  • EasybillAuthenticationError - Authentication failed
  • EasybillRateLimitError - Rate limit exceeded
  • EasybillNotFoundError - Resource not found

Models

  • EasybillCustomer - Customer data
  • EasybillDocument - Invoice/document data
  • EasybillDocumentItem - Line item in document
  • EasybillProject - Project data

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

easybill_api_client-0.1.0.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

easybill_api_client-0.1.0-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

Details for the file easybill_api_client-0.1.0.tar.gz.

File metadata

  • Download URL: easybill_api_client-0.1.0.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.5

File hashes

Hashes for easybill_api_client-0.1.0.tar.gz
Algorithm Hash digest
SHA256 85e9febe5101ec501f953f9f95d52c11baf62eee1168526f943e84bdcb81285d
MD5 008f08b46a088e0034aae7f4100685df
BLAKE2b-256 f00ab0107e76b626f31f72d7acf01e7f5d2c5d98515dbafef6aea65d5d4fc362

See more details on using hashes here.

File details

Details for the file easybill_api_client-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for easybill_api_client-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a32d6d5544014c5a24defef04a5d374a9448f28b256e040d22092446a1346e41
MD5 90f405db7a696bb4d88cdd4f0610b76f
BLAKE2b-256 fb24479638389b47442b13b9bfc2b197e9e342566520816eac6169b9450bcbbe

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page