curl --request GET \
--url https://api.pruff.com/api/clients/creditNotes \
--header 'x-api-key: <api-key>'import requests
url = "https://api.pruff.com/api/clients/creditNotes"
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/creditNotes', 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/creditNotes",
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/creditNotes"
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/creditNotes")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.pruff.com/api/clients/creditNotes")
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": [
{
"folio": "1202",
"code": "61",
"businessIdentifier": "76111111-6",
"businessName": "Cliente Ejemplo SpA",
"stakeholderIdentifier": "96222222-6",
"stakeholderName": "Otro Pagador Ejemplo SA",
"issuedDate": "2026-09-30",
"amount": 80000,
"references": [
{
"code": "33",
"folio": "9999"
}
],
"linked": false,
"debitNotes": []
},
{
"folio": "1201",
"code": "61",
"businessIdentifier": "76111111-6",
"businessName": "Cliente Ejemplo SpA",
"stakeholderIdentifier": "96111111-0",
"stakeholderName": "Pagador Ejemplo SpA",
"issuedDate": "2026-09-20",
"amount": 250000,
"references": [
{
"code": "33",
"folio": "4512"
}
],
"linked": true,
"debitNotes": [
{
"folio": "88",
"code": "56",
"issuedDate": "2026-09-25",
"amount": 250000
}
]
}
],
"pagination": {
"total": 2,
"page": 1,
"pageSize": 10,
"totalPages": 1
}
}Obtener notas de crédito
Lista las notas de crédito electrónicas (DTE 61) registradas en Pruff, de forma paginada y ordenada por fecha de emisión descendente (las más recientes primero).
Cada nota de crédito trae los documentos que modifica (references), si Pruff ya la asoció a una factura registrada (linked) y las notas de débito (DTE 56) que la anularon o corrigieron. Las notas con linked: false son las que todavía no aparecen en creditNotes de GET /invoices, por ejemplo porque la factura que modifican no está en Pruff.
El listado incluye las notas que emiten tus clientes y las que reciben de sus proveedores. businessIdentifier siempre es el emisor y stakeholderIdentifier el receptor: si tu cliente aparece en businessIdentifier, la emitió; si aparece en stakeholderIdentifier, la recibió.
Todos los filtros son opcionales y se combinan entre sí. startDate y endDate son días calendario de la fecha de emisión, y ambos extremos se incluyen. El tamaño máximo de página es 500. Cualquier query param que no esté en esta lista responde un error 400.
curl --request GET \
--url https://api.pruff.com/api/clients/creditNotes \
--header 'x-api-key: <api-key>'import requests
url = "https://api.pruff.com/api/clients/creditNotes"
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/creditNotes', 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/creditNotes",
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/creditNotes"
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/creditNotes")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.pruff.com/api/clients/creditNotes")
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": [
{
"folio": "1202",
"code": "61",
"businessIdentifier": "76111111-6",
"businessName": "Cliente Ejemplo SpA",
"stakeholderIdentifier": "96222222-6",
"stakeholderName": "Otro Pagador Ejemplo SA",
"issuedDate": "2026-09-30",
"amount": 80000,
"references": [
{
"code": "33",
"folio": "9999"
}
],
"linked": false,
"debitNotes": []
},
{
"folio": "1201",
"code": "61",
"businessIdentifier": "76111111-6",
"businessName": "Cliente Ejemplo SpA",
"stakeholderIdentifier": "96111111-0",
"stakeholderName": "Pagador Ejemplo SpA",
"issuedDate": "2026-09-20",
"amount": 250000,
"references": [
{
"code": "33",
"folio": "4512"
}
],
"linked": true,
"debitNotes": [
{
"folio": "88",
"code": "56",
"issuedDate": "2026-09-25",
"amount": 250000
}
]
}
],
"pagination": {
"total": 2,
"page": 1,
"pageSize": 10,
"totalPages": 1
}
}