credoxa-billing-sdk
Public HTTP contract for Credoxa Billing.
Billing owns commercial truth for subscriptions, usage, invoices, payments, refunds, and derived entitlement access.
Tenant and caller identity are established by the trusted Credoxa Gateway boundary. Clients must not treat tenant identity in request bodies as authority.
This Python package is automatically generated by the OpenAPI Generator project:
- API version: 1.0.0
- Package version: 1.0.0
- Generator version: 7.14.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
Requirements.
Python 3.9+
Installation & Usage
pip install
If the python package is hosted on a repository, you can install directly using:
pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
(you may need to run pip with root permission: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git)
Then import the package:
import credoxa_billing
Setuptools
Install via Setuptools.
python setup.py install --user
(or sudo python setup.py install to install the package for all users)
Then import the package:
import credoxa_billing
Tests
Execute pytest to run the tests.
Getting Started
Please follow the installation procedure and then run the following:
import credoxa_billing
from credoxa_billing.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = credoxa_billing.Configuration(
host = "http://localhost"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: CredoxaGatewayIdentity
configuration.api_key['CredoxaGatewayIdentity'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['CredoxaGatewayIdentity'] = 'Bearer'
# Enter a context with an instance of the API client
with credoxa_billing.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = credoxa_billing.CatalogApi(api_client)
try:
api_response = api_instance.list_plans()
print("The response of CatalogApi->list_plans:\n")
pprint(api_response)
except ApiException as e:
print("Exception when calling CatalogApi->list_plans: %s\n" % e)
Documentation for API Endpoints
All URIs are relative to http://localhost
| Class | Method | HTTP request | Description |
|---|---|---|---|
| CatalogApi | list_plans | GET /api/v1/plans | |
| CatalogApi | list_prices | GET /api/v1/prices | |
| CatalogApi | list_products | GET /api/v1/products | |
| EntitlementsApi | get_subscription_access | GET /api/v1/subscriptions/{subscription_id}/access | |
| EntitlementsApi | list_subscription_entitlements | GET /api/v1/subscriptions/{subscription_id}/entitlements | |
| InvoicesApi | get_invoice | GET /api/v1/invoices/{invoice_id} | |
| InvoicesApi | list_invoices | GET /api/v1/invoices | |
| PaymentsApi | create_invoice_payment | POST /api/v1/invoices/{invoice_id}/payments | |
| PaymentsApi | get_payment | GET /api/v1/payments/{payment_id} | |
| ProviderEventsApi | ingest_stripe_provider_event | POST /api/v1/provider-events/stripe | |
| RefundsApi | create_refund | POST /api/v1/payments/{payment_id}/refunds | |
| SubscriptionsApi | create_subscription | POST /api/v1/subscriptions | |
| SubscriptionsApi | get_subscription | GET /api/v1/subscriptions/{subscription_id} | |
| SubscriptionsApi | list_subscriptions | GET /api/v1/subscriptions | |
| UsageApi | create_usage_event | POST /api/v1/usage-events |
Documentation For Models
- Entitlement
- IdempotencyReplay
- Invoice
- InvoiceLine
- Money
- PaginatedInvoices
- PaginatedPlans
- PaginatedPrices
- PaginatedProducts
- PaginatedSubscriptions
- Payment
- PaymentCreateRequest
- Plan
- Price
- Product
- ProviderEventReceipt
- Refund
- RefundCreateRequest
- Subscription
- SubscriptionAccess
- SubscriptionCreateRequest
- SubscriptionEntitlements
- UsageEvent
- UsageEventCreateRequest
Documentation For Authorization
Authentication schemes defined for the API:
CredoxaGatewayIdentity
- Type: API key
- API key parameter name: X-Credoxa-Subject
- Location: HTTP header
Author
Metadata
Release files for credoxa-billing-sdk 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| credoxa_billing_sdk-1.0.0.tar.gz | 37.5 kB | With provenance | Details for credoxa_billing_sdk-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| credoxa_billing_sdk-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for credoxa_billing_sdk-1.0.0-py3-none-any.whl |
Total release size: 115.3 kB
Release files / credoxa_billing_sdk-1.0.0.tar.gz
| Download URL | credoxa_billing_sdk-1.0.0.tar.gz |
|---|---|
| Size | 37.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6184a8cd4f3f99f82835498bc747f23511ca2805b2e5c4ca51e6e61b5019d334
|
|
BLAKE2b-256 checksum How to use checksums |
0a47651a13ca49f41d1c561337a8615bde939460ed429d7871e7128afa08ce07
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 2, 2026.
Transparency logRelease files / credoxa_billing_sdk-1.0.0-py3-none-any.whl
| Download URL | credoxa_billing_sdk-1.0.0-py3-none-any.whl |
|---|---|
| Size | 77.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4db6d9d8e00d77ea47706b4a25a40a5bc9404bcb685645f72708c0d108b3c5e9
|
|
BLAKE2b-256 checksum How to use checksums |
125282369df6e5d18fa53dc12481213d32f0269cc7489c8d86934115c111d459
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 2, 2026.
Transparency logSecurity for credoxa-billing-sdk 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for credoxa_billing_sdk-1.0.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 2, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.