curl --request GET \
--url https://api.pruff.com/api/clients/datahub/{identifier}/tgr/proceedings \
--header 'x-api-key: <api-key>'import requests
url = "https://api.pruff.com/api/clients/datahub/{identifier}/tgr/proceedings"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.pruff.com/api/clients/datahub/{identifier}/tgr/proceedings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.pruff.com/api/clients/datahub/{identifier}/tgr/proceedings",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.pruff.com/api/clients/datahub/{identifier}/tgr/proceedings"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.pruff.com/api/clients/datahub/{identifier}/tgr/proceedings")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.pruff.com/api/clients/datahub/{identifier}/tgr/proceedings")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"identifier": "76111111-6",
"lastUpdatedAt": "2026-11-12T13:30:00.000Z",
"summary": {
"totalCount": 1,
"totalAmount": 800000,
"stagesCount": {
"Cierre Administrativo": 0,
"Excepción": 0,
"Embargo": 0,
"Notificación": 1,
"Inicio": 0,
"Suspensión": 0
},
"stagesAmount": {
"Cierre Administrativo": 0,
"Excepción": 0,
"Embargo": 0,
"Notificación": 800000,
"Inicio": 0,
"Suspensión": 0
}
},
"collectionsUnavailable": null,
"proceedings": [
{
"proceedingId": "10001",
"year": 2026,
"commune": "Santiago",
"status": "Notificación",
"amount": 800000,
"active": true,
"folios": [
{
"form": 29,
"folio": "1234567890",
"dueDate": "2025-12-20",
"amount": 800000
}
]
}
]
}Obtener cobranzas TGR
Devuelve los procedimientos de cobranza de la Tesorería General de la República (TGR) contra la empresa, con los folios que incluye cada uno, según la última información que Pruff tiene guardada. Es un endpoint de solo lectura: no gatilla una consulta nueva a la TGR. proceedings incluye procedimientos activos e inactivos, ordenados por proceedingId; summary solo suma los activos, por etapa. Si la última consulta de cobranzas de la empresa falló, collectionsUnavailable indica el código del error y cuándo ocurrió; en ese caso, los datos pueden estar desactualizados. Los montos están en pesos chilenos (CLP) y las fechas de los folios vienen como YYYY-MM-DD. La empresa debe existir en Pruff y estar relacionada con tu empresa.
curl --request GET \
--url https://api.pruff.com/api/clients/datahub/{identifier}/tgr/proceedings \
--header 'x-api-key: <api-key>'import requests
url = "https://api.pruff.com/api/clients/datahub/{identifier}/tgr/proceedings"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.pruff.com/api/clients/datahub/{identifier}/tgr/proceedings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.pruff.com/api/clients/datahub/{identifier}/tgr/proceedings",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.pruff.com/api/clients/datahub/{identifier}/tgr/proceedings"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.pruff.com/api/clients/datahub/{identifier}/tgr/proceedings")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.pruff.com/api/clients/datahub/{identifier}/tgr/proceedings")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"identifier": "76111111-6",
"lastUpdatedAt": "2026-11-12T13:30:00.000Z",
"summary": {
"totalCount": 1,
"totalAmount": 800000,
"stagesCount": {
"Cierre Administrativo": 0,
"Excepción": 0,
"Embargo": 0,
"Notificación": 1,
"Inicio": 0,
"Suspensión": 0
},
"stagesAmount": {
"Cierre Administrativo": 0,
"Excepción": 0,
"Embargo": 0,
"Notificación": 800000,
"Inicio": 0,
"Suspensión": 0
}
},
"collectionsUnavailable": null,
"proceedings": [
{
"proceedingId": "10001",
"year": 2026,
"commune": "Santiago",
"status": "Notificación",
"amount": 800000,
"active": true,
"folios": [
{
"form": 29,
"folio": "1234567890",
"dueDate": "2025-12-20",
"amount": 800000
}
]
}
]
}Parámetros de ruta
RUT de la empresa, sin puntos, con guion y con la K del dígito verificador en mayúscula (por ejemplo 76111111-6). También se acepta un NIT colombiano con el formato XXXXXXXXX-Y. Un identificador que no es un RUT ni un NIT válido responde 400. La empresa debe existir en Pruff y estar relacionada con tu empresa; si no, responde 404.
^(\d{1,8}-[\dK]|\d{1,15}-\d)$"76111111-6"
Respuesta
Procedimientos de cobranza TGR de la empresa.