latestOpenAPI 3.1.0raw.githubusercontent.com2026-08-042018163.3 KB

5f4027e77a0e

Reports

Get loan summaries

The Get loan summaries endpoint returns a summary by integration type of all loans identified from a company's accounting, banking, and commerce integrations.

The endpoint returns a list of a company's loan summaries for each valid data connection.

Make sure you have synced a company recently before calling the endpoint.

get/companies/{companyId}/reports/liabilities/loans

Response

OK

reportInfoLoanSummaryReportInfo — unresolved $ref
reportItemsLoanSummaryReportItem[] — unresolved $ref

Returns a summary of all loan activity for that integration type

Example response

{
  "reportInfo": {
    "reportName": "LoanSummaryReport",
    "companyName": "The Coffee shop",
    "generatedDate": "2022-10-23T00:00:00Z"
  },
  "reportItems": [
    {
      "recordRef": {
        "id": "string",
        "dataConnectionId": "DE34E8E3-089F-4DF4-89E9-F7C43618FCAAA",
        "integrationType": "Accounting",
        "recordRefType": "accounts"
      },
      "description": "string",
      "startDate": "2021-01-01",
      "totalInvestments": 100000,
      "totalRepayments": 83481.72,
      "balance": 42513.18,
      "lender": "Barclays Bank"
    }
  ]
}