Skip to content

loopfour/justpaid-python-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JustPaid API Python SDK

This SDK provides a simple interface to interact with the JustPaid API for usage-based billing.

Installation

pip install justpaid

Quick Start

from justpaid import JustPaidAPI

print(justpaid.__version__) # Should print "0.x.x"

# Initialize the API client
api = JustPaidAPI(api_token="your_api_token_here")

# Get billable items by customer_id
items = api.get_billable_items(customer_id="customer-123")

# Or get billable items by external_customer_id
items = api.get_billable_items(external_customer_id="ext-customer-123")

print(items)

for more examples, see the examples directory.

Features

  • Retrieve billable items
  • Ingest usage events
  • Batch ingest multiple usage events asynchronously

Documentation

For detailed API documentation and examples, see the docs directory.

License

This project is licensed under the MIT License - see the LICENSE file for details.