Skip to main content
GET
/
v1
/
businesses
/
{businessId}
/
reports
/
unified
/
ap-aging
Fetch AP aging report
curl --request GET \
  --url https://sandbox.layerfi.com/v1/businesses/{businessId}/reports/unified/ap-aging \
  --header 'Authorization: Bearer <token>'
{
  "type": "Unified_Report",
  "business_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "columns": [
    {
      "column_key": "amount",
      "display_name": "Amount",
      "columns": "<array>"
    }
  ],
  "rows": [
    {
      "row_key": "revenue",
      "display_name": "Revenue",
      "cells": {},
      "rows": "<array>"
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.layerfi.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Content-Type
string

Content-Type must be set to application/json.

Path Parameters

businessId
string<uuid>
required

The UUID of the business to fetch the AP aging report for.

Query Parameters

tag_filter
string

Filter results by tags.

Response

AP aging report retrieved successfully.

A unified report structure that supports hierarchical columns and rows. Used for balance sheets, cashflow statements, profit & loss reports, and aging reports with flexible dimensional breakdowns.

type
string

Resource type. Value will be 'Unified_Report'.

Example:

"Unified_Report"

business_id
string<uuid>

The UUID of the business this report belongs to.

columns
object[]

The column headers for the report. Columns can be nested to represent hierarchical dimensions (e.g., Location > Month).

rows
object[]

The data rows for the report. Rows can be nested to represent hierarchical account structures.