RUC — Representantes
Retorna la lista de representantes legales registrados en SUNAT para el RUC consultado.
GET
/api/v1/ruc/{ruc}/representantes
Parámetros de ruta
| Parámetro | Tipo | Requerido | Descripción |
|---|---|---|---|
| ruc | string | Sí | RUC de 11 dígitos |
Ejemplo de petición
curl http://apipe.facturapro.pe/api/v1/ruc/20000000001/representantes \
-H 'Authorization: Bearer tu_token_aqui'
<?php
$response = Http::withToken('tu_token_aqui')
->get('http://apipe.facturapro.pe/api/v1/ruc/20000000001/representantes');
$data = $response->json('data');
const res = await fetch('http://apipe.facturapro.pe/api/v1/ruc/20000000001/representantes', {
headers: { 'Authorization': 'Bearer tu_token_aqui' }
});
const { data } = await res.json();
Respuesta exitosa (200)
application/json
{
"success": true,
"ruc": "20000000001",
"total": 1,
"data": [
{
"tipo_documento": "DNI",
"numero_documento": "9*876***",
"nombre": "D*MO R*PR*S*NT*NT* J***",
"cargo": "GERENTE GENERAL",
"desde": "01/01/2020"
}
]
}