curl --request GET \
--url https://api.pruff.com/api/clients/financing/extensions \
--header 'x-api-key: <api-key>'import requests
url = "https://api.pruff.com/api/clients/financing/extensions"
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/financing/extensions', 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/financing/extensions",
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/financing/extensions"
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/financing/extensions")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.pruff.com/api/clients/financing/extensions")
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": 123,
"rateCost": 300000,
"rate": 3.5,
"operationCostFixed": 0,
"operationCostRateVariable": null,
"operationCostVariable": 0,
"status": "Completada",
"observation": "Prórroga acordada con el cliente",
"startDate": "2026-09-09",
"dueDate": "2026-10-15",
"createdAt": "2026-09-02",
"solicitantId": 521,
"documentId": "8d5c1f0e-3b7a-4d2e-9c61-5a7e4b2f1c90",
"comiteeId": 1,
"comiteeOperationsId": 2,
"paymentDate": "2026-09-09",
"folio": "1234321",
"documentAmount": 11324765,
"businessName": "Cliente Ejemplo SpA",
"businessIdentifier": "11111111-1",
"stakeholderName": "Deudor Ejemplo SpA",
"stakeholderIdentifier": "22222222-2",
"paid": true,
"executives": "Ana Pérez"
}
],
"pagination": {
"total": 1,
"page": 1,
"pageSize": 10,
"totalPages": 1
}
}Obtener prórrogas
Obtiene las prórrogas de documentos de factoring de tu empresa, en cualquier estado. La respuesta está paginada, con un tamaño máximo de página de 100, y viene ordenada por id ascendente. El orden es estable: al recorrer todas las páginas ninguna prórroga se repite ni se pierde.
Todos los filtros son opcionales y se combinan con AND. Las fechas se envían como YYYY-MM-DD, los rangos son inclusivos y se interpretan a las 00:00 UTC de cada día. Por eso endCreatedAt, que se compara contra la hora exacta de creación, no incluye las prórrogas creadas durante ese mismo día: usa el día siguiente si las necesitas.
Para acotar la consulta a un cliente, usa businessIdentifier.
Una fecha que no existe en el calendario, como 2026-02-30 o 2026-13-01, responde 400 con el campo que falló en data.errors.
curl --request GET \
--url https://api.pruff.com/api/clients/financing/extensions \
--header 'x-api-key: <api-key>'import requests
url = "https://api.pruff.com/api/clients/financing/extensions"
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/financing/extensions', 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/financing/extensions",
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/financing/extensions"
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/financing/extensions")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.pruff.com/api/clients/financing/extensions")
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": 123,
"rateCost": 300000,
"rate": 3.5,
"operationCostFixed": 0,
"operationCostRateVariable": null,
"operationCostVariable": 0,
"status": "Completada",
"observation": "Prórroga acordada con el cliente",
"startDate": "2026-09-09",
"dueDate": "2026-10-15",
"createdAt": "2026-09-02",
"solicitantId": 521,
"documentId": "8d5c1f0e-3b7a-4d2e-9c61-5a7e4b2f1c90",
"comiteeId": 1,
"comiteeOperationsId": 2,
"paymentDate": "2026-09-09",
"folio": "1234321",
"documentAmount": 11324765,
"businessName": "Cliente Ejemplo SpA",
"businessIdentifier": "11111111-1",
"stakeholderName": "Deudor Ejemplo SpA",
"stakeholderIdentifier": "22222222-2",
"paid": true,
"executives": "Ana Pérez"
}
],
"pagination": {
"total": 1,
"page": 1,
"pageSize": 10,
"totalPages": 1
}
}