Consulta RUC Representantes
Búsqueda de REPRESENTANTES LEGALES por número de RUC
Consideraciones
Los datos se obtienen de la consulta RUC de SUNAT.
Consulta RUC
POST
https://apiperu.dev/api/ruc_representantes
Headers
Name
Type
Description
Accept
String
application/json
Content-Type
string
application/json
Authorization
string
Bearer {token}
Body
Name
Type
Description
ruc*
String
11 dígitos
{
"success": true,
"data": [
{
"tipo_de_documento": "DNI",
"numero_de_documento": "40****69",
"nombre": "JARAMA P***RERO AUGUSTO",
"cargo": "TITULAR-GERENTE",
"fecha_desde": "2017-07-11"
}
]
}
Ejemplos de uso
$params = json_encode(['ruc' => 'INGRESAR_NUMERO_RUC_AQUI']);
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://apiperu.dev/api/ruc_representantes",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_SSL_VERIFYPEER => false,
CURLOPT_POSTFIELDS => $params,
CURLOPT_HTTPHEADER => [
'Accept: application/json',
'Content-Type: application/json',
'Authorization: Bearer INGRESAR_TOKEN_AQUI'
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
Última actualización
¿Te fue útil?