Docs
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?
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.
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?