Docs

Log into read the version of docs relevant to your site.

Estimate API for metered line items

Problem Statement

How do I use the API to get an estimate of an upcoming invoice that includes metered line items? How do I get an estimate for an upcoming invoice with a metered plan or addon?

Solution

The Estimate API does not include metered line items in its response. Metered usages are designed for postpaid billing, so the final value is only known after the billing period ends.

Additional Information

To approximate metered charges for an upcoming invoice, you can List usages for the relevant period (filter by usage_date) and multiply by the price to get a rough estimate.

Was this article helpful?