Python Client SDK Generated by Speakeasy
Project description
SDK Installation
pip install lago-billing
SDK Example Usage
import lago
from lago.models import operations, shared
s = lago.Lago(
security=shared.Security(
bearer_auth="Bearer YOUR_BEARER_TOKEN_HERE",
),
)
req = operations.FindInvoiceRequest(
id="1a901a90-1a90-1a90-1a90-1a901a901a90",
)
res = s.invoices.find(req)
if res.invoice is not None:
# handle response
Available Resources and Operations
add_ons
apply
- Apply an add-on to a customercreate
- Create a new add-ondestroy
- Delete an add-onfind
- Find add-on by codefind_all
- Find add-onsupdate
- Update an existing add-on
billable_metrics
create
- Create a new billable metricdestroy
- Delete a billable metricfind
- Find billable metric by codefind_all
- Find Billable metricsfind_all_groups
- Find Billable metric groupsupdate
- Update an existing billable metric
coupons
applied_coupons
- Find Applied Couponsapply
- Apply a coupon to a customercreate
- Create a new coupondestroy
- Delete a couponfind
- Find coupon by codefind_all
- Find Couponsupdate
- Update an existing coupon
credit_notes
create
- Create a new Credit notedownload
- Download an existing credit notefind
- Find credit notefind_all
- Find Credit notesupdate
- Update an existing credit notevoid
- Void existing credit note
customers
create
- Create a customercurrent_usage
- Find customer current usagedelete_applied_coupon
- Delete customer's appplied coupondestroy
- Delete a customerfind
- Find customer by external IDfind_all
- Find customersportal_url
- Get customer portal URL
events
estimate_fees
- Estimate fees for an instant chargebatch_create
- Create batch eventscreate
- Create a new eventfind
- Find event by transaction ID
fees
find
- Find fee by IDfind_all
- Find all feesupdate
- Update an existing fee
invoices
download
- Download an existing invoicefinalize
- Finalize a draft invoicefind
- Find invoice by IDfind_all
- Find all invoicesretry
- Retry invoice paymentupdate
- Update an existing invoice statusvoid
- Refresh a draft invoice
organizations
update
- Update an existing Organization
plans
create
- Create a new plandestroy
- Delete a planfind
- Fin plan by codefind_all
- Find plansupdate
- Update an existing plan
subscriptions
create
- Assign a plan to a customerdestroy
- Terminate a subscriptionfind_all
- Find subscriptionsupdate
- Update an existing subscription
wallets
create
- Create a new walletcreate_transaction
- Create a new wallet transactiondestroy
- Delete a walletfind
- Find walletfind_all
- Find walletsfind_all_transactions
- Find wallet transactionsupdate
- Update an existing wallet
webhooks
fetch_public_key
- Fetch webhook public key
Maturity
This SDK is in beta, and there may be breaking changes between versions without a major version update. Therefore, we recommend pinning usage to a specific package version. This way, you can install the same version each time without breaking changes unless you are intentionally looking for the latest version.
Contributions
While we value open-source contributions to this SDK, this library is generated programmatically. Feel free to open a PR or a Github issue as a proof of concept and we'll do our best to include it in a future release !
SDK Created by Speakeasy
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
lago-billing-1.0.1.tar.gz
(40.5 kB
view hashes)
Built Distribution
lago_billing-1.0.1-py3-none-any.whl
(130.1 kB
view hashes)
Close
Hashes for lago_billing-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 80b8006391c865fa32e307ce13e60f72b98b1994eb689e37771bae1f585ffc02 |
|
MD5 | ecd1bc49b33bcc51b37cea58ba76a1a5 |
|
BLAKE2b-256 | 8e28c9fe4aab3d6e81cd5c920f31bb278600d1ae2af0ee8666355b591ab9917e |