All URIs are relative to https://{customerId}.billabear.cloud/api/v1
Method | HTTP request | Description |
---|---|---|
add_seats_subscriptions | POST /subscription/{subscriptionId}/seats/add | Add Seats |
apply_voucher_to_customer | POST /customer/{customerId}/voucher | Apply voucher |
create_customer | POST /customer | Create |
create_customer_usage_limit | POST /customer/{customerId}/uasge-limit | Create Usage Limit |
customer_customer_id_uasge_limit_limit_id_delete | DELETE /customer/{customerId}/uasge-limit/{limitId} | Delete Usage Limit |
disable_customer | POST /customer/{customerId}/disable | Disable Customer |
enable_customer | POST /customer/{customerId}/enable | Enable Customer |
get_active_for_customer | GET /customer/{customerId}/subscription/active | List Customer Active Subscriptions |
get_all_customers | GET /customer | List |
get_customer_by_id | GET /customer/{customerId} | Detail |
get_customer_costs | GET /customer/{customerId}/costs | Usage Cost Estimate |
get_customer_limits_by_id | GET /customer/{customerId}/limits | Fetch Customer Limits |
get_customer_usage_limits_by_id | GET /customer/{customerId}/uasge-limit | Fetch Customer Usage Limits |
get_for_customer | GET /customer/{customerId}/subscription | List Customer Subscriptions |
get_invoices_for_customer | GET /customer/{customerId}/invoices | List Customer Invoices |
get_payments_for_customer | GET /customer/{customerId}/payment | List Customer Payments |
get_refunds_for_customer | GET /customer/{customerId}/refund | List Customer Refunds |
list_payment_details | GET /customer/{customerId}/payment-methods | List Customer's Payment Details |
remove_seats_subscriptions | POST /subscription/{subscriptionId}/seats/remove | Remove Seats |
update_customer | PUT /customer/{customerId} | Update |
InlineResponse20013 add_seats_subscriptions(body, subscription_id)
Add Seats
Adds seats to a per seat subscription
Since 1.1.4
from __future__ import print_function
import time
import billabear
from billabear.rest import ApiException
from pprint import pprint
# Configure API key authorization: ApiKeyAuth
configuration = billabear.Configuration()
configuration.api_key['X-API-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-API-Key'] = 'Bearer'
# create an instance of the API class
api_instance = billabear.CustomersApi(billabear.ApiClient(configuration))
body = billabear.SeatsAddBody() # SeatsAddBody |
subscription_id = 'subscription_id_example' # str | The id of the subscription to retrieve
try:
# Add Seats
api_response = api_instance.add_seats_subscriptions(body, subscription_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling CustomersApi->add_seats_subscriptions: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
body | SeatsAddBody | ||
subscription_id | str | The id of the subscription to retrieve |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
apply_voucher_to_customer(body, customer_id)
Apply voucher
Apply Voucher to Customer
from __future__ import print_function
import time
import billabear
from billabear.rest import ApiException
from pprint import pprint
# Configure API key authorization: ApiKeyAuth
configuration = billabear.Configuration()
configuration.api_key['X-API-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-API-Key'] = 'Bearer'
# create an instance of the API class
api_instance = billabear.CustomersApi(billabear.ApiClient(configuration))
body = billabear.VoucherCode() # VoucherCode |
customer_id = 'customer_id_example' # str | The id of the customer to retrieve
try:
# Apply voucher
api_instance.apply_voucher_to_customer(body, customer_id)
except ApiException as e:
print("Exception when calling CustomersApi->apply_voucher_to_customer: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
body | VoucherCode | ||
customer_id | str | The id of the customer to retrieve |
void (empty response body)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Customer create_customer(body)
Create
Create a customer
from __future__ import print_function
import time
import billabear
from billabear.rest import ApiException
from pprint import pprint
# Configure API key authorization: ApiKeyAuth
configuration = billabear.Configuration()
configuration.api_key['X-API-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-API-Key'] = 'Bearer'
# create an instance of the API class
api_instance = billabear.CustomersApi(billabear.ApiClient(configuration))
body = billabear.Customer() # Customer |
try:
# Create
api_response = api_instance.create_customer(body)
pprint(api_response)
except ApiException as e:
print("Exception when calling CustomersApi->create_customer: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
body | Customer |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UsageLimit create_customer_usage_limit(body, customer_id)
Create Usage Limit
Create Usage Limit for the custoemr
from __future__ import print_function
import time
import billabear
from billabear.rest import ApiException
from pprint import pprint
# Configure API key authorization: ApiKeyAuth
configuration = billabear.Configuration()
configuration.api_key['X-API-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-API-Key'] = 'Bearer'
# create an instance of the API class
api_instance = billabear.CustomersApi(billabear.ApiClient(configuration))
body = billabear.CustomerIdUasgelimitBody() # CustomerIdUasgelimitBody |
customer_id = 'customer_id_example' # str | The id of the customer to retrieve
try:
# Create Usage Limit
api_response = api_instance.create_customer_usage_limit(body, customer_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling CustomersApi->create_customer_usage_limit: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
body | CustomerIdUasgelimitBody | ||
customer_id | str | The id of the customer to retrieve |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
customer_customer_id_uasge_limit_limit_id_delete(customer_id, usage_limit_id)
Delete Usage Limit
Delete Usage Limit for the custoemr
from __future__ import print_function
import time
import billabear
from billabear.rest import ApiException
from pprint import pprint
# Configure API key authorization: ApiKeyAuth
configuration = billabear.Configuration()
configuration.api_key['X-API-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-API-Key'] = 'Bearer'
# create an instance of the API class
api_instance = billabear.CustomersApi(billabear.ApiClient(configuration))
customer_id = 'customer_id_example' # str | The id of the customer to retrieve
usage_limit_id = 'usage_limit_id_example' # str | The id of the usage limit
try:
# Delete Usage Limit
api_instance.customer_customer_id_uasge_limit_limit_id_delete(customer_id, usage_limit_id)
except ApiException as e:
print("Exception when calling CustomersApi->customer_customer_id_uasge_limit_limit_id_delete: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
customer_id | str | The id of the customer to retrieve | |
usage_limit_id | str | The id of the usage limit |
void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
disable_customer(customer_id)
Disable Customer
Disable customer
from __future__ import print_function
import time
import billabear
from billabear.rest import ApiException
from pprint import pprint
# Configure API key authorization: ApiKeyAuth
configuration = billabear.Configuration()
configuration.api_key['X-API-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-API-Key'] = 'Bearer'
# create an instance of the API class
api_instance = billabear.CustomersApi(billabear.ApiClient(configuration))
customer_id = 'customer_id_example' # str | The id of the customer to retrieve
try:
# Disable Customer
api_instance.disable_customer(customer_id)
except ApiException as e:
print("Exception when calling CustomersApi->disable_customer: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
customer_id | str | The id of the customer to retrieve |
void (empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
enable_customer(customer_id)
Enable Customer
Enable a customer
from __future__ import print_function
import time
import billabear
from billabear.rest import ApiException
from pprint import pprint
# Configure API key authorization: ApiKeyAuth
configuration = billabear.Configuration()
configuration.api_key['X-API-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-API-Key'] = 'Bearer'
# create an instance of the API class
api_instance = billabear.CustomersApi(billabear.ApiClient(configuration))
customer_id = 'customer_id_example' # str | The id of the customer to retrieve
try:
# Enable Customer
api_instance.enable_customer(customer_id)
except ApiException as e:
print("Exception when calling CustomersApi->enable_customer: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
customer_id | str | The id of the customer to retrieve |
void (empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InlineResponse2008 get_active_for_customer(customer_id)
List Customer Active Subscriptions
List all Active customer subscriptions
from __future__ import print_function
import time
import billabear
from billabear.rest import ApiException
from pprint import pprint
# Configure API key authorization: ApiKeyAuth
configuration = billabear.Configuration()
configuration.api_key['X-API-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-API-Key'] = 'Bearer'
# create an instance of the API class
api_instance = billabear.CustomersApi(billabear.ApiClient(configuration))
customer_id = 'customer_id_example' # str | The id of the customer to retrieve
try:
# List Customer Active Subscriptions
api_response = api_instance.get_active_for_customer(customer_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling CustomersApi->get_active_for_customer: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
customer_id | str | The id of the customer to retrieve |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InlineResponse200 get_all_customers(limit=limit, last_key=last_key, email=email, country=country, reference=reference, external_reference=external_reference, company_name=company_name)
List
List all customers
from __future__ import print_function
import time
import billabear
from billabear.rest import ApiException
from pprint import pprint
# Configure API key authorization: ApiKeyAuth
configuration = billabear.Configuration()
configuration.api_key['X-API-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-API-Key'] = 'Bearer'
# create an instance of the API class
api_instance = billabear.CustomersApi(billabear.ApiClient(configuration))
limit = 56 # int | How many items to return at one time (max 100) (optional)
last_key = 'last_key_example' # str | The key to be used in pagination to say what the last key of the previous page was (optional)
email = 'email_example' # str | The email to search for (optional)
country = 'country_example' # str | The country code to search for (optional)
reference = 'reference_example' # str | The reference to search for (optional)
external_reference = 'external_reference_example' # str | The external reference to search for (optional)
company_name = 'company_name_example' # str | The company name to search for (optional)
try:
# List
api_response = api_instance.get_all_customers(limit=limit, last_key=last_key, email=email, country=country, reference=reference, external_reference=external_reference, company_name=company_name)
pprint(api_response)
except ApiException as e:
print("Exception when calling CustomersApi->get_all_customers: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
limit | int | How many items to return at one time (max 100) | [optional] |
last_key | str | The key to be used in pagination to say what the last key of the previous page was | [optional] |
str | The email to search for | [optional] | |
country | str | The country code to search for | [optional] |
reference | str | The reference to search for | [optional] |
external_reference | str | The external reference to search for | [optional] |
company_name | str | The company name to search for | [optional] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Customer get_customer_by_id(customer_id)
Detail
Info for a specific customer
from __future__ import print_function
import time
import billabear
from billabear.rest import ApiException
from pprint import pprint
# Configure API key authorization: ApiKeyAuth
configuration = billabear.Configuration()
configuration.api_key['X-API-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-API-Key'] = 'Bearer'
# create an instance of the API class
api_instance = billabear.CustomersApi(billabear.ApiClient(configuration))
customer_id = 'customer_id_example' # str | The id of the customer to retrieve
try:
# Detail
api_response = api_instance.get_customer_by_id(customer_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling CustomersApi->get_customer_by_id: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
customer_id | str | The id of the customer to retrieve |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InlineResponse2001 get_customer_costs(customer_id)
Usage Cost Estimate
The estimated costs from usage based billing for a customer
from __future__ import print_function
import time
import billabear
from billabear.rest import ApiException
from pprint import pprint
# Configure API key authorization: ApiKeyAuth
configuration = billabear.Configuration()
configuration.api_key['X-API-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-API-Key'] = 'Bearer'
# create an instance of the API class
api_instance = billabear.CustomersApi(billabear.ApiClient(configuration))
customer_id = 'customer_id_example' # str | The id of the customer to retrieve
try:
# Usage Cost Estimate
api_response = api_instance.get_customer_costs(customer_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling CustomersApi->get_customer_costs: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
customer_id | str | The id of the customer to retrieve |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InlineResponse2002 get_customer_limits_by_id(customer_id)
Fetch Customer Limits
Limits for a specific customer
from __future__ import print_function
import time
import billabear
from billabear.rest import ApiException
from pprint import pprint
# Configure API key authorization: ApiKeyAuth
configuration = billabear.Configuration()
configuration.api_key['X-API-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-API-Key'] = 'Bearer'
# create an instance of the API class
api_instance = billabear.CustomersApi(billabear.ApiClient(configuration))
customer_id = 'customer_id_example' # str | The id of the customer to retrieve
try:
# Fetch Customer Limits
api_response = api_instance.get_customer_limits_by_id(customer_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling CustomersApi->get_customer_limits_by_id: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
customer_id | str | The id of the customer to retrieve |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InlineResponse2005 get_customer_usage_limits_by_id(customer_id)
Fetch Customer Usage Limits
Usage Limits for a specific customer
from __future__ import print_function
import time
import billabear
from billabear.rest import ApiException
from pprint import pprint
# Configure API key authorization: ApiKeyAuth
configuration = billabear.Configuration()
configuration.api_key['X-API-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-API-Key'] = 'Bearer'
# create an instance of the API class
api_instance = billabear.CustomersApi(billabear.ApiClient(configuration))
customer_id = 'customer_id_example' # str | The id of the customer to retrieve
try:
# Fetch Customer Usage Limits
api_response = api_instance.get_customer_usage_limits_by_id(customer_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling CustomersApi->get_customer_usage_limits_by_id: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
customer_id | str | The id of the customer to retrieve |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InlineResponse2008 get_for_customer(customer_id)
List Customer Subscriptions
List all customer subscriptions
Since 1.1
from __future__ import print_function
import time
import billabear
from billabear.rest import ApiException
from pprint import pprint
# Configure API key authorization: ApiKeyAuth
configuration = billabear.Configuration()
configuration.api_key['X-API-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-API-Key'] = 'Bearer'
# create an instance of the API class
api_instance = billabear.CustomersApi(billabear.ApiClient(configuration))
customer_id = 'customer_id_example' # str | The id of the customer to retrieve
try:
# List Customer Subscriptions
api_response = api_instance.get_for_customer(customer_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling CustomersApi->get_for_customer: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
customer_id | str | The id of the customer to retrieve |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InlineResponse2006 get_invoices_for_customer(customer_id)
List Customer Invoices
List Customer Invoices
from __future__ import print_function
import time
import billabear
from billabear.rest import ApiException
from pprint import pprint
# Configure API key authorization: ApiKeyAuth
configuration = billabear.Configuration()
configuration.api_key['X-API-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-API-Key'] = 'Bearer'
# create an instance of the API class
api_instance = billabear.CustomersApi(billabear.ApiClient(configuration))
customer_id = 'customer_id_example' # str | The id of the customer to retrieve
try:
# List Customer Invoices
api_response = api_instance.get_invoices_for_customer(customer_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling CustomersApi->get_invoices_for_customer: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
customer_id | str | The id of the customer to retrieve |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InlineResponse2004 get_payments_for_customer(customer_id, limit=limit, last_key=last_key, name=name)
List Customer Payments
List Customer Payment
from __future__ import print_function
import time
import billabear
from billabear.rest import ApiException
from pprint import pprint
# Configure API key authorization: ApiKeyAuth
configuration = billabear.Configuration()
configuration.api_key['X-API-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-API-Key'] = 'Bearer'
# create an instance of the API class
api_instance = billabear.CustomersApi(billabear.ApiClient(configuration))
customer_id = 'customer_id_example' # str | The id of the customer to retrieve
limit = 56 # int | How many items to return at one time (max 100) (optional)
last_key = 'last_key_example' # str | The key to be used in pagination to say what the last key of the previous page was (optional)
name = 'name_example' # str | The name to search for (optional)
try:
# List Customer Payments
api_response = api_instance.get_payments_for_customer(customer_id, limit=limit, last_key=last_key, name=name)
pprint(api_response)
except ApiException as e:
print("Exception when calling CustomersApi->get_payments_for_customer: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
customer_id | str | The id of the customer to retrieve | |
limit | int | How many items to return at one time (max 100) | [optional] |
last_key | str | The key to be used in pagination to say what the last key of the previous page was | [optional] |
name | str | The name to search for | [optional] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InlineResponse2003 get_refunds_for_customer(customer_id, limit=limit, last_key=last_key, name=name)
List Customer Refunds
List Customer Refund
from __future__ import print_function
import time
import billabear
from billabear.rest import ApiException
from pprint import pprint
# Configure API key authorization: ApiKeyAuth
configuration = billabear.Configuration()
configuration.api_key['X-API-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-API-Key'] = 'Bearer'
# create an instance of the API class
api_instance = billabear.CustomersApi(billabear.ApiClient(configuration))
customer_id = 'customer_id_example' # str | The id of the customer to retrieve
limit = 56 # int | How many items to return at one time (max 100) (optional)
last_key = 'last_key_example' # str | The key to be used in pagination to say what the last key of the previous page was (optional)
name = 'name_example' # str | The name to search for (optional)
try:
# List Customer Refunds
api_response = api_instance.get_refunds_for_customer(customer_id, limit=limit, last_key=last_key, name=name)
pprint(api_response)
except ApiException as e:
print("Exception when calling CustomersApi->get_refunds_for_customer: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
customer_id | str | The id of the customer to retrieve | |
limit | int | How many items to return at one time (max 100) | [optional] |
last_key | str | The key to be used in pagination to say what the last key of the previous page was | [optional] |
name | str | The name to search for | [optional] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InlineResponse2007 list_payment_details(customer_id)
List Customer's Payment Details
List all customers
Added in version 1.1
from __future__ import print_function
import time
import billabear
from billabear.rest import ApiException
from pprint import pprint
# Configure API key authorization: ApiKeyAuth
configuration = billabear.Configuration()
configuration.api_key['X-API-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-API-Key'] = 'Bearer'
# create an instance of the API class
api_instance = billabear.CustomersApi(billabear.ApiClient(configuration))
customer_id = 'customer_id_example' # str | The id of the customer to retrieve
try:
# List Customer's Payment Details
api_response = api_instance.list_payment_details(customer_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling CustomersApi->list_payment_details: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
customer_id | str | The id of the customer to retrieve |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InlineResponse20013 remove_seats_subscriptions(body, subscription_id)
Remove Seats
Remove seats to a per seat subscription
Since 1.1.4
from __future__ import print_function
import time
import billabear
from billabear.rest import ApiException
from pprint import pprint
# Configure API key authorization: ApiKeyAuth
configuration = billabear.Configuration()
configuration.api_key['X-API-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-API-Key'] = 'Bearer'
# create an instance of the API class
api_instance = billabear.CustomersApi(billabear.ApiClient(configuration))
body = billabear.SeatsRemoveBody() # SeatsRemoveBody |
subscription_id = 'subscription_id_example' # str | The id of the subscription to retrieve
try:
# Remove Seats
api_response = api_instance.remove_seats_subscriptions(body, subscription_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling CustomersApi->remove_seats_subscriptions: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
body | SeatsRemoveBody | ||
subscription_id | str | The id of the subscription to retrieve |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Customer update_customer(body, customer_id)
Update
Update a customer
from __future__ import print_function
import time
import billabear
from billabear.rest import ApiException
from pprint import pprint
# Configure API key authorization: ApiKeyAuth
configuration = billabear.Configuration()
configuration.api_key['X-API-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-API-Key'] = 'Bearer'
# create an instance of the API class
api_instance = billabear.CustomersApi(billabear.ApiClient(configuration))
body = billabear.Customer() # Customer |
customer_id = 'customer_id_example' # str | The id of the customer to retrieve
try:
# Update
api_response = api_instance.update_customer(body, customer_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling CustomersApi->update_customer: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
body | Customer | ||
customer_id | str | The id of the customer to retrieve |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]