List portfolio policies
const url = 'https://integrador.avalisto.com/v1/portfolio/policies?from=2025-01-01&to=2025-12-31&landlord=Sociedad%20Ejemplo&limit=25';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/policies?from=2025-01-01&to=2025-12-31&landlord=Sociedad%20Ejemplo&limit=25' \ --header 'Authorization: Bearer <token>'Policies of your portfolio, most recent effective date first. 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)
Example
25Page size (1-100)
Cursor returned by the previous page
Responses
Sección titulada «Responses»object
Opaque cursor for the next page; null when there are no more results
Number of items in this page
Items of this page
object
Policy number
Insurer’s reference for the policy
Your lease contract reference
Landlord company name
Property
object
Full address in one line
Monthly rent
object
Amount in currency units
ISO 4217 currency
Total premium of the period
object
Amount in currency units
ISO 4217 currency
object
Full name
Identity document with only the last 3 characters visible
Issue date (ISO); null if unknown
Coverage start (ISO); null if unknown
Status
True if the policy is currently in force
open = the policy has an unpaid rent case in progress
Cancellation date (ISO); null if not cancelled
Commercial name of the insurer
Type of operation
Example
{ "nextCursor": null, "count": 1, "data": [ { "id": "POL-0000001", "insurerReference": null, "leaseReference": "CONTRATO-001", "landlordName": "Sociedad Ejemplo", "property": { "fullAddress": "Calle Ejemplo 1, 28000 Madrid" }, "monthlyRent": { "amount": 650, "currency": "EUR" }, "premium": { "amount": 650, "currency": "EUR" }, "tenant": { "fullName": "Ana Ejemplo", "documentNumberMasked": "******00T" }, "issuedAt": "2025-03-10T10:00:00.000Z", "effectiveFrom": "2025-03-15T00:00:00.000Z", "status": "active", "inForce": true, "unpaidStatus": "none", "cancelledAt": null, "insurerName": "Occident", "operationType": "new_issue" } ]}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" } ] }}