Product Director Aaron Gunn discusses billing options for SaaS and IaaS customers. This includes CDR API, AMPQ, and integrating VoIP billing platforms.
8. @kazoocon
Billing Overview
Billing is a catch all word for a wide variety of
technical, accounting, and billing functions.
Technical
⢠Count devices,
users, etc.
⢠Service Docs
⢠MODB
⢠Credit Storage
⢠Access Control
Accounting
⢠Transaction Ledger
⢠Costs/Prices (Rating)
⢠Periodic Charges
⢠Inventory
⢠Legal
⢠Discounts
⢠Product Policies
Billing
⢠Invoicing
⢠Ordering
⢠Billing History
⢠Customer Service
⢠Refunds
⢠Payment Policies
⢠Deposits
9. @kazoocon
What Does Kazoo Handle?
⢠Functional limits/credits.
â Absolute vs. periodic
â Access to functionality
⢠Rating (what things cost)
⢠Call Records (CDRs)
⢠Counting of items
⢠Present Data to your billing system
10. @kazoocon
What Doesnât Kazoo Handle
⢠Customer Billing
â Invoicing
â Refunds
â Customer Service
â Billing History
⢠LCR
⢠Accounting/Legal
â You are liable for correctly billing your customer
12. @kazoocon
What Weâre Solving
⢠Resellers typically already re-bill products
from vendors (Microsoft, Cisco, etc.) w/
markup
⢠Challenge with telecom is doing this monthly
⢠We provide tools to get you the raw data of
what YOU, as the reseller, have been charged
⢠You can take these costs and re-bill them
anyway you wish
13. @kazoocon
Method #1: Reseller Reporting
Best for: Hosted Resellers up to 100 customers who use
an external billing service like Freshbooks.
Billing Frequency: Once/month
Pros
⢠Everything You Need In One
Report
⢠Single bill to customer
⢠Simple
Cons
⢠Hosted Only
⢠No Automation
⢠Doesnât Scale
15. @kazoocon
Billing with Reseller Reporting
⢠Export data
⢠Input into billing system however you choose
⢠Repeat Monthly
⢠Must still bill for monthly services.
⢠Great for Freshbooks, telecom accountant
firms.
17. @kazoocon
Method #2: CDR API
Best for: SaaS Customers who want to automate.
Billing Frequency: Once/month
Pros
⢠Rich Call Information
⢠Approved Method
⢠Available on Hosted or
Dedicated
Cons
⢠Not a real time solution
⢠Expensive on large
deployments (100+
customers)
18. @kazoocon
Using the API
⢠Set up your API key.
⢠curl -v -H "Accept: application/octet-
stream" http://api.2600hz.com:8000/v1/acco
unts/YOUR_ACCOUNT_ID/cdrs?auth_token=Y
OUR_AUTH_TOKEN
⢠Get Payload/CSV
20. @kazoocon
Integrating into your Billing Platform
⢠Set up API key
⢠Set up Pulling script
⢠Pull monthly to your billing system
⢠API Access can also be used to pull counts of
devices, users, etc.
22. @kazoocon
What Weâre Solving
⢠Service Providers with their own billing system
⢠Want to integrate billing data as it occurs.
⢠Kazoo provides real time CDRs for your billing
system
23. @kazoocon
Method #3: AMQP Queue
Best for: IaaS Clients doing real-time billing.
Billing Frequency: Real Time
Pros
⢠Approved method
⢠Low system load
⢠Scales very well
⢠Reliable Delivery
Cons
⢠More work than API
⢠Need a real-time billing
platform
⢠You are responsible for
redundancy
26. @kazoocon
How Does AMQP Work
⢠Message Attributes (Meta Data)
⢠Message Acknowledgements
⢠uses TCP for reliable delivery
27. @kazoocon
Integrating into your Billing Platform
⢠Set up an exchange for hangup messages
⢠Set up a queue
⢠Receive a payload
⢠Parse the payload
29. @kazoocon
Method #4: Webhooks
Best for: No one
Billing Frequency: Just donât do this!
Pros
⢠Easy to set up
Cons
⢠Billing Events Can be lost
⢠Unsupported by 2600hz
⢠Doesnât Scale At All
30. @kazoocon
What Is Webhooks Good For?
⢠Triggering On-Demand Experiences
⢠Integrating with Web Services
⢠Feeding Events back into the system with
Pivot
31. @kazoocon
Summary of Methods
Monthly Real-Time
Hosted
Infrastructure
Reseller Reporting
OR
APIs
AMQP
Not available on
SaaS, but talk to
us if you need
this
32. @kazoocon
Summary
⢠Hosted resellers should really only be billing
by month.
⢠Donât use webhooks for billing.
⢠If Infrastructure client, use AMQP
34. @kazoocon
Whatâs Left?
⢠Functional limits/credits.
â Absolute vs. periodic
â Access to functionality
⢠Rating (what calls cost)
⢠Call Records (CDRs)
⢠Counting of items
⢠Present Data to your billing system
45. @kazoocon
Billing Data: Whatâs Available?
⢠Count of current items on account
â Numbers, devices, users
⢠Call Records (CDRS)
â Call time, Carrier, Call info
Notas do Editor
(if your script is down you lose calls)
Limit can be set in the system, but is hardware dependent
-return to queue/dead letter
-exchange: routes a message to one or more queues