---
title: "Estimate Bill From Range"
method: GET
path: "/api/stripe/estimate_bill/{plan_id}"
tags: ["Stripe"]
---

# Estimate Bill From Range

`GET /api/stripe/estimate_bill/{plan_id}`

Return the amount you will be billed from a date range if you were on usage based pricing

## Path parameters

- `plan_id` string, uuid, required

## Request body

- DateRange — DateRange is a JSON object which can be used to filter chunks by a range of dates. This leverages the time_stamp field on chunks in your dataset. You can specify this if you want values in a certain range. You must provide ISO 8601 combined date and time without timezone.
  - `gt` string, nullable
  - `gte` string, nullable
  - `lt` string, nullable
  - `lte` string, nullable

## Response `200`

Billing estimate

- BillingEstimate
  - `items` BillItem[], required
    - `amount` number, double, required
    - `clean_name` string, required
    - `name` string, required
    - `usage_amount` integer, required
  - `total` number, double, required

## Other responses

- `400` — Service error relating to calculating bill

---

[API](https://skmtc.net/devflowinc/apis/trieve-api.md) · [All operations](https://skmtc.net/devflowinc/apis/trieve-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/devflowinc/trieve-api/revisions/84583e7c9fc1/schema)
