Skip to main content

A Python SDK for the JustPaid API

Project description

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

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.

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

justpaid-0.1.3.tar.gz (8.1 kB view details)

Uploaded Source

Built Distribution

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

justpaid-0.1.3-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file justpaid-0.1.3.tar.gz.

File metadata

  • Download URL: justpaid-0.1.3.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for justpaid-0.1.3.tar.gz
Algorithm Hash digest
SHA256 70240daba39968c354ecd332a1a92e812e06b1139e0142232ef8f29899090624
MD5 0574909ea672d38e2c5fe506fd84f3d9
BLAKE2b-256 900b575c7f66f1d86f15f7a0d711e877c212717268ca02b443c325792d1a4c21

See more details on using hashes here.

File details

Details for the file justpaid-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: justpaid-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 8.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for justpaid-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 39fe4cb629d99edf7142d349a4d2d90d86113e65cddfef1eb07354531542e98e
MD5 fa47e2a6df2b51cfe10c917dcb9c0d3f
BLAKE2b-256 2032c443746e084fd4d62523380fe1d645c35efedb7bd5bc84dee61ed2c960df

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