Loans

Configurable chart data (measure × slice)

POST
/v1/loans/analytics/chart

Buckets the filtered loans by slice and ranks them by measure, descending. Party slices (originator, broker, loanCompany) are pageable: send size (1–1000) and follow nextCursor via after to walk the whole ranking, with total giving the (approximate) number of distinct parties. Other slices return their fixed top-N. period accepts rolling windows (last30Days, last60Days, last90Days, previousMonth, currentMonth) resolved in UTC; /loans/analytics/summary with the same filters and period returns the matching population totals.

Authorization

x-api-key<token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/loans/analytics/chart" \  -H "Content-Type: application/json" \  -d '{    "slice": "transactionType"  }'
{
  "completeness": {
    "through": "2019-08-24"
  },
  "data": [
    {
      "count": 0,
      "excluded": 0,
      "id": "string",
      "label": "string",
      "segments": [
        {
          "count": 0,
          "id": "string",
          "label": "string",
          "value": 0
        }
      ],
      "segmentsOmittedCount": 0,
      "unattributed": true,
      "value": 0
    }
  ],
  "measure": "string",
  "nextCursor": "string",
  "omittedCount": 0,
  "segment": "string",
  "slice": "string",
  "total": 0,
  "totalApproximate": true
}
{
  "error": "string"
}
{
  "error": "string"
}
{
  "error": "string"
}
{
  "error": "string"
}
{
  "error": "string",
  "limit": 0,
  "size": 0
}