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>'
{
  "data": {
    "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>"
      }
    ]
  }
}

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.

data
object
required

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.