---
title: "Insight into expenses, grouped by bill."
method: GET
path: "/v1/insight/expense/bill"
tags: ["insight"]
---

# Insight into expenses, grouped by bill.

`GET /v1/insight/expense/bill`

## Request

- Base URL: `https://demo.firefly-iii.org/api`
- URL: `https://demo.firefly-iii.org/api/v1/insight/expense/bill`
- Auth: one of:
  - OAuth 2
    - Authorization code: `https://demo.firefly-iii.org/oauth/authorize`
    - Token URL: `https://demo.firefly-iii.org/oauth/token`
  - HTTP bearer

This endpoint gives a summary of the expenses made by the user, grouped by (any) bill.

## Query parameters

- `start` string, date, required
- `end` string, date, required
- `bills[]` integer[]
- `accounts[]` integer[]

## Headers

- `X-Trace-Id` string, uuid

## Response `200`

A list of budget and expense details. Each budget has one row per currency.

- InsightGroupEntry[]
  - `id` string, string: This ID is a reference to the original object.
  - `name` string, string: This is the name of the object.
  - `difference` string, string: The amount spent or earned between start date and end date, a number defined as a string, for this object and all asset accounts.
  - `difference_float` number, double: The amount spent or earned between start date and end date, a number as a float, for this object and all asset accounts. May have rounding errors.
  - `currency_id` string, string: The currency ID of the expenses listed for this account.
  - `currency_code` string, string: The currency code of the expenses listed for this account.

## Other responses

- `400`: Bad request
- `401`: Unauthenticated
- `404`: Page not found
- `422`: Validation error. The body will have the exact details.
- `500`: Internal exception

---

[API](https://skmtc.dev/firefly-iii/apis/firefly-iii-api-v6-4-17.md) - [All operations](https://skmtc.dev/firefly-iii/apis/firefly-iii-api-v6-4-17/llms.txt) - [OpenAPI document](https://skmtc.dev/firefly-iii/apis/firefly-iii-api-v6-4-17/revisions/ea021802490b?raw)
