curl --request GET \
--url https://api.pruff.com/api/clients/datahub/{identifier}/tgr/agreements \
--header 'x-api-key: <api-key>'import requests
url = "https://api.pruff.com/api/clients/datahub/{identifier}/tgr/agreements"
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/agreements', 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/agreements",
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/agreements"
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/agreements")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.pruff.com/api/clients/datahub/{identifier}/tgr/agreements")
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": {
"agreementsCount": 1,
"overdueCount": 1,
"overdueAmount": 250000,
"amountRemaining": 1000000
},
"agreements": [
{
"proposalId": 123456,
"resolutionId": 987654,
"resolutionDate": "2026-02-10",
"paymentType": "Cuotas",
"agreementType": "Convenio general",
"status": "Vigente",
"initialAmount": 1500000,
"actualAmount": 1000000,
"cuotasCount": 6,
"cuotasPaid": 2,
"cuotasRemaining": 4,
"cuotasDue": 1,
"activationDate": "2026-02-12",
"debts": [
{
"form": 29,
"folio": "1234567890",
"dueDate": "2025-12-20",
"amountRemaining": 1000000,
"penaltyCondition": 0,
"interestCondition": 0
}
],
"cuotas": [
{
"cuotaId": 3,
"dueDate": "2026-10-31",
"amount": 250000,
"paid": false,
"overdue": true
},
{
"cuotaId": 4,
"dueDate": "2026-11-30",
"amount": 250000,
"paid": false,
"overdue": false
}
]
}
]
}Obtener convenios TGR
Devuelve los convenios de pago vigentes de la empresa con la Tesorería General de la República (TGR), con sus deudas y cuotas, según la última información que Pruff tiene guardada. Es un endpoint de solo lectura: no gatilla una consulta nueva a la TGR. lastUpdatedAt indica cuándo se actualizó esa información, o null si nunca se obtuvo. Los convenios se ordenan por proposalId, sus deudas por folio y sus cuotas por cuotaId. Los montos están en pesos chilenos (CLP) y las fechas de cada elemento 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/agreements \
--header 'x-api-key: <api-key>'import requests
url = "https://api.pruff.com/api/clients/datahub/{identifier}/tgr/agreements"
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/agreements', 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/agreements",
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/agreements"
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/agreements")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.pruff.com/api/clients/datahub/{identifier}/tgr/agreements")
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": {
"agreementsCount": 1,
"overdueCount": 1,
"overdueAmount": 250000,
"amountRemaining": 1000000
},
"agreements": [
{
"proposalId": 123456,
"resolutionId": 987654,
"resolutionDate": "2026-02-10",
"paymentType": "Cuotas",
"agreementType": "Convenio general",
"status": "Vigente",
"initialAmount": 1500000,
"actualAmount": 1000000,
"cuotasCount": 6,
"cuotasPaid": 2,
"cuotasRemaining": 4,
"cuotasDue": 1,
"activationDate": "2026-02-12",
"debts": [
{
"form": 29,
"folio": "1234567890",
"dueDate": "2025-12-20",
"amountRemaining": 1000000,
"penaltyCondition": 0,
"interestCondition": 0
}
],
"cuotas": [
{
"cuotaId": 3,
"dueDate": "2026-10-31",
"amount": 250000,
"paid": false,
"overdue": true
},
{
"cuotaId": 4,
"dueDate": "2026-11-30",
"amount": 250000,
"paid": false,
"overdue": false
}
]
}
]
}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
Convenios TGR de la empresa.