---
title: "Query raw general-ledger entries with filters: version, period, entity, business unit, account prefix (e.g"
method: GET
path: "/api/v1/query_gl"
---

# Query raw general-ledger entries with filters: version, period, entity, business unit, account prefix (e.g

`GET /api/v1/query_gl`

## Request

- Base URL: `https://k-phi.com` (the document declares no server; this is the origin it was published from)
- URL: `https://k-phi.com/api/v1/query_gl`
- Auth: HTTP bearer

Query raw general-ledger entries with filters: version, period, entity, business unit, account prefix (e.g. "411" for all AR accounts under French PCG), and free-text search on the entry description. Returns matching rows (capped by limit, default 100, max 500) plus aggregates (total count, sum of debits and credits) computed over ALL matches, not just the returned page.

## Query parameters

- `version` string
- `period` string
- `entity` string
- `bu` string
- `acct_prefix` string
- `search` string
- `limit` integer

## Response `200`

OK

- object
  - `data` object
  - `meta` object
    - `api` string
    - `capability` string
    - `at` string

## Other responses

- `401`: No or invalid credential
- `403`: Scope, extension or Builder Mode refused
- `422`: The capability refused the input
- `429`: Rate or daily quota reached

---

[API](https://skmtc.dev/k-phi/apis/k-api.md) · [All operations](https://skmtc.dev/k-phi/apis/k-api/llms.txt) · [OpenAPI document](https://skmtc.dev/k-phi/apis/k-api/revisions/60b28690ec35?raw)
