Perú · lookupRuc
OpenAPI

Consultar por RUC

GET https://api.latinfo.dev/pe/ruc/{ruc}

Registro tributario y componentes del domicilio fiscal. Cobertura: RUC de personas jurídicas que empiezan con 20 en el padrón reducido de contribuyentes. Consulta por ruc como texto, conservando ceros iniciales. El contrato siguiente define la sintaxis y normalización admitidas. departamento es un componente de apartamento o unidad, no geografía. El estado tributario y la condición del domicilio fiscal son distintos. Devuelve un registro. La fecha de importación no es la del dato; consulta los encabezados de actualización.

Contrato de la fuente

Publicador
SUNAT, Perú
Cobertura
RUC de personas jurídicas que empiezan con 20 en el padrón reducido de contribuyentes.
Qué representa un registro
Registro tributario y componentes del domicilio fiscal.
Identificador
Consulta por ruc como texto, conservando ceros iniciales. El contrato siguiente define la sintaxis y normalización admitidas.
Patrón admitido
^\d{11}$
Cantidad de registros
one
Licencia
No se ha verificado el permiso de reutilización. El acceso público no equivale a una licencia de reutilización.

Limitaciones conocidas

  • departamento es un componente de apartamento o unidad, no geografía. El estado tributario y la condición del domicilio fiscal son distintos.

Contrato de la fuente para agentes · Documentación de la fuente

Requiere autenticación. Las solicitudes REST usan una clave de api de Latinfo. La consola agrega el encabezado de autorización y no guarda la clave.

Parámetros

rucstringRutaobligatorio

Consulta por ruc como texto, conservando ceros iniciales. El contrato siguiente define la sintaxis y normalización admitidas.

Example: 20100047218

Ejemplo de solicitud

curl https://api.latinfo.dev/pe/ruc/20100047218 \
  -H "Authorization: Bearer $LATINFO_API_KEY"

Respuestas

200Registros publicados de la fuente. Los datos faltantes no acreditan ausencia de riesgos ni un hallazgo negativo.

Encabezados de la respuesta

X-Latinfo-Imported-At

Fecha de importación, distinta de la fecha del dato gubernamental.

X-Source-Updated-At

Fecha de actualización del publicador, si se conoce.

X-Latest-Observation-At

Última fecha de observación en esta página, si se conoce. Para el historial paginado completo, conserva la fecha de cada página o toma la máxima entre todas. Nunca uses la fecha de importación como fecha del dato.

X-Freshness-Status

string

CURRENT · DELAYED · STALE · UNKNOWN
X-Credits-Cost

Encabezado de compatibilidad; siempre cero porque Latinfo es gratis.

Link

Atribución, avisos de cambios y condiciones de reutilización en rel=describedby; licencia declarada verificada en rel=license. Las respuestas paginadas también incluyen rel=next cuando existe otra página.

X-Source-Generation

Generación opaca e inmutable de la fuente. Sigue el Link protegido de siguiente página al obtener un historial.

Content-Type: application/json

Campos de la respuesta

ruc string obligatorio

Consulta por ruc como texto, conservando ceros iniciales. El contrato siguiente define la sintaxis y normalización admitidas.

razon_social string obligatorio

Razón social registrada.

estado string obligatorio

Estado de la fuente; interprétalo en el contexto de este conjunto de datos.

ACTIVO · BAJA DEFINITIVA · BAJA DE OFICIO · BAJA NO ACTIV. SISEV · BAJA PROVISIONAL · BAJA PROV. POR OFICI · BAJA MULT.INSCR. Y O · SUSPENSION TEMPORAL · ANUL.PROVI.-ACTO ILI · ANULACION - ACTO ILI · ANULACION - ERROR SU · INHABILITADO-VENT.UN · NUM. INTERNO IDENTIF · OTROS OBLIGADOS · PENDIENTE DE INI. DE

Significado de los valores

TAX_REGISTRATION

ACTIVO

Activo: SUNAT informa que el registro tributario está activo.

BAJA DEFINITIVA

Baja definitiva: SUNAT informa la baja definitiva del registro tributario.

BAJA DE OFICIO

Baja de oficio por SUNAT: SUNAT informa que dio de baja el registro tributario por iniciativa propia.

BAJA NO ACTIV. SISEV

Baja por falta de actividad en SISEV: SUNAT informa la baja por ausencia de actividad registrada en el sistema de verificación SISEV.

BAJA PROVISIONAL

Baja provisional: SUNAT informa la baja provisional del registro tributario.

BAJA PROV. POR OFICI

Baja provisional de oficio por SUNAT: SUNAT informa que dio de baja provisional el registro tributario por iniciativa propia.

BAJA MULT.INSCR. Y O

Baja por múltiples registros u otra causa: SUNAT informa la baja por múltiples registros u otra causa oficial.

SUSPENSION TEMPORAL

Suspensión temporal: SUNAT informa la suspensión temporal del registro tributario.

ANUL.PROVI.-ACTO ILI

Anulación provisional por acto ilícito: SUNAT informa una anulación provisional asociada a un acto ilícito.

ANULACION - ACTO ILI

Anulación por acto ilícito: SUNAT informa una anulación asociada a un acto ilícito.

ANULACION - ERROR SU

Anulación por error de SUNAT: SUNAT informa que el registro tributario fue anulado por error de la autoridad.

INHABILITADO-VENT.UN

Inhabilitado en ventanilla única: SUNAT informa que el contribuyente está inhabilitado en el sistema de ventanilla única.

NUM. INTERNO IDENTIF

Número de identificación interno: SUNAT clasifica este registro como número de identificación interno; no se deduce un estado activo.

OTROS OBLIGADOS

Otro obligado: SUNAT clasifica este registro como otro tipo de obligado; no se deduce un estado activo.

PENDIENTE DE INI. DE

Pendiente de inicio de actividades: SUNAT informa que el contribuyente está pendiente de iniciar actividades.

condicion string obligatorio

Condición publicada de domicilio fiscal, distinta del estado tributario.

- · HABIDO · NO APLICABLE · NO HABIDO · NO HALLADO · NO HALLADO CERRADO · NO HALLADO DESTINATA · NO HALLADO FALLECIO · NO HALLADO NO EXISTE · NO HALLADO NRO.PUERT · NO HALLADO OTROS MOT · NO HALLADO RECHAZADO · NO HALLADO SE MUDO D · PENDIENTE · POR VERIFICAR

ubigeo string obligatorio

Código distrital INEI de seis dígitos; conserva los ceros iniciales.

tipo_via string obligatorio

Abreviatura publicada del tipo de vía.

nombre_via string obligatorio

Nombre de vía publicado.

codigo_zona string obligatorio

Abreviatura publicada del tipo de zona.

tipo_zona string obligatorio

Nombre de zona publicado.

numero string obligatorio

Número exterior de dirección; no es una cantidad.

interior string obligatorio

Componente de interior o unidad de la dirección.

lote string obligatorio

Componente de lote de la dirección.

departamento string obligatorio

Componente de departamento o unidad; no es el departamento geográfico.

manzana string obligatorio

Componente de manzana de la dirección.

kilometro string obligatorio

Marcador de kilómetro de dirección; no es una distancia medida de la empresa.

Esquema de respuesta
{
  "type": "object",
  "properties": {
    "ruc": {
      "type": "string",
      "description": "Lookup by ruc as a string, preserving leading zeros. Accepted syntax and normalization are defined by the contract below."
    },
    "razon_social": {
      "type": "string",
      "description": "Registered legal name.",
      "x-latinfo-meaning": "text"
    },
    "estado": {
      "type": "string",
      "description": "Publisher status; interpret in the context of this dataset.",
      "x-latinfo-meaning": "text",
      "enum": [
        "ACTIVO",
        "BAJA DEFINITIVA",
        "BAJA DE OFICIO",
        "BAJA NO ACTIV. SISEV",
        "BAJA PROVISIONAL",
        "BAJA PROV. POR OFICI",
        "BAJA MULT.INSCR. Y O",
        "SUSPENSION TEMPORAL",
        "ANUL.PROVI.-ACTO ILI",
        "ANULACION - ACTO ILI",
        "ANULACION - ERROR SU",
        "INHABILITADO-VENT.UN",
        "NUM. INTERNO IDENTIF",
        "OTROS OBLIGADOS",
        "PENDIENTE DE INI. DE"
      ],
      "x-latinfo-vocabulary": {
        "id": "pe.sunat.tax_status.v1",
        "scope": "TAX_REGISTRATION",
        "empty_policy": "reject",
        "values": {
          "ACTIVO": {
            "code": "ACTIVE",
            "label_en": "Active",
            "explanation_en": "SUNAT reports the taxpayer registration as active."
          },
          "BAJA DEFINITIVA": {
            "code": "CANCELLED",
            "label_en": "Definitively cancelled",
            "explanation_en": "SUNAT reports the taxpayer registration as definitively cancelled."
          },
          "BAJA DE OFICIO": {
            "code": "CANCELLED",
            "label_en": "Cancelled by SUNAT",
            "explanation_en": "SUNAT reports that it cancelled the taxpayer registration on its own initiative."
          },
          "BAJA NO ACTIV. SISEV": {
            "code": "CANCELLED",
            "label_en": "Cancelled for no activity in SISEV",
            "explanation_en": "SUNAT reports cancellation because no activity was recorded in the SISEV verification system."
          },
          "BAJA PROVISIONAL": {
            "code": "SUSPENDED",
            "label_en": "Provisionally cancelled",
            "explanation_en": "SUNAT reports the taxpayer registration as provisionally cancelled."
          },
          "BAJA PROV. POR OFICI": {
            "code": "SUSPENDED",
            "label_en": "Provisionally cancelled by SUNAT",
            "explanation_en": "SUNAT reports that it provisionally cancelled the taxpayer registration on its own initiative."
          },
          "BAJA MULT.INSCR. Y O": {
            "code": "CANCELLED",
            "label_en": "Cancelled due to multiple registrations or another cause",
            "explanation_en": "SUNAT reports cancellation due to multiple registrations or another official cause."
          },
          "SUSPENSION TEMPORAL": {
            "code": "SUSPENDED",
            "label_en": "Temporarily suspended",
            "explanation_en": "SUNAT reports the taxpayer registration as temporarily suspended."
          },
          "ANUL.PROVI.-ACTO ILI": {
            "code": "SUSPENDED",
            "label_en": "Provisionally annulled for an unlawful act",
            "explanation_en": "SUNAT reports a provisional annulment associated with an unlawful act."
          },
          "ANULACION - ACTO ILI": {
            "code": "CANCELLED",
            "label_en": "Annulled for an unlawful act",
            "explanation_en": "SUNAT reports annulment associated with an unlawful act."
          },
          "ANULACION - ERROR SU": {
            "code": "CANCELLED",
            "label_en": "Annulled due to a SUNAT error",
            "explanation_en": "SUNAT reports that the taxpayer registration was annulled due to an authority error."
          },
          "INHABILITADO-VENT.UN": {
            "code": "SUSPENDED",
            "label_en": "Disabled in the single-window system",
            "explanation_en": "SUNAT reports the taxpayer as disabled in the single-window system."
          },
          "NUM. INTERNO IDENTIF": {
            "code": "UNKNOWN",
            "label_en": "Internal identification number",
            "explanation_en": "SUNAT classifies this record as an internal identification number; no active-state conclusion is made."
          },
          "OTROS OBLIGADOS": {
            "code": "UNKNOWN",
            "label_en": "Other obligated party",
            "explanation_en": "SUNAT classifies this record as another type of obligated party; no active-state conclusion is made."
          },
          "PENDIENTE DE INI. DE": {
            "code": "PENDING",
            "label_en": "Pending start of activities",
            "explanation_en": "SUNAT reports that the taxpayer is pending the start of activities."
          }
        }
      }
    },
    "condicion": {
      "type": "string",
      "description": "Published fiscal-address condition; distinct from taxpayer status.",
      "x-latinfo-meaning": "text",
      "enum": [
        "-",
        "HABIDO",
        "NO APLICABLE",
        "NO HABIDO",
        "NO HALLADO",
        "NO HALLADO CERRADO",
        "NO HALLADO DESTINATA",
        "NO HALLADO FALLECIO",
        "NO HALLADO NO EXISTE",
        "NO HALLADO NRO.PUERT",
        "NO HALLADO OTROS MOT",
        "NO HALLADO RECHAZADO",
        "NO HALLADO SE MUDO D",
        "PENDIENTE",
        "POR VERIFICAR"
      ]
    },
    "ubigeo": {
      "type": "string",
      "description": "Six-digit INEI district code; retain leading zeros.",
      "x-latinfo-meaning": "code"
    },
    "tipo_via": {
      "type": "string",
      "description": "Published street-type abbreviation.",
      "x-latinfo-meaning": "text"
    },
    "nombre_via": {
      "type": "string",
      "description": "Published street name.",
      "x-latinfo-meaning": "text"
    },
    "codigo_zona": {
      "type": "string",
      "description": "Published zone-type abbreviation.",
      "x-latinfo-meaning": "text"
    },
    "tipo_zona": {
      "type": "string",
      "description": "Published zone name.",
      "x-latinfo-meaning": "text"
    },
    "numero": {
      "type": "string",
      "description": "External street number; not a count.",
      "x-latinfo-meaning": "text"
    },
    "interior": {
      "type": "string",
      "description": "Interior/unit address component.",
      "x-latinfo-meaning": "text"
    },
    "lote": {
      "type": "string",
      "description": "Address lot component.",
      "x-latinfo-meaning": "text"
    },
    "departamento": {
      "type": "string",
      "description": "Apartment/unit address component; not the geographic department.",
      "x-latinfo-meaning": "text"
    },
    "manzana": {
      "type": "string",
      "description": "Address block component.",
      "x-latinfo-meaning": "text"
    },
    "kilometro": {
      "type": "string",
      "description": "Address kilometer marker; not a measured company distance.",
      "x-latinfo-meaning": "text"
    }
  },
  "required": [
    "ruc",
    "razon_social",
    "estado",
    "condicion",
    "ubigeo",
    "tipo_via",
    "nombre_via",
    "codigo_zona",
    "tipo_zona",
    "numero",
    "interior",
    "lote",
    "departamento",
    "manzana",
    "kilometro"
  ],
  "additionalProperties": false
}
400Identificador o consulta inválidos. Corrige la entrada antes de reintentar.
No se documentó un cuerpo de respuesta.
401Clave de API ausente o inválida. Autentícate antes de reintentar.
No se documentó un cuerpo de respuesta.
404Sin registro publicado o identificador fuera del alcance de personas jurídicas. No prueba que la empresa no exista.
No se documentó un cuerpo de respuesta.
429Se superó el límite de consultas por minuto. Espera el tiempo indicado en Retry-After antes de reintentar.
No se documentó un cuerpo de respuesta.
503Fuente no disponible. Informa indisponibilidad, no un resultado vacío.
No se documentó un cuerpo de respuesta.
Ejemplo JSON

Ejemplo ilustrativo del esquema. No es una respuesta en vivo.

{
  "ruc": "string",
  "razon_social": "string",
  "estado": "ACTIVO",
  "condicion": "-",
  "ubigeo": "string",
  "tipo_via": "string",
  "nombre_via": "string",
  "codigo_zona": "string",
  "tipo_zona": "string",
  "numero": "string",
  "interior": "string",
  "lote": "string",
  "departamento": "string",
  "manzana": "string",
  "kilometro": "string"
}

Procedencia y limitaciones

La cobertura varía por país y fuente pública. Un campo ausente no demuestra que el hecho no exista. Los registros públicos pueden tener retrasos o errores; revisa la evidencia y la fecha de la fuente antes de usar un resultado.