---
title: "Ap Aging Report"
method: GET
path: "/companies/{company_id}/ap/aging"
tags: ["gl-subledgers"]
---

# Ap Aging Report

`GET /companies/{company_id}/ap/aging`

## Request

- Base URL: `https://app.zeno-works.ch` (the document declares no server; this is the origin it was published from)
- URL: `https://app.zeno-works.ch/companies/{company_id}/ap/aging`
- Auth: none declared

Open-AP (Kreditoren) aging by supplier, bucketed by days overdue (member read).

The payable twin of ``GET …/ar/aging`` — same buckets, same schema
(per-supplier rows over ``gl_open_item.open_amount_base``), same ``as_of``:
omitted → today's cached amounts; set → historical reconstruction from posted
journal lines dated ``<= as_of``.

## Path parameters

- `company_id` string, required

## Query parameters

- `as_of` string, date, nullable

## Headers

- `authorization` string, nullable

## Cookies

- `access_token` string, nullable

## Response `200`

Successful Response

- AgingReport
  - `as_of` string, required
  - `rows` AgingRow[], required
    - `counterparty_id` string, nullable, required
    - `counterparty_name` string, required
    - `buckets` AgingBuckets, required
      - `current` string, required
      - `d1_30` string, required
      - `d31_60` string, required
      - `d61_90` string, required
      - `d90_plus` string, required
    - `total` string, required
  - `totals` AgingBuckets, required
    - `current` string, required
    - `d1_30` string, required
    - `d31_60` string, required
    - `d61_90` string, required
    - `d90_plus` string, required
  - `grand_total` string, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/zeno-works/apis/zeno-api.md) · [All operations](https://skmtc.dev/zeno-works/apis/zeno-api/llms.txt) · [OpenAPI document](https://skmtc.dev/zeno-works/apis/zeno-api/revisions/1eb93dde146c?raw)
