Obtener simulaciones
curl --request GET \
--url https://api.pruff.com/api/clients/crm/simulations \
--header 'x-api-key: <api-key>'import requests
url = "https://api.pruff.com/api/clients/crm/simulations"
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/crm/simulations', 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/crm/simulations",
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/crm/simulations"
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/crm/simulations")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.pruff.com/api/clients/crm/simulations")
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{
"data": [
{
"id": 8812,
"businessIdentifier": "76111111-6",
"businessName": "Comercial Ejemplo SpA",
"mode": "TRADEABLE_INVOICES",
"totalAmount": 500000,
"currency": "CLP",
"monthlyRate": 1.5,
"advancePercentage": 90,
"totalCosts": 0,
"estimatedPayout": 436500,
"risk": "Aprobado",
"executiveName": "Ana Pérez",
"executiveEmail": "ana.perez@example.com",
"date": "2026-10-01",
"status": "LOST",
"createdAt": "2026-10-01T14:00:00.000Z",
"updatedAt": "2026-10-05T16:30:00.000Z",
"loss": {
"lossReasons": [
"Tasa"
],
"competitorName": "Factoring Competidor S.A.",
"competitorRate": 1.2,
"rateDelta": 0.3
},
"documents": [
{
"folio": "12345",
"stakeholderIdentifier": "22222222-2",
"stakeholderName": "Deudor Ejemplo S.A.",
"documentAmount": 500000,
"dueDate": "2026-11-30",
"days": 60,
"rateCost": 13500,
"financedAmount": 450000,
"payoutAmount": 436500
}
]
}
],
"pagination": {
"total": 1,
"page": 1,
"pageSize": 10,
"totalPages": 1
}
}
CRM
Obtener simulaciones
Obtiene las simulaciones de factoring registradas en el CRM, con los mismos datos del export a Excel: montos, tasa, costos, giro estimado, riesgo, ejecutivo y el detalle de cada documento simulado.
Incluye las simulaciones abiertas (OPEN) y perdidas (LOST); las que ya se convirtieron en solicitud no aparecen. Usa status para acotar a uno de los dos estados. Los filtros se combinan con una condición “y”. startDate y endDate son días en hora de Chile y el día de término se incluye completo.
Los registros vienen ordenados desde la simulación creada más recientemente. El servicio está paginado y el tamaño máximo de página es 500. Cualquier query param que no esté en esta lista responde un error 400.
GET
/
crm
/
simulations
Obtener simulaciones
curl --request GET \
--url https://api.pruff.com/api/clients/crm/simulations \
--header 'x-api-key: <api-key>'import requests
url = "https://api.pruff.com/api/clients/crm/simulations"
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/crm/simulations', 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/crm/simulations",
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/crm/simulations"
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/crm/simulations")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.pruff.com/api/clients/crm/simulations")
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{
"data": [
{
"id": 8812,
"businessIdentifier": "76111111-6",
"businessName": "Comercial Ejemplo SpA",
"mode": "TRADEABLE_INVOICES",
"totalAmount": 500000,
"currency": "CLP",
"monthlyRate": 1.5,
"advancePercentage": 90,
"totalCosts": 0,
"estimatedPayout": 436500,
"risk": "Aprobado",
"executiveName": "Ana Pérez",
"executiveEmail": "ana.perez@example.com",
"date": "2026-10-01",
"status": "LOST",
"createdAt": "2026-10-01T14:00:00.000Z",
"updatedAt": "2026-10-05T16:30:00.000Z",
"loss": {
"lossReasons": [
"Tasa"
],
"competitorName": "Factoring Competidor S.A.",
"competitorRate": 1.2,
"rateDelta": 0.3
},
"documents": [
{
"folio": "12345",
"stakeholderIdentifier": "22222222-2",
"stakeholderName": "Deudor Ejemplo S.A.",
"documentAmount": 500000,
"dueDate": "2026-11-30",
"days": 60,
"rateCost": 13500,
"financedAmount": 450000,
"payoutAmount": 436500
}
]
}
],
"pagination": {
"total": 1,
"page": 1,
"pageSize": 10,
"totalPages": 1
}
}