Portfolio summary
const url = 'https://integrador.avalisto.com/v1/portfolio/summary?from=2025-01-01&to=2025-12-31&landlord=Sociedad%20Ejemplo';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://integrador.avalisto.com/v1/portfolio/summary?from=2025-01-01&to=2025-12-31&landlord=Sociedad%20Ejemplo' \ --header 'Authorization: Bearer <token>'Covered risk, policy counts and scoring approval rates, with the same figures as the analytics view of the platform. Available to fund accounts only; other accounts get 403 product_not_available. Data may be up to 5 minutes old.
Authorizations
Sección titulada «Authorizations»Parameters
Sección titulada «Parameters»Query Parameters
Sección titulada «Query Parameters»Example
2025-01-01Start date (YYYY-MM-DD), inclusive. Applies to the effective date of policies and the creation date of scorings
Example
2025-12-31End date (YYYY-MM-DD), inclusive until 23:59:59 UTC
Example
Sociedad EjemploLandlord company name (prefix match, case-insensitive)
Responses
Sección titulada «Responses»object
Annual rent (monthly rent × 12) of the policies in force
object
Amount in currency units
ISO 4217 currency
Total policies
Policies currently in force
Policies with an open unpaid-rent incident
Total evaluations
0-1
0-1
0-1
Evaluations per issued policy
Applied filter: start date
Applied filter: end date (inclusive)
Example
{ "coveredRisk": { "amount": 650, "currency": "EUR" }, "policiesTotal": 120, "policiesInForce": 110, "policiesWithUnpaid": 3, "scoringsTotal": 300, "approvalRate": 0.8, "reviewRate": 0.15, "rejectionRate": 0.05, "scoringsPerPolicy": 2.5, "from": null, "to": null}Invalid request (validation_error, invalid_cursor, missing_idempotency_key)
object
object
Stable error code. Part of the contract.
Developer-oriented message in English
Correlation id; the same value as the X-Request-Id response header
Only for validation_error: which fields failed
object
Field that failed validation
What is wrong with the field
Example
{ "error": { "code": "validation_error", "message": "Request validation failed", "requestId": "3f6c2a0e-1b7d-4c55-9a52-2f6c1f0d9e11", "details": [ { "field": "monthlyRent", "issue": "must be a positive number" } ] }}Missing, invalid, expired or revoked credential
object
object
Stable error code. Part of the contract.
Developer-oriented message in English
Correlation id; the same value as the X-Request-Id response header
Only for validation_error: which fields failed
object
Field that failed validation
What is wrong with the field
Example
{ "error": { "code": "validation_error", "message": "Request validation failed", "requestId": "3f6c2a0e-1b7d-4c55-9a52-2f6c1f0d9e11", "details": [ { "field": "monthlyRent", "issue": "must be a positive number" } ] }}Missing scope (forbidden_scope) or product not available (product_not_available)
object
object
Stable error code. Part of the contract.
Developer-oriented message in English
Correlation id; the same value as the X-Request-Id response header
Only for validation_error: which fields failed
object
Field that failed validation
What is wrong with the field
Example
{ "error": { "code": "validation_error", "message": "Request validation failed", "requestId": "3f6c2a0e-1b7d-4c55-9a52-2f6c1f0d9e11", "details": [ { "field": "monthlyRent", "issue": "must be a positive number" } ] }}Resource not found (not_found)
object
object
Stable error code. Part of the contract.
Developer-oriented message in English
Correlation id; the same value as the X-Request-Id response header
Only for validation_error: which fields failed
object
Field that failed validation
What is wrong with the field
Example
{ "error": { "code": "validation_error", "message": "Request validation failed", "requestId": "3f6c2a0e-1b7d-4c55-9a52-2f6c1f0d9e11", "details": [ { "field": "monthlyRent", "issue": "must be a positive number" } ] }}Rate limit or daily quota exceeded; see Retry-After
object
object
Stable error code. Part of the contract.
Developer-oriented message in English
Correlation id; the same value as the X-Request-Id response header
Only for validation_error: which fields failed
object
Field that failed validation
What is wrong with the field
Example
{ "error": { "code": "validation_error", "message": "Request validation failed", "requestId": "3f6c2a0e-1b7d-4c55-9a52-2f6c1f0d9e11", "details": [ { "field": "monthlyRent", "issue": "must be a positive number" } ] }}