Consultar por RUC
https://api.latinfo.dev/pe/ruc/{ruc}
Registro tributário e componentes do endereço fiscal. Cobertura: RUC de pessoas jurídicas iniciados por 20 no cadastro reduzido de contribuintes. Consulte por ruc como texto, preservando zeros iniciais. O contrato abaixo define a sintaxe e normalização aceitas. departamento é um componente de apartamento ou unidade, não geografia. A situação tributária e a condição do endereço fiscal são distintas. Retorna um registro. A data de importação não é a data do dado; consulte os cabeçalhos de atualização.
Contrato da fonte
- Publicador
- SUNAT, Peru
- Cobertura
- RUC de pessoas jurídicas iniciados por 20 no cadastro reduzido de contribuintes.
- Significado do registro
- Registro tributário e componentes do endereço fiscal.
- Identificador
- Consulte por ruc como texto, preservando zeros iniciais. O contrato abaixo define a sintaxe e normalização aceitas.
- Padrão aceito
^\d{11}$- Quantidade de registros
one- Licença
- A permissão de reutilização não foi verificada. Acesso público não equivale a uma licença de reutilização.
Limitações conhecidas
- departamento é um componente de apartamento ou unidade, não geografia. A situação tributária e a condição do endereço fiscal são distintas.
Parâmetros
rucstringCaminhoobrigatórioConsulte por ruc como texto, preservando zeros iniciais. O contrato abaixo define a sintaxe e normalização aceitas.
Example: 20100047218
Exemplo de requisição
curl https://api.latinfo.dev/pe/ruc/20100047218 \
-H "Authorization: Bearer $LATINFO_API_KEY"
Respostas
200Registros publicados da fonte. Dados ausentes não comprovam ausência de riscos nem um resultado negativo.
Cabeçalhos da resposta
X-Latinfo-Imported-AtData de importação, diferente da data do dado governamental.
X-Source-Updated-AtData de atualização do publicador, quando conhecida.
X-Latest-Observation-AtÚltima data de observação nesta página, quando conhecida. Para o histórico paginado completo, preserve a data de cada página ou use a maior entre todas. Nunca use a data de importação como data do dado.
X-Freshness-Statusstring
CURRENT · DELAYED · STALE · UNKNOWNX-Credits-CostCabeçalho de compatibilidade; sempre zero porque a Latinfo é grátis.
LinkAtribuição, avisos de alterações e condições de reutilização em rel=describedby; licença declarada verificada em rel=license. Respostas paginadas também incluem rel=next quando existe outra página.
X-Source-GenerationGeração opaca e imutável da fonte. Siga o Link protegido da próxima página ao obter um histórico.
application/jsonCampos da resposta
ruc string obrigatórioConsulte por ruc como texto, preservando zeros iniciais. O contrato abaixo define a sintaxe e normalização aceitas.
razon_social string obrigatórioRazão social registrada.
estado string obrigatórioEstado da fonte; interprete-o no contexto deste conjunto de dados.
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 dos valores
TAX_REGISTRATION
ACTIVOAtivo: SUNAT informa que o registro tributário está ativo.
BAJA DEFINITIVABaixa definitiva: SUNAT informa a baixa definitiva do registro tributário.
BAJA DE OFICIOBaixa de ofício pela SUNAT: SUNAT informa que baixou o registro tributário por iniciativa própria.
BAJA NO ACTIV. SISEVBaixa por falta de atividade no SISEV: SUNAT informa a baixa por ausência de atividade registrada no sistema de verificação SISEV.
BAJA PROVISIONALBaixa provisória: SUNAT informa a baixa provisória do registro tributário.
BAJA PROV. POR OFICIBaixa provisória de ofício pela SUNAT: SUNAT informa que baixou provisoriamente o registro tributário por iniciativa própria.
BAJA MULT.INSCR. Y OBaixa por múltiplos registros ou outra causa: SUNAT informa a baixa por múltiplos registros ou outra causa oficial.
SUSPENSION TEMPORALSuspensão temporária: SUNAT informa a suspensão temporária do registro tributário.
ANUL.PROVI.-ACTO ILIAnulação provisória por ato ilícito: SUNAT informa uma anulação provisória associada a um ato ilícito.
ANULACION - ACTO ILIAnulação por ato ilícito: SUNAT informa uma anulação associada a um ato ilícito.
ANULACION - ERROR SUAnulação por erro da SUNAT: SUNAT informa que o registro tributário foi anulado por erro da autoridade.
INHABILITADO-VENT.UNDesabilitado na janela única: SUNAT informa que o contribuinte está desabilitado no sistema de janela única.
NUM. INTERNO IDENTIFNúmero de identificação interno: SUNAT classifica este registro como número de identificação interno; não se deduz um estado ativo.
OTROS OBLIGADOSOutro obrigado: SUNAT classifica este registro como outro tipo de obrigado; não se deduz um estado ativo.
PENDIENTE DE INI. DEPendente de início das atividades: SUNAT informa que o contribuinte está pendente de iniciar atividades.
condicion string obrigatórioCondição publicada do endereço fiscal, distinta da situação tributária.
- · 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 obrigatórioCódigo distrital INEI de seis dígitos; preserve os zeros iniciais.
tipo_via string obrigatórioAbreviatura publicada do tipo de via.
nombre_via string obrigatórioNome da via publicado.
codigo_zona string obrigatórioAbreviatura publicada do tipo de zona.
tipo_zona string obrigatórioNome da zona publicado.
numero string obrigatórioNúmero externo do endereço; não é uma quantidade.
interior string obrigatórioComponente de interior ou unidade do endereço.
lote string obrigatórioComponente de lote do endereço.
departamento string obrigatórioComponente de apartamento ou unidade; não é o departamento geográfico.
manzana string obrigatórioComponente de quadra do endereço.
kilometro string obrigatórioMarcador de quilômetro do endereço; não é uma distância medida da empresa.
Esquema de resposta
{
"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 ou consulta inválidos. Corrija a entrada antes de tentar novamente.
401Chave de API ausente ou inválida. Autentique-se antes de tentar novamente.
404Sem registro publicado ou identificador fora do escopo de pessoas jurídicas. Não prova que a empresa não existe.
429Limite de consultas por minuto excedido. Aguarde o tempo indicado em Retry-After antes de tentar novamente.
503Fonte indisponível. Informe indisponibilidade, não um resultado vazio.
Exemplo JSON
Exemplo ilustrativo do esquema. Não é uma resposta ao 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"
}Procedência e limitações
A cobertura varia por país e fonte pública. Um campo ausente não comprova que o fato não exista. Os registros públicos podem ter atrasos ou erros; revise as evidências e a data da fonte antes de usar um resultado.