Ir al contenido

List your products

GET
/v1/products
curl --request GET \
--url https://integrador.avalisto.com/v1/products \
--header 'Authorization: Bearer <token>'

Products you can use through the API, each with the requirements to operate it. Cached for up to 10 minutes.

Media typeapplication/json
object
data
required

Products available for your account

Array<object>
object
id
required

Product id

string
name
required

Commercial name

string
line
required

Product line

string
Allowed values: rental home
flow
required

Issuing flow of the product

string
Allowed values: rental_direct rental_consent home
coverageMonths
required

Months of cover

number
nullable
requirements
required
object
consent
required

True = a consent must be created and signed (POST /v1/rental/consents) before quoting

boolean
durationsMonths
required

Allowed durations in months

Array<number>
maxTenants
required

Rental only: maximum number of tenants

number
nullable
maxGuarantors
required

Rental only: maximum number of guarantors. 0 = guarantors not accepted

number
nullable
landlord
required

Rental only: whether a landlord company is needed (see GET /v1/account/landlords)

string
Allowed values: required optional not_applicable
documentTypes
required

Document types that can be uploaded to an operation of this product

Array<string>
landlordDetails
required

True = issuing the policy requires the landlord details (landlord in POST /v1/rental/policies)

boolean
paymentAccount
required

True = issuing the policy requires the IBAN to charge the premium (paymentIban)

boolean
supportsEstimate
required

True = the product admits POST /v1/rental/estimates

boolean
documents
required
object
ipid
required

Pre-contractual information document. Signed URL valid 24 h; null if not available

string
nullable
generalConditions
required

General conditions. Signed URL valid 24 h; null if not available

string
nullable
nextCursor
required

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

string
nullable
count
required

Number of items returned in this page

number

Example

{
"data": [
{
"id": "prod_123",
"name": "Protección de alquiler",
"line": "rental",
"flow": "rental_direct",
"coverageMonths": 12,
"requirements": {
"consent": false,
"durationsMonths": [
12
],
"maxTenants": 3,
"maxGuarantors": 1,
"landlord": "required",
"documentTypes": [
"payslip",
"employment_contract"
],
"landlordDetails": false,
"paymentAccount": false
},
"supportsEstimate": false,
"documents": {
"ipid": null,
"generalConditions": null
}
}
],
"nextCursor": null,
"count": 1
}

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