Overview
TheBillingOSClient class provides direct access to all BillingOS API methods. Use it when you need more control than hooks and components provide.
Most apps should use the hooks and components instead. The client is for advanced use cases like custom data fetching, server-side rendering, or non-React integrations.
Access the client
From within a BillingOSProvider:Constructor options
Methods
Customers
Subscriptions
Entitlements and features
Usage tracking
Invoices
Payment methods
Checkout
Checkout modal (iframe)
Access viaclient.checkout.*:
Portal (iframe)
Access viaclient.portal.*: