api
Apipe
API Consulta API Facturación API WhatsApp API SMS

RUC — Establecimientos

Retorna la lista de establecimientos registrados en SUNAT para el RUC consultado.

GET /api/v1/ruc/{ruc}/establecimientos

Parámetros de ruta

Parámetro Tipo Requerido Descripción
ruc string RUC de 11 dígitos

Ejemplo de petición

curl http://apipe.facturapro.pe/api/v1/ruc/20000000001/establecimientos \
  -H 'Authorization: Bearer tu_token_aqui'
<?php
$response = Http::withToken('tu_token_aqui')
    ->get('http://apipe.facturapro.pe/api/v1/ruc/20000000001/establecimientos');

$data = $response->json('data');
const res = await fetch('http://apipe.facturapro.pe/api/v1/ruc/20000000001/establecimientos', {
  headers: { 'Authorization': 'Bearer tu_token_aqui' }
});
const { data } = await res.json();

Respuesta exitosa (200)

application/json
{
  "success": true,
  "ruc":     "20000000001",
  "total":   2,
  "data": [
    {
      "codigo":              "0000",
      "tipo":                "PRINCIPAL",
      "direccion":           "AV. LOS EJEMPLOS NRO. 123 - MIRAFLORES",
      "actividad_economica": "ACTIVIDADES DE SERVICIOS DE INFORMACION"
    },
    {
      "codigo":              "0001",
      "tipo":                "SECUNDARIO",
      "direccion":           "JR. DEMO NRO. 456 - SAN BORJA",
      "actividad_economica": "ACTIVIDADES DE SERVICIOS DE INFORMACION"
    }
  ]
}