Ir al contenido

Portfolio summary

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

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)

Media typeapplication/json
object
coveredRisk
required

Annual rent (monthly rent × 12) of the policies in force

object
amount
required

Amount in currency units

number
currency
required

ISO 4217 currency

string
Allowed values: EUR
policiesTotal
required

Total policies

number
policiesInForce
required

Policies currently in force

number
policiesWithUnpaid
required

Policies with an open unpaid-rent incident

number
scoringsTotal
required

Total evaluations

number
approvalRate
required

0-1

number
reviewRate
required

0-1

number
rejectionRate
required

0-1

number
scoringsPerPolicy
required

Evaluations per issued policy

number
from
required

Applied filter: start date

string
nullable
to
required

Applied filter: end date (inclusive)

string
nullable

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)

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