Ir al contenido

List portfolio policies

GET
/v1/portfolio/policies
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.

from
string

Example

2025-01-01

Start date (YYYY-MM-DD), inclusive. Applies to the effective date of policies and the creation date of scorings

to
string

Example

2025-12-31

End date (YYYY-MM-DD), inclusive until 23:59:59 UTC

landlord
string

Example

Sociedad Ejemplo

Landlord company name (prefix match, case-insensitive)

limit
number

Example

25

Page size (1-100)

cursor
string

Cursor returned by the previous page

Media typeapplication/json
object
nextCursor
required

Opaque cursor for the next page; null when there are no more results

string
nullable
count
required

Number of items in this page

number
data
required

Items of this page

Array<object>
object
id
required

Policy number

string
insurerReference
required

Insurer’s reference for the policy

string
nullable
leaseReference
required

Your lease contract reference

string
nullable
landlordName
required

Landlord company name

string
nullable
property
required

Property

object
fullAddress
required

Full address in one line

string
monthlyRent
required

Monthly rent

object
amount
required

Amount in currency units

number
currency
required

ISO 4217 currency

string
Allowed values: EUR
premium
required

Total premium of the period

object
amount
required

Amount in currency units

number
currency
required

ISO 4217 currency

string
Allowed values: EUR
tenant
required
object
fullName
required

Full name

string
documentNumberMasked
required

Identity document with only the last 3 characters visible

string
issuedAt
required

Issue date (ISO); null if unknown

string
nullable
effectiveFrom
required

Coverage start (ISO); null if unknown

string
nullable
status
required

Status

string
Allowed values: active cancelled expired
inForce
required

True if the policy is currently in force

boolean
unpaidStatus
required

open = the policy has an unpaid rent case in progress

string
Allowed values: none open closed
cancelledAt
required

Cancellation date (ISO); null if not cancelled

string
nullable
insurerName
required

Commercial name of the insurer

string
nullable
operationType
required

Type of operation

string
nullable
Allowed values: new_issue renewal

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)

Media typeapplication/json
object
error
required
object
code
required

Stable error code. Part of the contract.

string
message
required

Developer-oriented message in English

string
requestId
required

Correlation id; the same value as the X-Request-Id response header

string
details

Only for validation_error: which fields failed

Array<object>
object
field
required

Field that failed validation

string
issue
required

What is wrong with the field

string

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

Media typeapplication/json
object
error
required
object
code
required

Stable error code. Part of the contract.

string
message
required

Developer-oriented message in English

string
requestId
required

Correlation id; the same value as the X-Request-Id response header

string
details

Only for validation_error: which fields failed

Array<object>
object
field
required

Field that failed validation

string
issue
required

What is wrong with the field

string

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)

Media typeapplication/json
object
error
required
object
code
required

Stable error code. Part of the contract.

string
message
required

Developer-oriented message in English

string
requestId
required

Correlation id; the same value as the X-Request-Id response header

string
details

Only for validation_error: which fields failed

Array<object>
object
field
required

Field that failed validation

string
issue
required

What is wrong with the field

string

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)

Media typeapplication/json
object
error
required
object
code
required

Stable error code. Part of the contract.

string
message
required

Developer-oriented message in English

string
requestId
required

Correlation id; the same value as the X-Request-Id response header

string
details

Only for validation_error: which fields failed

Array<object>
object
field
required

Field that failed validation

string
issue
required

What is wrong with the field

string

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

Media typeapplication/json
object
error
required
object
code
required

Stable error code. Part of the contract.

string
message
required

Developer-oriented message in English

string
requestId
required

Correlation id; the same value as the X-Request-Id response header

string
details

Only for validation_error: which fields failed

Array<object>
object
field
required

Field that failed validation

string
issue
required

What is wrong with the field

string

Example

{
"error": {
"code": "validation_error",
"message": "Request validation failed",
"requestId": "3f6c2a0e-1b7d-4c55-9a52-2f6c1f0d9e11",
"details": [
{
"field": "monthlyRent",
"issue": "must be a positive number"
}
]
}
}