Ir al contenido

Get an operation

GET
/v1/rental/operations/{id}
curl --request GET \
--url https://integrador.avalisto.com/v1/rental/operations/example \
--header 'Authorization: Bearer <token>'

Status, quote, parties (identity documents masked), documents and policy of one operation.

id
required
string

Operation id

Media typeapplication/json
object
id
required

Identifier

string
productId
required

Product id

string
nullable
status
required

Under_review: Avalisto needs to review the operation; you can upload documents meanwhile

string
Allowed values: consent_pending quoted under_review documents_pending policy_requested policy_issued cancelled rejected
externalReference
required

Your own reference, as sent when quoting

string
nullable
createdAt
required

Creation date (ISO 8601, UTC)

string
updatedAt
required

Last update (ISO 8601, UTC)

string
consent
required

Consent of the operation, if the product requires one

object
quote
required

Quote of the operation

object
id
required

Quote id. May be equal to operationId

string
operationId
required

Operation id

string
productId
required

Null for operations not created through the API

string
nullable
decision
required

Evaluation result

string
Allowed values: approved rejected manual_review
reasons
required

Reasons for the decision (closed catalogue); may be empty

Array<string>
premium
required

Total premium for the period. null if rejected

object
amount
required

Amount in currency units

number
currency
required

ISO 4217 currency

string
Allowed values: EUR
monthlyRent
required

Monthly rent

number
durationMonths
required

Duration in months

number
property
required

Property

object
street
required

Street

string
number
required

Number

string
nullable
details
required

Floor, door, staircase… in one line

string
nullable
postalCode
required

Postal code

string
town
required

Town

string
province
required

Province

string
use
required

Use of the property

string
Allowed values: residential commercial
createdAt
required

Creation date (ISO 8601, UTC)

string
property
required

Property

object
street
required

Street

string
number
required

Number

string
nullable
details
required

Floor, door, staircase… in one line

string
nullable
postalCode
required

Postal code

string
town
required

Town

string
province
required

Province

string
use
required

Use of the property

string
Allowed values: residential commercial
parties
required

Tenants and guarantors

Array<object>
object
fullName
required

Full name

string
documentNumberMasked
required

Identity document, masked (last 3 characters visible)

string
role
required

Role in the operation

string
Allowed values: tenant guarantor
documents
required

Documents uploaded to the operation

Array<object>
object
id
required

Identifier

string
type
required

Document type

string
fileName
required

File name

string
uploadedAt
required

Upload date (ISO 8601, UTC)

string
policy
required

Policy of the operation, once issued

object
id
required

Identifier

string
number
required

Number

string
status
required

Status

string
Allowed values: active cancelled expired

Example

{
"status": "consent_pending",
"externalReference": "LEASE-0001",
"consent": null,
"quote": {
"decision": "approved",
"reasons": [],
"premium": {
"amount": 650,
"currency": "EUR"
},
"monthlyRent": 1200,
"durationMonths": 12,
"property": {
"street": "Calle Ejemplo",
"number": "12",
"details": "3º B",
"postalCode": "28000",
"town": "Madrid",
"province": "Madrid",
"use": "residential"
},
"createdAt": "2027-01-01T10:00:00.000Z"
},
"property": {
"street": "Calle Ejemplo",
"number": "12",
"details": "3º B",
"postalCode": "28000",
"town": "Madrid",
"province": "Madrid",
"use": "residential"
},
"parties": [
{
"fullName": "Ana Ejemplo",
"documentNumberMasked": "******00T",
"role": "tenant"
}
],
"documents": [
{
"type": "payslip",
"fileName": "payslip.pdf",
"uploadedAt": "2027-01-01T10:00:00.000Z"
}
],
"policy": {
"status": "active"
}
}

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