This SDK provides a simple interface to interact with the JustPaid API for usage-based billing.
pip install justpaid
from justpaid import JustPaidAPI
# Initialize the API client
api = JustPaidAPI(api_token="your_api_token_here")
# Get billable items
items = api.get_billable_items()
print(items)
for more examples, see the examples directory.
- Retrieve billable items
- Ingest usage events
- Batch ingest multiple usage events
For detailed API documentation and examples, see the docs directory.
This project is licensed under the MIT License - see the LICENSE file for details.