How to meter the dollar amount being charged and use this for billing in Amberflo
In cases with custom billing logic or negotiated rates, there are cases when a vendor may want to track and meter the actual charge amount each day, and then use this total spend as the basis for reporting or billing workflows later.
For example, one common application may be to meter the daily charge amount using a 'Sum' meter. At the end of the billing period, Amberflo would automatically calculate the total billed amount.
To charge and invoice customers for this amount, we create a product item that is associated with the meter tracking the charge amount, and select the 'Per Unit' pricing. This means that for every metered unit reported (in this case, we know the meter is reporting in dollars), then we can set the per-unit rate that Amberflo will use to generate the invoice.
By setting the per-unit rate to $1.00, then the charge reported by the meter will appear on the metered invoice for payment by the customer when the invoice is delivered.
Note that the key to this approach is creating an associated product item and then leveraging per-unit pricing with the rate set at $1.00 per unit. This will allow the metered charge to be populated on the invoice as a billable amount due for payment.
See related from Pricing Plans and Product Items:
How to associate meters with product items for use in multiple pricing plans
How to enable usage limits with Amberflo
How to see a customer's remaining prepaid balance
How to update existing pricing plans with new product items
How to delete a product item using the API
How to enable free trials with Amberflo
How to make a support package available as an add-on to our standard pricing plans
How to enable custom or negotiated per unit pricing for customers
How to meter and bill compute instance hours