---
title: "Aged Accounts Payable"
method: POST
path: "/v6/reports/agedAccountsPayable"
tags: ["Reports"]
---

# Aged Accounts Payable

`POST /v6/reports/agedAccountsPayable`

Generate an Aged Accounts Payable Report

## Request body

- AgedAccountsPayableRequestDto
  - `exportType` 'JSON' | 'CSV' — Export format for the report
  - `recipients` Recipients — Email recipients for the report
    - `emails` string[] — Primary email recipients
  - `grouping` PeriodWithDimensionValueGrouping — Grouping options for the report
    - `period` 'DAILY' | 'MONTHLY' | 'QUARTERLY' | 'YEARLY' | 'NONE' — Date period to group the report by
    - `dimensionId` string — Dimension ID to group the report by
    - `dateGrouping` 'DAILY' | 'MONTHLY' | 'QUARTERLY' | 'YEARLY' | 'NONE'

## Response `200`

Success

- SuccessResponseReportDtoDimensionValueReportDtoAgedAccountsReportJson
  - `result` 'SUCCESS' | 'FAILURE' — The result of the action performed.
  - `data` ReportDtoDimensionValueReportDtoAgedAccountsReportJson — The data generated by the action performed.
    - `json` DimensionValueReportDtoAgedAccountsReportJson[] — Report data in JSON format
      - `name` string — Dimension value name
      - `data` AgedAccountsReportJson[] — Report data
        - `name` string — Name of the account or grouping
        - `balanceCurrent` integer — Current (not yet due) balance in cents
        - `balance0to30` integer — Balance 0–30 days past due in cents
        - `balance31to60` integer — Balance 31–60 days past due in cents
        - `balance61to90` integer — Balance 61–90 days past due in cents
        - `balance91plus` integer — Balance 91+ days past due in cents
        - `totalBalance` integer — Total outstanding balance in cents
    - `url` string — URL to download the csv report
    - `meta` ReportMeta — Metadata about the generated report
      - `title` string — Report title
      - `generatedOn` string, date-time — Date and time when the report was generated
      - `generatedBy` string — User who generated the report
      - `footerLine` string — Footer line for the report

## Other responses

- `400` — Bad request
- `401` — Not authenticated
- `403` — Not authorized
- `404` — Endpoint not found
- `500` — Internal server error

---

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