---
title: "Drill into statement lines by account"
method: GET
path: "/statements/drill"
tags: ["Books"]
---

# Drill into statement lines by account

`GET /statements/drill`

## Request

- Base URL: `https://api.app.lastaccountingcompany.com/portal`
- URL: `https://api.app.lastaccountingcompany.com/portal/statements/drill`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/lastaccountingcompany/apis/lac-customer-api/docs/statements/drill/get.ts> (a function with typed inputs; its response is checked against the schema)

Returns the underlying detail behind statement lines for the given GL account codes. `account_codes` is a comma-joined list (e.g. `3000,3010`). Returns JSON `null` when there is nothing to drill into.

## Query parameters

- `customer_id` string
- `range` string
- `account_codes` string, required
- `months` integer

## Response `200`

Drill payload, or null when nothing is available.

- StatementsDrill: Account-level drill-down behind statement lines. Interiors are returned as-is; amounts are integer cents.

## Other responses

- `401`: Missing or invalid bearer token.
- `403`: Insufficient scope or role — e.g. a read-scoped key on a mutating method, or an API key on an admin/approver-only endpoint.

---

[API](https://skmtc.dev/lastaccountingcompany/apis/lac-customer-api.md) - [All operations](https://skmtc.dev/lastaccountingcompany/apis/lac-customer-api/llms.txt) - [OpenAPI document](https://skmtc.dev/lastaccountingcompany/apis/lac-customer-api/revisions/52e277b4f031?raw)
