chargebee-python icon indicating copy to clipboard operation
chargebee-python copied to clipboard

Python library for the Chargebee API.

Results 15 chargebee-python issues
Sort by recently updated
recently updated
newest added

Hi there :) I would like to send a payload as JSON to Chargebee API but it only works in URL encoded format, not in JSON format. I need to...

feature-request

### Description of the Bug Getting CERTIFICATE_VERIFY_FAILED on all API calls suddenly. It seems Chargebee updated their SSL certificate but not the `ca-certs.crt` used for SSL validation and its now...

### What problem does your feature request address? Currently the only way to retrieve a list of subscriptions related to a single customer is through `chargebee.Subscription.list({"customer_id[is]": ""})`. This returns a...

I wanted to honor Retry-After when handling 429, but response headers weren't available. This PR adds thems to APIError.

It is possible to have the number of objects (Subscriptions, Coupons, Invoices, Customers, etc.) with filters ?

Exceptions do not have message attribute in Python 3. See [PEP-352](https://peps.python.org/pep-0352/) Also, and this is my opinion, it doesn't offer any value to re-raise the JSON decode error as something...

It would be good to add the retry on failure for timeouts https://findwork.dev/blog/advanced-usage-python-requests-timeouts-retries-hooks/

This fixes #13, which leads directly to easier mocking/testing of Chargebee APIs too. It's mostly just cut & paste from result.py to the model classes. The `Result._get*()` methods no longer...

Fix for #12 Uses `Model.fields[0]` by default, but can be overridden via `Model.repr_field` eg. ``` >>> r = chargebee.Subscription.list({})[0] >>> r >>> r.customer >>> r.subscription >>> r.customer.billing_address ```