New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

billabear

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

billabear

  • 1.1.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

BillaBear Ruby SDK

Installation

gem install billabear

Getting Started

Please follow the installation procedure and then run the following code:

# Load the gem
require 'billabear'
# Setup authorization
Billabear.configure do |config|
  # Configure API key authorization: ApiKeyAuth
  config.api_key['X-API-Key'] = 'YOUR API KEY'
  config.host = 'YOUR_HOST'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['X-API-Key'] = 'Bearer'
end

api_instance = Billabear::CheckoutApi.new
body = Billabear::CheckoutBody.new # CheckoutBody | 


begin
  #Create Checkout
  result = api_instance.create_checkout(body)
  p result
rescue Billabear::ApiError => e
  puts "Exception when calling CheckoutApi->create_checkout: #{e}"
end
# Setup authorization
Billabear.configure do |config|
  # Configure API key authorization: ApiKeyAuth
  config.api_key['X-API-Key'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['X-API-Key'] = 'Bearer'
end

api_instance = Billabear::CustomersApi.new
body = Billabear::SeatsAddBody.new # SeatsAddBody | 
subscription_id = 'subscription_id_example' # String | The id of the subscription to retrieve


begin
  #Add Seats
  result = api_instance.add_seats_subscriptions(body, subscription_id)
  p result
rescue Billabear::ApiError => e
  puts "Exception when calling CustomersApi->add_seats_subscriptions: #{e}"
end
# Setup authorization
Billabear.configure do |config|
  # Configure API key authorization: ApiKeyAuth
  config.api_key['X-API-Key'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['X-API-Key'] = 'Bearer'
end

api_instance = Billabear::CustomersApi.new
body = Billabear::VoucherCode.new # VoucherCode | 
customer_id = 'customer_id_example' # String | The id of the customer to retrieve


begin
  #Apply voucher
  api_instance.apply_voucher_to_customer(body, customer_id)
rescue Billabear::ApiError => e
  puts "Exception when calling CustomersApi->apply_voucher_to_customer: #{e}"
end
# Setup authorization
Billabear.configure do |config|
  # Configure API key authorization: ApiKeyAuth
  config.api_key['X-API-Key'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['X-API-Key'] = 'Bearer'
end

api_instance = Billabear::CustomersApi.new
body = Billabear::Customer.new # Customer | 


begin
  #Create
  result = api_instance.create_customer(body)
  p result
rescue Billabear::ApiError => e
  puts "Exception when calling CustomersApi->create_customer: #{e}"
end
# Setup authorization
Billabear.configure do |config|
  # Configure API key authorization: ApiKeyAuth
  config.api_key['X-API-Key'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['X-API-Key'] = 'Bearer'
end

api_instance = Billabear::CustomersApi.new
body = Billabear::CustomerIdUasgelimitBody.new # CustomerIdUasgelimitBody | 
customer_id = 'customer_id_example' # String | The id of the customer to retrieve


begin
  #Create Usage Limit
  result = api_instance.create_customer_usage_limit(body, customer_id)
  p result
rescue Billabear::ApiError => e
  puts "Exception when calling CustomersApi->create_customer_usage_limit: #{e}"
end
# Setup authorization
Billabear.configure do |config|
  # Configure API key authorization: ApiKeyAuth
  config.api_key['X-API-Key'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['X-API-Key'] = 'Bearer'
end

api_instance = Billabear::CustomersApi.new
customer_id = 'customer_id_example' # String | The id of the customer to retrieve
usage_limit_id = 'usage_limit_id_example' # String | The id of the usage limit


begin
  #Delete Usage Limit
  api_instance.customer_customer_id_uasge_limit_limit_id_delete(customer_id, usage_limit_id)
rescue Billabear::ApiError => e
  puts "Exception when calling CustomersApi->customer_customer_id_uasge_limit_limit_id_delete: #{e}"
end
# Setup authorization
Billabear.configure do |config|
  # Configure API key authorization: ApiKeyAuth
  config.api_key['X-API-Key'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['X-API-Key'] = 'Bearer'
end

api_instance = Billabear::CustomersApi.new
customer_id = 'customer_id_example' # String | The id of the customer to retrieve


begin
  #Disable Customer
  api_instance.disable_customer(customer_id)
rescue Billabear::ApiError => e
  puts "Exception when calling CustomersApi->disable_customer: #{e}"
end
# Setup authorization
Billabear.configure do |config|
  # Configure API key authorization: ApiKeyAuth
  config.api_key['X-API-Key'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['X-API-Key'] = 'Bearer'
end

api_instance = Billabear::CustomersApi.new
customer_id = 'customer_id_example' # String | The id of the customer to retrieve


begin
  #Enable Customer
  api_instance.enable_customer(customer_id)
rescue Billabear::ApiError => e
  puts "Exception when calling CustomersApi->enable_customer: #{e}"
end
# Setup authorization
Billabear.configure do |config|
  # Configure API key authorization: ApiKeyAuth
  config.api_key['X-API-Key'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['X-API-Key'] = 'Bearer'
end

api_instance = Billabear::CustomersApi.new
customer_id = 'customer_id_example' # String | The id of the customer to retrieve


begin
  #List Customer Active Subscriptions
  result = api_instance.get_active_for_customer(customer_id)
  p result
rescue Billabear::ApiError => e
  puts "Exception when calling CustomersApi->get_active_for_customer: #{e}"
end
# Setup authorization
Billabear.configure do |config|
  # Configure API key authorization: ApiKeyAuth
  config.api_key['X-API-Key'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['X-API-Key'] = 'Bearer'
end

api_instance = Billabear::CustomersApi.new
opts = { 
  limit: 56, # Integer | How many items to return at one time (max 100)
  last_key: 'last_key_example', # String | The key to be used in pagination to say what the last key of the previous page was
  email: 'email_example', # String | The email to search for
  country: 'country_example', # String | The country code to search for
  reference: 'reference_example', # String | The reference to search for
  external_reference: 'external_reference_example', # String | The external reference to search for
  company_name: 'company_name_example' # String | The company name to search for
}

begin
  #List
  result = api_instance.get_all_customers(opts)
  p result
rescue Billabear::ApiError => e
  puts "Exception when calling CustomersApi->get_all_customers: #{e}"
end
# Setup authorization
Billabear.configure do |config|
  # Configure API key authorization: ApiKeyAuth
  config.api_key['X-API-Key'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['X-API-Key'] = 'Bearer'
end

api_instance = Billabear::CustomersApi.new
customer_id = 'customer_id_example' # String | The id of the customer to retrieve


begin
  #Detail
  result = api_instance.get_customer_by_id(customer_id)
  p result
rescue Billabear::ApiError => e
  puts "Exception when calling CustomersApi->get_customer_by_id: #{e}"
end
# Setup authorization
Billabear.configure do |config|
  # Configure API key authorization: ApiKeyAuth
  config.api_key['X-API-Key'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['X-API-Key'] = 'Bearer'
end

api_instance = Billabear::CustomersApi.new
customer_id = 'customer_id_example' # String | The id of the customer to retrieve


begin
  #Usage Cost Estimate
  result = api_instance.get_customer_costs(customer_id)
  p result
rescue Billabear::ApiError => e
  puts "Exception when calling CustomersApi->get_customer_costs: #{e}"
end
# Setup authorization
Billabear.configure do |config|
  # Configure API key authorization: ApiKeyAuth
  config.api_key['X-API-Key'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['X-API-Key'] = 'Bearer'
end

api_instance = Billabear::CustomersApi.new
customer_id = 'customer_id_example' # String | The id of the customer to retrieve


begin
  #Fetch Customer Limits
  result = api_instance.get_customer_limits_by_id(customer_id)
  p result
rescue Billabear::ApiError => e
  puts "Exception when calling CustomersApi->get_customer_limits_by_id: #{e}"
end
# Setup authorization
Billabear.configure do |config|
  # Configure API key authorization: ApiKeyAuth
  config.api_key['X-API-Key'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['X-API-Key'] = 'Bearer'
end

api_instance = Billabear::CustomersApi.new
customer_id = 'customer_id_example' # String | The id of the customer to retrieve


begin
  #Fetch Customer Usage Limits
  result = api_instance.get_customer_usage_limits_by_id(customer_id)
  p result
rescue Billabear::ApiError => e
  puts "Exception when calling CustomersApi->get_customer_usage_limits_by_id: #{e}"
end
# Setup authorization
Billabear.configure do |config|
  # Configure API key authorization: ApiKeyAuth
  config.api_key['X-API-Key'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['X-API-Key'] = 'Bearer'
end

api_instance = Billabear::CustomersApi.new
customer_id = 'customer_id_example' # String | The id of the customer to retrieve


begin
  #List Customer Subscriptions
  result = api_instance.get_for_customer(customer_id)
  p result
rescue Billabear::ApiError => e
  puts "Exception when calling CustomersApi->get_for_customer: #{e}"
end
# Setup authorization
Billabear.configure do |config|
  # Configure API key authorization: ApiKeyAuth
  config.api_key['X-API-Key'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['X-API-Key'] = 'Bearer'
end

api_instance = Billabear::CustomersApi.new
customer_id = 'customer_id_example' # String | The id of the customer to retrieve


begin
  #List Customer Invoices
  result = api_instance.get_invoices_for_customer(customer_id)
  p result
rescue Billabear::ApiError => e
  puts "Exception when calling CustomersApi->get_invoices_for_customer: #{e}"
end
# Setup authorization
Billabear.configure do |config|
  # Configure API key authorization: ApiKeyAuth
  config.api_key['X-API-Key'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['X-API-Key'] = 'Bearer'
end

api_instance = Billabear::CustomersApi.new
customer_id = 'customer_id_example' # String | The id of the customer to retrieve
opts = { 
  limit: 56, # Integer | How many items to return at one time (max 100)
  last_key: 'last_key_example', # String | The key to be used in pagination to say what the last key of the previous page was
  name: 'name_example' # String | The name to search for
}

begin
  #List Customer Payments
  result = api_instance.get_payments_for_customer(customer_id, opts)
  p result
rescue Billabear::ApiError => e
  puts "Exception when calling CustomersApi->get_payments_for_customer: #{e}"
end
# Setup authorization
Billabear.configure do |config|
  # Configure API key authorization: ApiKeyAuth
  config.api_key['X-API-Key'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['X-API-Key'] = 'Bearer'
end

api_instance = Billabear::CustomersApi.new
customer_id = 'customer_id_example' # String | The id of the customer to retrieve
opts = { 
  limit: 56, # Integer | How many items to return at one time (max 100)
  last_key: 'last_key_example', # String | The key to be used in pagination to say what the last key of the previous page was
  name: 'name_example' # String | The name to search for
}

begin
  #List Customer Refunds
  result = api_instance.get_refunds_for_customer(customer_id, opts)
  p result
rescue Billabear::ApiError => e
  puts "Exception when calling CustomersApi->get_refunds_for_customer: #{e}"
end
# Setup authorization
Billabear.configure do |config|
  # Configure API key authorization: ApiKeyAuth
  config.api_key['X-API-Key'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['X-API-Key'] = 'Bearer'
end

api_instance = Billabear::CustomersApi.new
customer_id = 'customer_id_example' # String | The id of the customer to retrieve


begin
  #List Customer's Payment Details
  result = api_instance.list_payment_details(customer_id)
  p result
rescue Billabear::ApiError => e
  puts "Exception when calling CustomersApi->list_payment_details: #{e}"
end
# Setup authorization
Billabear.configure do |config|
  # Configure API key authorization: ApiKeyAuth
  config.api_key['X-API-Key'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['X-API-Key'] = 'Bearer'
end

api_instance = Billabear::CustomersApi.new
body = Billabear::SeatsRemoveBody.new # SeatsRemoveBody | 
subscription_id = 'subscription_id_example' # String | The id of the subscription to retrieve


begin
  #Remove Seats
  result = api_instance.remove_seats_subscriptions(body, subscription_id)
  p result
rescue Billabear::ApiError => e
  puts "Exception when calling CustomersApi->remove_seats_subscriptions: #{e}"
end
# Setup authorization
Billabear.configure do |config|
  # Configure API key authorization: ApiKeyAuth
  config.api_key['X-API-Key'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['X-API-Key'] = 'Bearer'
end

api_instance = Billabear::CustomersApi.new
body = Billabear::Customer.new # Customer | 
customer_id = 'customer_id_example' # String | The id of the customer to retrieve


begin
  #Update
  result = api_instance.update_customer(body, customer_id)
  p result
rescue Billabear::ApiError => e
  puts "Exception when calling CustomersApi->update_customer: #{e}"
end
# Setup authorization
Billabear.configure do |config|
  # Configure API key authorization: ApiKeyAuth
  config.api_key['X-API-Key'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['X-API-Key'] = 'Bearer'
end

api_instance = Billabear::InvoicesApi.new
invoice_id = 'invoice_id_example' # String | The id of the invoice


begin
  #Charge Invoice
  result = api_instance.charge_invoice(invoice_id)
  p result
rescue Billabear::ApiError => e
  puts "Exception when calling InvoicesApi->charge_invoice: #{e}"
end
# Setup authorization
Billabear.configure do |config|
  # Configure API key authorization: ApiKeyAuth
  config.api_key['X-API-Key'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['X-API-Key'] = 'Bearer'
end

api_instance = Billabear::InvoicesApi.new
invoice_id = 'invoice_id_example' # String | The id of the invoice


begin
  #Download Invoice
  result = api_instance.download_invoice(invoice_id)
  p result
rescue Billabear::ApiError => e
  puts "Exception when calling InvoicesApi->download_invoice: #{e}"
end
# Setup authorization
Billabear.configure do |config|
  # Configure API key authorization: ApiKeyAuth
  config.api_key['X-API-Key'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['X-API-Key'] = 'Bearer'
end

api_instance = Billabear::InvoicesApi.new
customer_id = 'customer_id_example' # String | The id of the customer to retrieve


begin
  #List Customer Invoices
  result = api_instance.get_invoices_for_customer(customer_id)
  p result
rescue Billabear::ApiError => e
  puts "Exception when calling InvoicesApi->get_invoices_for_customer: #{e}"
end
# Setup authorization
Billabear.configure do |config|
  # Configure API key authorization: ApiKeyAuth
  config.api_key['X-API-Key'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['X-API-Key'] = 'Bearer'
end

api_instance = Billabear::PaymentDetailsApi.new
body = Billabear::FrontendToken.new # FrontendToken | 
customer_id = 'customer_id_example' # String | The id of the customer to retrieve


begin
  #Complete Frontend Detail Collection
  result = api_instance.complete_frontend_payment_details(body, customer_id)
  p result
rescue Billabear::ApiError => e
  puts "Exception when calling PaymentDetailsApi->complete_frontend_payment_details: #{e}"
end
# Setup authorization
Billabear.configure do |config|
  # Configure API key authorization: ApiKeyAuth
  config.api_key['X-API-Key'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['X-API-Key'] = 'Bearer'
end

api_instance = Billabear::PaymentDetailsApi.new
payment_details_id = 'payment_details_id_example' # String | The id of the payment details


begin
  #Delete
  api_instance.delete_payment_details(payment_details_id)
rescue Billabear::ApiError => e
  puts "Exception when calling PaymentDetailsApi->delete_payment_details: #{e}"
end
# Setup authorization
Billabear.configure do |config|
  # Configure API key authorization: ApiKeyAuth
  config.api_key['X-API-Key'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['X-API-Key'] = 'Bearer'
end

api_instance = Billabear::PaymentDetailsApi.new
customer_id = 'customer_id_example' # String | The id of the customer to retrieve
payment_details_id = 'payment_details_id_example' # String | The id of the payment details


begin
  #Delete With Customer
  api_instance.delete_payment_details_customer(customer_id, payment_details_id)
rescue Billabear::ApiError => e
  puts "Exception when calling PaymentDetailsApi->delete_payment_details_customer: #{e}"
end
# Setup authorization
Billabear.configure do |config|
  # Configure API key authorization: ApiKeyAuth
  config.api_key['X-API-Key'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['X-API-Key'] = 'Bearer'
end

api_instance = Billabear::PaymentDetailsApi.new
payment_details_id = 'payment_details_id_example' # String | The id of the payment details


begin
  #Fetch
  result = api_instance.get_payment_details(payment_details_id)
  p result
rescue Billabear::ApiError => e
  puts "Exception when calling PaymentDetailsApi->get_payment_details: #{e}"
end
# Setup authorization
Billabear.configure do |config|
  # Configure API key authorization: ApiKeyAuth
  config.api_key['X-API-Key'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['X-API-Key'] = 'Bearer'
end

api_instance = Billabear::PaymentDetailsApi.new
customer_id = 'customer_id_example' # String | The id of the customer to retrieve


begin
  #List Customer's Payment Details
  result = api_instance.list_payment_details(customer_id)
  p result
rescue Billabear::ApiError => e
  puts "Exception when calling PaymentDetailsApi->list_payment_details: #{e}"
end
# Setup authorization
Billabear.configure do |config|
  # Configure API key authorization: ApiKeyAuth
  config.api_key['X-API-Key'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['X-API-Key'] = 'Bearer'
end

api_instance = Billabear::PaymentDetailsApi.new
customer_id = 'customer_id_example' # String | The id of the customer to retrieve
payment_details_id = 'payment_details_id_example' # String | The id of the payment details


begin
  #Make Default
  api_instance.make_default_payment_details(customer_id, payment_details_id)
rescue Billabear::ApiError => e
  puts "Exception when calling PaymentDetailsApi->make_default_payment_details: #{e}"
end
# Setup authorization
Billabear.configure do |config|
  # Configure API key authorization: ApiKeyAuth
  config.api_key['X-API-Key'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['X-API-Key'] = 'Bearer'
end

api_instance = Billabear::PaymentDetailsApi.new
customer_id = 'customer_id_example' # String | The id of the customer to retrieve
payment_details_id = 'payment_details_id_example' # String | The id of the payment details


begin
  #Make Default With Customer
  api_instance.make_default_payment_details_customer(customer_id, payment_details_id)
rescue Billabear::ApiError => e
  puts "Exception when calling PaymentDetailsApi->make_default_payment_details_customer: #{e}"
end
# Setup authorization
Billabear.configure do |config|
  # Configure API key authorization: ApiKeyAuth
  config.api_key['X-API-Key'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['X-API-Key'] = 'Bearer'
end

api_instance = Billabear::PaymentDetailsApi.new
customer_id = 'customer_id_example' # String | The id of the customer to retrieve


begin
  #Start Frontend Detail Collection
  result = api_instance.start_frontend_payment_details(customer_id)
  p result
rescue Billabear::ApiError => e
  puts "Exception when calling PaymentDetailsApi->start_frontend_payment_details: #{e}"
end
# Setup authorization
Billabear.configure do |config|
  # Configure API key authorization: ApiKeyAuth
  config.api_key['X-API-Key'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['X-API-Key'] = 'Bearer'
end

api_instance = Billabear::PaymentsApi.new
invoice_id = 'invoice_id_example' # String | The id of the invoice


begin
  #Charge Invoice
  result = api_instance.charge_invoice(invoice_id)
  p result
rescue Billabear::ApiError => e
  puts "Exception when calling PaymentsApi->charge_invoice: #{e}"
end
# Setup authorization
Billabear.configure do |config|
  # Configure API key authorization: ApiKeyAuth
  config.api_key['X-API-Key'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['X-API-Key'] = 'Bearer'
end

api_instance = Billabear::PaymentsApi.new
invoice_id = 'invoice_id_example' # String | The id of the invoice


begin
  #Download Invoice
  result = api_instance.download_invoice(invoice_id)
  p result
rescue Billabear::ApiError => e
  puts "Exception when calling PaymentsApi->download_invoice: #{e}"
end
# Setup authorization
Billabear.configure do |config|
  # Configure API key authorization: ApiKeyAuth
  config.api_key['X-API-Key'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['X-API-Key'] = 'Bearer'
end

api_instance = Billabear::PaymentsApi.new
receipt = 'receipt_example' # String | The id of the receipt


begin
  #Download Receipt
  result = api_instance.download_receipt(receipt)
  p result
rescue Billabear::ApiError => e
  puts "Exception when calling PaymentsApi->download_receipt: #{e}"
end
# Setup authorization
Billabear.configure do |config|
  # Configure API key authorization: ApiKeyAuth
  config.api_key['X-API-Key'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['X-API-Key'] = 'Bearer'
end

api_instance = Billabear::PaymentsApi.new
customer_id = 'customer_id_example' # String | The id of the customer to retrieve


begin
  #List Customer Invoices
  result = api_instance.get_invoices_for_customer(customer_id)
  p result
rescue Billabear::ApiError => e
  puts "Exception when calling PaymentsApi->get_invoices_for_customer: #{e}"
end
# Setup authorization
Billabear.configure do |config|
  # Configure API key authorization: ApiKeyAuth
  config.api_key['X-API-Key'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['X-API-Key'] = 'Bearer'
end

api_instance = Billabear::PaymentsApi.new
customer_id = 'customer_id_example' # String | The id of the customer to retrieve
opts = { 
  limit: 56, # Integer | How many items to return at one time (max 100)
  last_key: 'last_key_example', # String | The key to be used in pagination to say what the last key of the previous page was
  name: 'name_example' # String | The name to search for
}

begin
  #List Customer Payments
  result = api_instance.get_payments_for_customer(customer_id, opts)
  p result
rescue Billabear::ApiError => e
  puts "Exception when calling PaymentsApi->get_payments_for_customer: #{e}"
end
# Setup authorization
Billabear.configure do |config|
  # Configure API key authorization: ApiKeyAuth
  config.api_key['X-API-Key'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['X-API-Key'] = 'Bearer'
end

api_instance = Billabear::PaymentsApi.new
opts = { 
  limit: 56, # Integer | How many items to return at one time (max 100)
  last_key: 'last_key_example', # String | The key to be used in pagination to say what the last key of the previous page was
  name: 'name_example' # String | The name to search for
}

begin
  #List
  result = api_instance.list_payment(opts)
  p result
rescue Billabear::ApiError => e
  puts "Exception when calling PaymentsApi->list_payment: #{e}"
end
# Setup authorization
Billabear.configure do |config|
  # Configure API key authorization: ApiKeyAuth
  config.api_key['X-API-Key'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['X-API-Key'] = 'Bearer'
end

api_instance = Billabear::PaymentsApi.new
body = Billabear::IssueRefundPayment.new # IssueRefundPayment | 
payment_id = 'payment_id_example' # String | The id of the payment


begin
  #Refund Payment
  api_instance.refund_payment(body, payment_id)
rescue Billabear::ApiError => e
  puts "Exception when calling PaymentsApi->refund_payment: #{e}"
end
# Setup authorization
Billabear.configure do |config|
  # Configure API key authorization: ApiKeyAuth
  config.api_key['X-API-Key'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['X-API-Key'] = 'Bearer'
end

api_instance = Billabear::PricesApi.new
body = Billabear::Price.new # Price | 
product_id = 'product_id_example' # String | The id of the product to retrieve


begin
  #Create
  api_instance.create_price(body, product_id)
rescue Billabear::ApiError => e
  puts "Exception when calling PricesApi->create_price: #{e}"
end
# Setup authorization
Billabear.configure do |config|
  # Configure API key authorization: ApiKeyAuth
  config.api_key['X-API-Key'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['X-API-Key'] = 'Bearer'
end

api_instance = Billabear::PricesApi.new
product_id = 'product_id_example' # String | The id of the product to retrieve
opts = { 
  limit: 56, # Integer | How many items to return at one time (max 100)
  last_key: 'last_key_example' # String | The key to be used in pagination to say what the last key of the previous page was
}

begin
  #List
  result = api_instance.list_price(product_id, opts)
  p result
rescue Billabear::ApiError => e
  puts "Exception when calling PricesApi->list_price: #{e}"
end
# Setup authorization
Billabear.configure do |config|
  # Configure API key authorization: ApiKeyAuth
  config.api_key['X-API-Key'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['X-API-Key'] = 'Bearer'
end

api_instance = Billabear::ProductsApi.new
body = Billabear::Product.new # Product | 


begin
  #Create
  api_instance.create_product(body)
rescue Billabear::ApiError => e
  puts "Exception when calling ProductsApi->create_product: #{e}"
end
# Setup authorization
Billabear.configure do |config|
  # Configure API key authorization: ApiKeyAuth
  config.api_key['X-API-Key'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['X-API-Key'] = 'Bearer'
end

api_instance = Billabear::ProductsApi.new
opts = { 
  limit: 56, # Integer | How many items to return at one time (max 100)
  last_key: 'last_key_example', # String | The key to be used in pagination to say what the last key of the previous page was
  name: 'name_example' # String | The name to search for
}

begin
  #List
  result = api_instance.list_product(opts)
  p result
rescue Billabear::ApiError => e
  puts "Exception when calling ProductsApi->list_product: #{e}"
end
# Setup authorization
Billabear.configure do |config|
  # Configure API key authorization: ApiKeyAuth
  config.api_key['X-API-Key'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['X-API-Key'] = 'Bearer'
end

api_instance = Billabear::ProductsApi.new
product_id = 'product_id_example' # String | The id of the product to retrieve


begin
  #Detail
  result = api_instance.show_product_by_id(product_id)
  p result
rescue Billabear::ApiError => e
  puts "Exception when calling ProductsApi->show_product_by_id: #{e}"
end
# Setup authorization
Billabear.configure do |config|
  # Configure API key authorization: ApiKeyAuth
  config.api_key['X-API-Key'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['X-API-Key'] = 'Bearer'
end

api_instance = Billabear::ProductsApi.new
product_id = 'product_id_example' # String | The id of the product to retrieve


begin
  #Update
  result = api_instance.update_product(product_id)
  p result
rescue Billabear::ApiError => e
  puts "Exception when calling ProductsApi->update_product: #{e}"
end
# Setup authorization
Billabear.configure do |config|
  # Configure API key authorization: ApiKeyAuth
  config.api_key['X-API-Key'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['X-API-Key'] = 'Bearer'
end

api_instance = Billabear::ReceiptApi.new
receipt = 'receipt_example' # String | The id of the receipt


begin
  #Download Receipt
  result = api_instance.download_receipt(receipt)
  p result
rescue Billabear::ApiError => e
  puts "Exception when calling ReceiptApi->download_receipt: #{e}"
end
# Setup authorization
Billabear.configure do |config|
  # Configure API key authorization: ApiKeyAuth
  config.api_key['X-API-Key'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['X-API-Key'] = 'Bearer'
end

api_instance = Billabear::RefundsApi.new
customer_id = 'customer_id_example' # String | The id of the customer to retrieve
opts = { 
  limit: 56, # Integer | How many items to return at one time (max 100)
  last_key: 'last_key_example', # String | The key to be used in pagination to say what the last key of the previous page was
  name: 'name_example' # String | The name to search for
}

begin
  #List Customer Refunds
  result = api_instance.get_refunds_for_customer(customer_id, opts)
  p result
rescue Billabear::ApiError => e
  puts "Exception when calling RefundsApi->get_refunds_for_customer: #{e}"
end
# Setup authorization
Billabear.configure do |config|
  # Configure API key authorization: ApiKeyAuth
  config.api_key['X-API-Key'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['X-API-Key'] = 'Bearer'
end

api_instance = Billabear::RefundsApi.new
opts = { 
  limit: 56, # Integer | How many items to return at one time (max 100)
  last_key: 'last_key_example', # String | The key to be used in pagination to say what the last key of the previous page was
  name: 'name_example' # String | The name to search for
}

begin
  #List
  result = api_instance.list_refund(opts)
  p result
rescue Billabear::ApiError => e
  puts "Exception when calling RefundsApi->list_refund: #{e}"
end
# Setup authorization
Billabear.configure do |config|
  # Configure API key authorization: ApiKeyAuth
  config.api_key['X-API-Key'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['X-API-Key'] = 'Bearer'
end

api_instance = Billabear::RefundsApi.new
refund_id = 'refund_id_example' # String | The id of the refund


begin
  #Detail
  result = api_instance.show_refund_by_id(refund_id)
  p result
rescue Billabear::ApiError => e
  puts "Exception when calling RefundsApi->show_refund_by_id: #{e}"
end
# Setup authorization
Billabear.configure do |config|
  # Configure API key authorization: ApiKeyAuth
  config.api_key['X-API-Key'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['X-API-Key'] = 'Bearer'
end

api_instance = Billabear::SubscriptionsApi.new
body = Billabear::SeatsAddBody.new # SeatsAddBody | 
subscription_id = 'subscription_id_example' # String | The id of the subscription to retrieve


begin
  #Add Seats
  result = api_instance.add_seats_subscriptions(body, subscription_id)
  p result
rescue Billabear::ApiError => e
  puts "Exception when calling SubscriptionsApi->add_seats_subscriptions: #{e}"
end
# Setup authorization
Billabear.configure do |config|
  # Configure API key authorization: ApiKeyAuth
  config.api_key['X-API-Key'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['X-API-Key'] = 'Bearer'
end

api_instance = Billabear::SubscriptionsApi.new
body = Billabear::SubscriptionIdCancelBody.new # SubscriptionIdCancelBody | 
subscription_id = 'subscription_id_example' # String | The id of the subscription to retrieve


begin
  #Cancel Subscription
  api_instance.cancel_subscription(body, subscription_id)
rescue Billabear::ApiError => e
  puts "Exception when calling SubscriptionsApi->cancel_subscription: #{e}"
end
# Setup authorization
Billabear.configure do |config|
  # Configure API key authorization: ApiKeyAuth
  config.api_key['X-API-Key'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['X-API-Key'] = 'Bearer'
end

api_instance = Billabear::SubscriptionsApi.new
body = Billabear::SubscriptionIdPriceBody.new # SubscriptionIdPriceBody | 
subscription_id = 'subscription_id_example' # String | The id of the subscription to retrieve


begin
  #Change Price
  result = api_instance.change_subscription_price(body, subscription_id)
  p result
rescue Billabear::ApiError => e
  puts "Exception when calling SubscriptionsApi->change_subscription_price: #{e}"
end
# Setup authorization
Billabear.configure do |config|
  # Configure API key authorization: ApiKeyAuth
  config.api_key['X-API-Key'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['X-API-Key'] = 'Bearer'
end

api_instance = Billabear::SubscriptionsApi.new
body = Billabear::SubscriptionStartBody.new # SubscriptionStartBody | 
customer_id = 'customer_id_example' # String | The id of the customer to retrieve


begin
  #Create Subscription
  result = api_instance.create_subscription(body, customer_id)
  p result
rescue Billabear::ApiError => e
  puts "Exception when calling SubscriptionsApi->create_subscription: #{e}"
end
# Setup authorization
Billabear.configure do |config|
  # Configure API key authorization: ApiKeyAuth
  config.api_key['X-API-Key'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['X-API-Key'] = 'Bearer'
end

api_instance = Billabear::SubscriptionsApi.new
body = Billabear::SubscriptionIdPlanBody.new # SubscriptionIdPlanBody | 
subscription_id = 'subscription_id_example' # String | The id of the subscription to retrieve


begin
  #Change Subscription Plan
  result = api_instance.customer_change_subscription_plan(body, subscription_id)
  p result
rescue Billabear::ApiError => e
  puts "Exception when calling SubscriptionsApi->customer_change_subscription_plan: #{e}"
end
# Setup authorization
Billabear.configure do |config|
  # Configure API key authorization: ApiKeyAuth
  config.api_key['X-API-Key'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['X-API-Key'] = 'Bearer'
end

api_instance = Billabear::SubscriptionsApi.new
body = Billabear::SubscriptionIdExtendBody.new # SubscriptionIdExtendBody | 
subscription_id = 'subscription_id_example' # String | The id of the subscription to retrieve


begin
  #Extend Trial Subscription
  result = api_instance.extend_trial(body, subscription_id)
  p result
rescue Billabear::ApiError => e
  puts "Exception when calling SubscriptionsApi->extend_trial: #{e}"
end
# Setup authorization
Billabear.configure do |config|
  # Configure API key authorization: ApiKeyAuth
  config.api_key['X-API-Key'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['X-API-Key'] = 'Bearer'
end

api_instance = Billabear::SubscriptionsApi.new
customer_id = 'customer_id_example' # String | The id of the customer to retrieve


begin
  #List Customer Active Subscriptions
  result = api_instance.get_active_for_customer(customer_id)
  p result
rescue Billabear::ApiError => e
  puts "Exception when calling SubscriptionsApi->get_active_for_customer: #{e}"
end
# Setup authorization
Billabear.configure do |config|
  # Configure API key authorization: ApiKeyAuth
  config.api_key['X-API-Key'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['X-API-Key'] = 'Bearer'
end

api_instance = Billabear::SubscriptionsApi.new
customer_id = 'customer_id_example' # String | The id of the customer to retrieve


begin
  #List Customer Subscriptions
  result = api_instance.get_for_customer(customer_id)
  p result
rescue Billabear::ApiError => e
  puts "Exception when calling SubscriptionsApi->get_for_customer: #{e}"
end
# Setup authorization
Billabear.configure do |config|
  # Configure API key authorization: ApiKeyAuth
  config.api_key['X-API-Key'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['X-API-Key'] = 'Bearer'
end

api_instance = Billabear::SubscriptionsApi.new
opts = { 
  limit: 56, # Integer | How many items to return at one time (max 100)
  last_key: 'last_key_example' # String | The key to be used in pagination to say what the last key of the previous page was
}

begin
  #List Subscription Plans
  result = api_instance.list_subscription_plans(opts)
  p result
rescue Billabear::ApiError => e
  puts "Exception when calling SubscriptionsApi->list_subscription_plans: #{e}"
end
# Setup authorization
Billabear.configure do |config|
  # Configure API key authorization: ApiKeyAuth
  config.api_key['X-API-Key'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['X-API-Key'] = 'Bearer'
end

api_instance = Billabear::SubscriptionsApi.new
opts = { 
  limit: 56, # Integer | How many items to return at one time (max 100)
  last_key: 'last_key_example' # String | The key to be used in pagination to say what the last key of the previous page was
}

begin
  #List
  result = api_instance.list_subscriptions(opts)
  p result
rescue Billabear::ApiError => e
  puts "Exception when calling SubscriptionsApi->list_subscriptions: #{e}"
end
# Setup authorization
Billabear.configure do |config|
  # Configure API key authorization: ApiKeyAuth
  config.api_key['X-API-Key'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['X-API-Key'] = 'Bearer'
end

api_instance = Billabear::SubscriptionsApi.new
body = Billabear::SeatsRemoveBody.new # SeatsRemoveBody | 
subscription_id = 'subscription_id_example' # String | The id of the subscription to retrieve


begin
  #Remove Seats
  result = api_instance.remove_seats_subscriptions(body, subscription_id)
  p result
rescue Billabear::ApiError => e
  puts "Exception when calling SubscriptionsApi->remove_seats_subscriptions: #{e}"
end
# Setup authorization
Billabear.configure do |config|
  # Configure API key authorization: ApiKeyAuth
  config.api_key['X-API-Key'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['X-API-Key'] = 'Bearer'
end

api_instance = Billabear::SubscriptionsApi.new
subscription_id = 'subscription_id_example' # String | The id of the subscription to retrieve


begin
  #Detail
  result = api_instance.show_subscription_by_id(subscription_id)
  p result
rescue Billabear::ApiError => e
  puts "Exception when calling SubscriptionsApi->show_subscription_by_id: #{e}"
end
# Setup authorization
Billabear.configure do |config|
  # Configure API key authorization: ApiKeyAuth
  config.api_key['X-API-Key'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['X-API-Key'] = 'Bearer'
end

api_instance = Billabear::SubscriptionsApi.new
body = Billabear::SubscriptionTrialBody.new # SubscriptionTrialBody | 
customer_id = 'customer_id_example' # String | The id of the customer to retrieve


begin
  #Start Trial Subscription For Customer
  result = api_instance.start_trial(body, customer_id)
  p result
rescue Billabear::ApiError => e
  puts "Exception when calling SubscriptionsApi->start_trial: #{e}"
end
# Setup authorization
Billabear.configure do |config|
  # Configure API key authorization: ApiKeyAuth
  config.api_key['X-API-Key'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['X-API-Key'] = 'Bearer'
end

api_instance = Billabear::UsageApi.new
body = Billabear::CustomerIdUasgelimitBody.new # CustomerIdUasgelimitBody | 
customer_id = 'customer_id_example' # String | The id of the customer to retrieve


begin
  #Create Usage Limit
  result = api_instance.create_customer_usage_limit(body, customer_id)
  p result
rescue Billabear::ApiError => e
  puts "Exception when calling UsageApi->create_customer_usage_limit: #{e}"
end
# Setup authorization
Billabear.configure do |config|
  # Configure API key authorization: ApiKeyAuth
  config.api_key['X-API-Key'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['X-API-Key'] = 'Bearer'
end

api_instance = Billabear::UsageApi.new
body = Billabear::Event.new # Event | 


begin
  #Create Event
  api_instance.create_event(body)
rescue Billabear::ApiError => e
  puts "Exception when calling UsageApi->create_event: #{e}"
end
# Setup authorization
Billabear.configure do |config|
  # Configure API key authorization: ApiKeyAuth
  config.api_key['X-API-Key'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['X-API-Key'] = 'Bearer'
end

api_instance = Billabear::UsageApi.new
customer_id = 'customer_id_example' # String | The id of the customer to retrieve
usage_limit_id = 'usage_limit_id_example' # String | The id of the usage limit


begin
  #Delete Usage Limit
  api_instance.customer_customer_id_uasge_limit_limit_id_delete(customer_id, usage_limit_id)
rescue Billabear::ApiError => e
  puts "Exception when calling UsageApi->customer_customer_id_uasge_limit_limit_id_delete: #{e}"
end
# Setup authorization
Billabear.configure do |config|
  # Configure API key authorization: ApiKeyAuth
  config.api_key['X-API-Key'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['X-API-Key'] = 'Bearer'
end

api_instance = Billabear::UsageApi.new
customer_id = 'customer_id_example' # String | The id of the customer to retrieve


begin
  #Usage Cost Estimate
  result = api_instance.get_customer_costs(customer_id)
  p result
rescue Billabear::ApiError => e
  puts "Exception when calling UsageApi->get_customer_costs: #{e}"
end
# Setup authorization
Billabear.configure do |config|
  # Configure API key authorization: ApiKeyAuth
  config.api_key['X-API-Key'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['X-API-Key'] = 'Bearer'
end

api_instance = Billabear::UsageApi.new
customer_id = 'customer_id_example' # String | The id of the customer to retrieve


begin
  #Fetch Customer Usage Limits
  result = api_instance.get_customer_usage_limits_by_id(customer_id)
  p result
rescue Billabear::ApiError => e
  puts "Exception when calling UsageApi->get_customer_usage_limits_by_id: #{e}"
end

Documentation for API Endpoints

All URIs are relative to https://{customerId}.billabear.cloud/api/v1

ClassMethodHTTP requestDescription
Billabear::CheckoutApicreate_checkoutPOST /checkoutCreate Checkout
Billabear::CustomersApiadd_seats_subscriptionsPOST /subscription/{subscriptionId}/seats/addAdd Seats
Billabear::CustomersApiapply_voucher_to_customerPOST /customer/{customerId}/voucherApply voucher
Billabear::CustomersApicreate_customerPOST /customerCreate
Billabear::CustomersApicreate_customer_usage_limitPOST /customer/{customerId}/uasge-limitCreate Usage Limit
Billabear::CustomersApicustomer_customer_id_uasge_limit_limit_id_deleteDELETE /customer/{customerId}/uasge-limit/{limitId}Delete Usage Limit
Billabear::CustomersApidisable_customerPOST /customer/{customerId}/disableDisable Customer
Billabear::CustomersApienable_customerPOST /customer/{customerId}/enableEnable Customer
Billabear::CustomersApiget_active_for_customerGET /customer/{customerId}/subscription/activeList Customer Active Subscriptions
Billabear::CustomersApiget_all_customersGET /customerList
Billabear::CustomersApiget_customer_by_idGET /customer/{customerId}Detail
Billabear::CustomersApiget_customer_costsGET /customer/{customerId}/costsUsage Cost Estimate
Billabear::CustomersApiget_customer_limits_by_idGET /customer/{customerId}/limitsFetch Customer Limits
Billabear::CustomersApiget_customer_usage_limits_by_idGET /customer/{customerId}/uasge-limitFetch Customer Usage Limits
Billabear::CustomersApiget_for_customerGET /customer/{customerId}/subscriptionList Customer Subscriptions
Billabear::CustomersApiget_invoices_for_customerGET /customer/{customerId}/invoicesList Customer Invoices
Billabear::CustomersApiget_payments_for_customerGET /customer/{customerId}/paymentList Customer Payments
Billabear::CustomersApiget_refunds_for_customerGET /customer/{customerId}/refundList Customer Refunds
Billabear::CustomersApilist_payment_detailsGET /customer/{customerId}/payment-methodsList Customer's Payment Details
Billabear::CustomersApiremove_seats_subscriptionsPOST /subscription/{subscriptionId}/seats/removeRemove Seats
Billabear::CustomersApiupdate_customerPUT /customer/{customerId}Update
Billabear::InvoicesApicharge_invoicePOST /invoice/{invoiceId}/chargeCharge Invoice
Billabear::InvoicesApidownload_invoiceGET /invoice/{invoiceId}/downloadDownload Invoice
Billabear::InvoicesApiget_invoices_for_customerGET /customer/{customerId}/invoicesList Customer Invoices
Billabear::PaymentDetailsApicomplete_frontend_payment_detailsPOST /customer/{customerId}/payment-methods/frontend-payment-tokenComplete Frontend Detail Collection
Billabear::PaymentDetailsApidelete_payment_detailsDELETE /payment-methods/{paymentDetailsId}Delete
Billabear::PaymentDetailsApidelete_payment_details_customerDELETE /customer/{customerId}/payment-methods/{paymentDetailsId}Delete With Customer
Billabear::PaymentDetailsApiget_payment_detailsGET /payment-methods/{paymentDetailsId}Fetch
Billabear::PaymentDetailsApilist_payment_detailsGET /customer/{customerId}/payment-methodsList Customer's Payment Details
Billabear::PaymentDetailsApimake_default_payment_detailsPOST /payment-methods/{paymentDetailsId}/defaultMake Default
Billabear::PaymentDetailsApimake_default_payment_details_customerPOST /customer/{customerId}/payment-methods/{paymentDetailsId}/defaultMake Default With Customer
Billabear::PaymentDetailsApistart_frontend_payment_detailsGET /customer/{customerId}/payment-methods/frontend-payment-tokenStart Frontend Detail Collection
Billabear::PaymentsApicharge_invoicePOST /invoice/{invoiceId}/chargeCharge Invoice
Billabear::PaymentsApidownload_invoiceGET /invoice/{invoiceId}/downloadDownload Invoice
Billabear::PaymentsApidownload_receiptGET /receipt/{receiptId}/downloadDownload Receipt
Billabear::PaymentsApiget_invoices_for_customerGET /customer/{customerId}/invoicesList Customer Invoices
Billabear::PaymentsApiget_payments_for_customerGET /customer/{customerId}/paymentList Customer Payments
Billabear::PaymentsApilist_paymentGET /paymentList
Billabear::PaymentsApirefund_paymentPOST /payment/{paymentId}/refundRefund Payment
Billabear::PricesApicreate_pricePOST /product/{productId}/priceCreate
Billabear::PricesApilist_priceGET /product/{productId}/priceList
Billabear::ProductsApicreate_productPOST /productCreate
Billabear::ProductsApilist_productGET /productList
Billabear::ProductsApishow_product_by_idGET /product/{productId}Detail
Billabear::ProductsApiupdate_productPUT /product/{productId}Update
Billabear::ReceiptApidownload_receiptGET /receipt/{receiptId}/downloadDownload Receipt
Billabear::RefundsApiget_refunds_for_customerGET /customer/{customerId}/refundList Customer Refunds
Billabear::RefundsApilist_refundGET /refundList
Billabear::RefundsApishow_refund_by_idGET /refund/{refundId}Detail
Billabear::SubscriptionsApiadd_seats_subscriptionsPOST /subscription/{subscriptionId}/seats/addAdd Seats
Billabear::SubscriptionsApicancel_subscriptionPOST /subscription/{subscriptionId}/cancelCancel Subscription
Billabear::SubscriptionsApichange_subscription_pricePOST /subscription/{subscriptionId}/priceChange Price
Billabear::SubscriptionsApicreate_subscriptionPOST /customer/{customerId}/subscription/startCreate Subscription
Billabear::SubscriptionsApicustomer_change_subscription_planPOST /subscription/{subscriptionId}/planChange Subscription Plan
Billabear::SubscriptionsApiextend_trialPOST /subscription/{subscriptionId}/extendExtend Trial Subscription
Billabear::SubscriptionsApiget_active_for_customerGET /customer/{customerId}/subscription/activeList Customer Active Subscriptions
Billabear::SubscriptionsApiget_for_customerGET /customer/{customerId}/subscriptionList Customer Subscriptions
Billabear::SubscriptionsApilist_subscription_plansGET /subscription/plansList Subscription Plans
Billabear::SubscriptionsApilist_subscriptionsGET /subscriptionList
Billabear::SubscriptionsApiremove_seats_subscriptionsPOST /subscription/{subscriptionId}/seats/removeRemove Seats
Billabear::SubscriptionsApishow_subscription_by_idGET /subscription/{subscriptionId}Detail
Billabear::SubscriptionsApistart_trialPOST /customer/{customerId}/subscription/trialStart Trial Subscription For Customer
Billabear::UsageApicreate_customer_usage_limitPOST /customer/{customerId}/uasge-limitCreate Usage Limit
Billabear::UsageApicreate_eventPOST /eventsCreate Event
Billabear::UsageApicustomer_customer_id_uasge_limit_limit_id_deleteDELETE /customer/{customerId}/uasge-limit/{limitId}Delete Usage Limit
Billabear::UsageApiget_customer_costsGET /customer/{customerId}/costsUsage Cost Estimate
Billabear::UsageApiget_customer_usage_limits_by_idGET /customer/{customerId}/uasge-limitFetch Customer Usage Limits

Documentation for Models

Documentation for Authorization

ApiKeyAuth

  • Type: API key
  • API key parameter name: X-API-Key
  • Location: HTTP header

FAQs

Package last updated on 25 Jan 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc