Quitar empresa de la blacklist
curl --request DELETE \
--url https://api.pruff.com/api/clients/blacklist/{businessIdentifier} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"reason": "Regularizó sus pagos",
"userName": "Ana Rojas"
}
'import requests
url = "https://api.pruff.com/api/clients/blacklist/{businessIdentifier}"
payload = {
"reason": "Regularizó sus pagos",
"userName": "Ana Rojas"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.delete(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'DELETE',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({reason: 'Regularizó sus pagos', userName: 'Ana Rojas'})
};
fetch('https://api.pruff.com/api/clients/blacklist/{businessIdentifier}', 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/blacklist/{businessIdentifier}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_POSTFIELDS => json_encode([
'reason' => 'Regularizó sus pagos',
'userName' => 'Ana Rojas'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.pruff.com/api/clients/blacklist/{businessIdentifier}"
payload := strings.NewReader("{\n \"reason\": \"Regularizó sus pagos\",\n \"userName\": \"Ana Rojas\"\n}")
req, _ := http.NewRequest("DELETE", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://api.pruff.com/api/clients/blacklist/{businessIdentifier}")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"reason\": \"Regularizó sus pagos\",\n \"userName\": \"Ana Rojas\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.pruff.com/api/clients/blacklist/{businessIdentifier}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"reason\": \"Regularizó sus pagos\",\n \"userName\": \"Ana Rojas\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"businessIdentifier": "76222222-1",
"businessName": "Deudor Ejemplo SpA",
"reason": "Regularizó sus pagos",
"action": "remove",
"actionDate": "2026-11-16T15:30:00.000Z",
"userName": "Ana Rojas"
}
}Blacklist
Quitar empresa de la blacklist
Quita una empresa de la blacklist de tu empresa. Envía en userName el nombre de la persona o del sistema que la quita y en reason el motivo. La respuesta es el registro de la salida, con action en remove. Si la empresa no está en la blacklist, responde 404. Para usar este endpoint, un administrador de tu empresa debe asignar el permiso «Riesgo eliminar empresa blacklist» al rol Super Administrador en Configuración, Roles; sin ese permiso responde 403.
DELETE
/
blacklist
/
{businessIdentifier}
Quitar empresa de la blacklist
curl --request DELETE \
--url https://api.pruff.com/api/clients/blacklist/{businessIdentifier} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"reason": "Regularizó sus pagos",
"userName": "Ana Rojas"
}
'import requests
url = "https://api.pruff.com/api/clients/blacklist/{businessIdentifier}"
payload = {
"reason": "Regularizó sus pagos",
"userName": "Ana Rojas"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.delete(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'DELETE',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({reason: 'Regularizó sus pagos', userName: 'Ana Rojas'})
};
fetch('https://api.pruff.com/api/clients/blacklist/{businessIdentifier}', 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/blacklist/{businessIdentifier}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_POSTFIELDS => json_encode([
'reason' => 'Regularizó sus pagos',
'userName' => 'Ana Rojas'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.pruff.com/api/clients/blacklist/{businessIdentifier}"
payload := strings.NewReader("{\n \"reason\": \"Regularizó sus pagos\",\n \"userName\": \"Ana Rojas\"\n}")
req, _ := http.NewRequest("DELETE", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://api.pruff.com/api/clients/blacklist/{businessIdentifier}")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"reason\": \"Regularizó sus pagos\",\n \"userName\": \"Ana Rojas\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.pruff.com/api/clients/blacklist/{businessIdentifier}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"reason\": \"Regularizó sus pagos\",\n \"userName\": \"Ana Rojas\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"businessIdentifier": "76222222-1",
"businessName": "Deudor Ejemplo SpA",
"reason": "Regularizó sus pagos",
"action": "remove",
"actionDate": "2026-11-16T15:30:00.000Z",
"userName": "Ana Rojas"
}
}Parámetros de ruta
Cuerpo
application/json
Última modificación el 16 de noviembre de 2026