Get an operation
const url = 'https://integrador.avalisto.com/v1/rental/operations/example';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Sección titulada «Authorizations»Parameters
Sección titulada «Parameters»Path Parameters
Sección titulada «Path Parameters»Operation id
Responses
Sección titulada «Responses»object
Identifier
Product id
Under_review: Avalisto needs to review the operation; you can upload documents meanwhile
Your own reference, as sent when quoting
Creation date (ISO 8601, UTC)
Last update (ISO 8601, UTC)
Consent of the operation, if the product requires one
object
Quote of the operation
object
Quote id. May be equal to operationId
Operation id
Null for operations not created through the API
Evaluation result
Reasons for the decision (closed catalogue); may be empty
Total premium for the period. null if rejected
object
Amount in currency units
ISO 4217 currency
Monthly rent
Duration in months
Property
object
Street
Number
Floor, door, staircase… in one line
Postal code
Town
Province
Use of the property
Creation date (ISO 8601, UTC)
Property
object
Street
Number
Floor, door, staircase… in one line
Postal code
Town
Province
Use of the property
Tenants and guarantors
object
Full name
Identity document, masked (last 3 characters visible)
Role in the operation
Documents uploaded to the operation
object
Identifier
Document type
File name
Upload date (ISO 8601, UTC)
Policy of the operation, once issued
object
Identifier
Number
Status
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)
object
object
Stable error code. Part of the contract.
Developer-oriented message in English
Correlation id; the same value as the X-Request-Id response header
Only for validation_error: which fields failed
object
Field that failed validation
What is wrong with the field
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
object
object
Stable error code. Part of the contract.
Developer-oriented message in English
Correlation id; the same value as the X-Request-Id response header
Only for validation_error: which fields failed
object
Field that failed validation
What is wrong with the field
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)
object
object
Stable error code. Part of the contract.
Developer-oriented message in English
Correlation id; the same value as the X-Request-Id response header
Only for validation_error: which fields failed
object
Field that failed validation
What is wrong with the field
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)
object
object
Stable error code. Part of the contract.
Developer-oriented message in English
Correlation id; the same value as the X-Request-Id response header
Only for validation_error: which fields failed
object
Field that failed validation
What is wrong with the field
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
object
object
Stable error code. Part of the contract.
Developer-oriented message in English
Correlation id; the same value as the X-Request-Id response header
Only for validation_error: which fields failed
object
Field that failed validation
What is wrong with the field
Example
{ "error": { "code": "validation_error", "message": "Request validation failed", "requestId": "3f6c2a0e-1b7d-4c55-9a52-2f6c1f0d9e11", "details": [ { "field": "monthlyRent", "issue": "must be a positive number" } ] }}