# Portfolio aging

One row per payment schedule, worst arrears first: what is outstanding, how many days delinquent, and the overdue money split into the same four aging bands. Filter with status= and overdue=true, page with limit. Use it after portfolio health to see WHICH facilities are behind rather than how much is.

Access class: `workspace`.

## Endpoint

`GET /v1/portfolio/aging`

## Parameters

| Name | In | Type | Required |
| --- | --- | --- | --- |
| body | query | null | No |
| params | query | object | No |
| query | query | object | No |

## Responses

### 200

the action's answer

Content type: `application/json`.

```json
{
  "data": {
    "asOf": "string",
    "facilities": [
      "string"
    ]
  }
}
```

### default

a refusal: `{"error": "<what a person needs to read>"}`. 401 no credential, 402 the plan does not include this, 403 the seat does not, 404 the thing does not exist or is not yours to see.

Content type: `application/json`.

```json
{
  "error": "string"
}
```
