Get a product
const url = 'https://integrador.avalisto.com/v1/products/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/products/example \ --header 'Authorization: Bearer <token>'Returns 403 product_not_available if the product is not available for your account.
Authorizations
Sección titulada «Authorizations»Parameters
Sección titulada «Parameters»Path Parameters
Sección titulada «Path Parameters»Product id
Responses
Sección titulada «Responses»object
Product id
Commercial name
Product line
Issuing flow of the product
Months of cover
object
True = a consent must be created and signed (POST /v1/rental/consents) before quoting
Allowed durations in months
Rental only: maximum number of tenants
Rental only: maximum number of guarantors. 0 = guarantors not accepted
Rental only: whether a landlord company is needed (see GET /v1/account/landlords)
Document types that can be uploaded to an operation of this product
True = issuing the policy requires the landlord details (landlord in POST /v1/rental/policies)
True = issuing the policy requires the IBAN to charge the premium (paymentIban)
True = the product admits POST /v1/rental/estimates
object
Pre-contractual information document. Signed URL valid 24 h; null if not available
General conditions. Signed URL valid 24 h; null if not available
Example
{ "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 }}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" } ] }}