curl --request GET \
--url https://api.pruff.com/api/clients/invoices/financiable \
--header 'x-api-key: <api-key>'import requests
url = "https://api.pruff.com/api/clients/invoices/financiable"
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/invoices/financiable', 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/invoices/financiable",
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/invoices/financiable"
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/invoices/financiable")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.pruff.com/api/clients/invoices/financiable")
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[
{
"id": "dc5a0090-5458-477f-8934-d86c6679bea5",
"folio": "101",
"code": "33",
"businessIdentifier": "11111111-1",
"businessName": "Cliente Ejemplo SpA",
"amount": 10000000,
"confirmDate": null,
"issuedDate": "2026-05-14T00:00:00.000Z",
"receiptDate": "2026-05-15T00:00:00.000Z",
"cancelDate": null,
"status": "Transable",
"cessionaryName": "--",
"stakeholderIdentifier": "33333333-3",
"stakeholderSalesSegment": 6,
"stakeholderName": "Deudor Ejemplo SpA",
"executiveName": "Ana Pérez",
"paymentType": null,
"enforceableTitle": false
}
]Obtener facturas transables
Devuelve las facturas transables (financiables) de los clientes activos de tu cartera, emitidas dentro de un rango de fechas. Por defecto el rango son los últimos 5 días. A diferencia de los demás listados, la respuesta es un arreglo JSON directo, sin paginación, ordenado por fecha de emisión descendente.
Una factura se considera transable cuando cumple todo lo siguiente:
- No fue reclamada.
- No se pagó al contado.
- Sus notas de crédito no cubren el total de su monto.
- No está cedida: o nunca se cedió, o su última cesión la devolvió al emisor.
Solo se consideran clientes activos de tu cartera. Los clientes pausados desde antes del mes en curso quedan fuera.
Con email, la cartera es la de ese usuario: sus clientes y los de sus subordinados. Si el usuario tiene permiso de lectura de todos los clientes, la cartera es la completa. Con strictEmailFilter=true se restringe a los clientes asignados directamente a ese usuario (el de email o, si no lo envías, el de tu API key) y se ignora el permiso de lectura total.
Como la respuesta no se pagina, acota el resultado con startDate, endDate y los filtros por RUT. Si la respuesta es demasiado grande, el endpoint responde 413.
curl --request GET \
--url https://api.pruff.com/api/clients/invoices/financiable \
--header 'x-api-key: <api-key>'import requests
url = "https://api.pruff.com/api/clients/invoices/financiable"
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/invoices/financiable', 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/invoices/financiable",
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/invoices/financiable"
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/invoices/financiable")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.pruff.com/api/clients/invoices/financiable")
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[
{
"id": "dc5a0090-5458-477f-8934-d86c6679bea5",
"folio": "101",
"code": "33",
"businessIdentifier": "11111111-1",
"businessName": "Cliente Ejemplo SpA",
"amount": 10000000,
"confirmDate": null,
"issuedDate": "2026-05-14T00:00:00.000Z",
"receiptDate": "2026-05-15T00:00:00.000Z",
"cancelDate": null,
"status": "Transable",
"cessionaryName": "--",
"stakeholderIdentifier": "33333333-3",
"stakeholderSalesSegment": 6,
"stakeholderName": "Deudor Ejemplo SpA",
"executiveName": "Ana Pérez",
"paymentType": null,
"enforceableTitle": false
}
]Parámetros de consulta
Respuesta
Arreglo de facturas transables. Es un arreglo vacío si ninguna cumple los filtros.