Customer Billing Quick Start
14 min
this guide walks you through a complete billing flow in amberflo by the end, you will have a meter capturing usage a pricing plan defining how that usage is charged a customer assigned to that plan usage data reflected on an invoice the goal is to get a simple, working setup you can expand from there what you’ll build example use case you want to charge customers $0 01 per api request you will create a meter to track requests create a pricing plan create a customer and assign the plan send usage and verify billing step 1 create a meter navigate in the left navigation go to meters (under manage ) create the meter click create meter (top right) configure label example api requests api name auto generated no spaces allowed letters, numbers, hyphens, underscores max 50 characters description (optional) meter type select count dimensions (optional) add dimensions if you want more detail later example endpoint region you can skip this for now click create step 2 create a pricing plan navigate in the left navigation go to pricing create the plan click create pricing plan (top right) configure name example api usage plan billing period choose monthly , or calendar monthly description (optional) click continue add a rate click add rate (right side) select usage based configure meter select your meter (e g , api requests) rate model leave as per unit price enter 0 01 leave all advanced options empty click continue , then save activate the pricing plan make sure the pricing plan is active if it is not active, it will not appear when assigning it to a customer step 3 create a customer and assign the plan navigate in the left navigation go to customers create customer click create customer (top right) fill in customer name example test customer customer id any unique identifier click save assign pricing plan open the customer you just created in the pricing plans section click assign plan configure plan select your pricing plan start date choose now , or custom date click assign plan step 4 send usage navigate in the left navigation go to meters click on your meter to open it upload an event click event upload fill in customer select your customer (may already be auto populated) value example 100 dimensions (optional) only if you added them earlier click ingest meter you have now sent usage tied to that customer step 5 verify billing navigate in the left navigation go to customers open your customer what to expect you should see a non zero invoice total example 100 units × $0 01 = $1 00 if you do not see data amberflo does not automatically refresh data views refresh the page if data still does not appear confirm the customer has a pricing plan assigned confirm usage was sent to the correct customer confirm the pricing plan is active what you just did you completed the full billing loop metered usage defined pricing assigned a customer sent usage generated billable charges what’s next from here, you can expand into tiered or volume pricing discounts and promotions multiple meters per plan automated ingestion via api or move to the cost visibility quick start to understand how the same usage can be used to track internal cost
