Ir al contenido

List portfolio evaluations

GET
/v1/portfolio/scorings
curl --request GET \
--url 'https://integrador.avalisto.com/v1/portfolio/scorings?from=2025-01-01&to=2025-12-31&landlord=Sociedad%20Ejemplo&limit=25' \
--header 'Authorization: Bearer <token>'

Evaluations requested by your account, most recent 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
createdAt
required

Creation date (ISO 8601, UTC)

string
decision
required

Evaluation result

string
Allowed values: approved manual_review rejected
property
required

Property

object
fullAddress
required

Full address in one line

string
landlordName
required

Landlord company name

string
nullable

Example

{
"nextCursor": null,
"count": 1,
"data": [
{
"createdAt": "2025-03-10T10:00:00.000Z",
"decision": "approved",
"property": {
"fullAddress": "Calle Ejemplo 1, 28000 Madrid"
},
"landlordName": "Sociedad Ejemplo"
}
]
}

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"
}
]
}
}