GET
/
v0
/
reports
/
payable-aging
curl --request GET \
  --url https://api.sandbox.teal.dev/v0/reports/payable-aging \
  --header 'Authorization: Bearer <token>' \
  --header 'teal-instance-id: <teal-instance-id>'
{
  "tag_balances": [
    {
      "tag": {
        "id": "UjL3BQnEaJtecuC7CUeDk",
        "name": "Sprinter - 1ab-c23",
        "tag_group_id": "NCB2xo5S1yQbNgyWskXpwG"
      },
      "balance": {
        "total": 123,
        "current": 123,
        "overdue_1_30": 123,
        "overdue_31_60": 123,
        "overdue_61_90": 123,
        "overdue_91": 123
      }
    }
  ],
  "unassigned_balances": {
    "total": 123,
    "current": 123,
    "overdue_1_30": 123,
    "overdue_31_60": 123,
    "overdue_61_90": 123,
    "overdue_91": 123
  },
  "total_balances": {
    "total": 123,
    "current": 123,
    "overdue_1_30": 123,
    "overdue_31_60": 123,
    "overdue_61_90": 123,
    "overdue_91": 123
  },
  "overdue_balance": 123
}

Authorizations

Authorization
string
headerrequired

The access token received from the authorization server in the OAuth 2.0 flow.

Headers

teal-instance-id
string
required

The Teal instance ID

Query Parameters

ledger_id
string
required

The AP ledger ID

date
string
required

The date for the report

tag_group_id
string
required

The tag group ID used as payment criteria

Response

200 - application/json
tag_balances
object[]
required

List of balances owing for each tag in the tag group by period.

unassigned_balances
object
required

Balances owing that are not assigned to a tag by period.

total_balances
object
required

The total balances owed by period.

overdue_balance
number
required

The total balance that is owing and overdue.