Skip to main content

Embargos Integration

note

Content migrating from alianza-hq/backend/karibe/ and database schema

Overview

The embargos integration scrapes and stores lien/embargo records from the Karibe (RIDPR) system. These records are used by CoquiTitle to identify encumbrances on properties during title studies.

Database Schema

Table: ridpr.embargos

ColumnTypeDescription
idUUIDPrimary key
finca_idStringProperty finca identifier
demarcacion_codeStringRegistry demarcation code
asientoStringRegistry entry number
creditorStringCreditor name/entity
debtorStringDebtor name/entity
amountDecimalEmbargo amount
currencyStringCurrency code (USD, etc.)
inscription_dateDateDate inscribed
statusStringactive/released/cancelled
case_numberStringLegal case number
courtStringCourt name
created_atTimestampRecord creation time
updated_atTimestampLast update time

Data Source

Embargos are scraped from the Karibe portal using the document archiver system:

Karibe Portal --> Scraper --> Document Archiver --> S3 + Supabase

Usage in CoquiTitle

During title studies, the evidence gathering phase queries embargos:

SELECT * FROM ridpr.embargos
WHERE finca_id = ?
AND demarcacion_code = ?
AND status = 'active'
ORDER BY inscription_date DESC;

Active embargos are flagged as title defects requiring resolution.