Illustration of a Peru RUC lookup with SUNAT data: a company building, a tax document with a seal and an active status

Peru RUC Lookup API with SUNAT Data (2026): ACTIVO Status, HABIDO Condition and 13 Fields in 1 Call

Table of Contents
Share this article

Short answer: To validate a Peruvian RUC by API, send a GET request to https://api.verifik.co/v3/pe/company with documentType=RUC and the number in documentNumber. Verifik returns the legal business name, taxpayer status (for example, ACTIVO), taxpayer condition (for example, HABIDO) and a broken-down address. Each lookup uses smartCHECK credits, with plans from $49 a month.

Asking a supplier for its RUC is easy. Knowing whether that RUC is active, whether the taxpayer is listed as HABIDO and whether the legal name matches the invoice is the hard part. Verifik’s Peru business verification API answers all three in 1 call: the GET /v3/pe/company endpoint takes the RUC and returns 13 taxpayer fields. According to the docs, the integration connects with official Peruvian government sources (SUNAT).

This guide walks through what each field means, a request and response example taken from the docs, the documented errors, how the API compares with downloading SUNAT’s padrón reducido, and what it costs.

What the Peru RUC lookup API returns

A 200 response carries a data object with 13 fields, easiest to read in 3 groups:

  • Identification: documentType (always RUC), documentNumber and businessName, the legal business name (razón social).
  • Tax standing: stateTaxpayer, the taxpayer status (ACTIVO in the example), and conditionTaxpayer, the taxpayer condition (HABIDO in the example).
  • Address: address (full address including district, province and department), simpleaddress (street and number only), nameVia, zoneCode, zoneType, district, province and state.

You also get a signature object with a date, time and the message “Certified by Verifik.co”, plus a unique id for the lookup that you can store as evidence.

One detail that trips up integrations: state is not the taxpayer status. In the docs example its value is LIMA, so it is a location field. The tax status you should evaluate lives in stateTaxpayer.

The RUC registry is run by SUNAT, Peru’s Superintendencia Nacional de Aduanas y de Administración Tributaria. With Verifik you call a REST API with your token and get JSON ready for your KYB flow.

You can try what this Peru RUC lookup API guide covers in your own account: create a Verifik account.

How to validate a RUC step by step

You need your Verifik token and 2 required parameters:

  • documentType: the only allowed value is RUC.
  • documentNumber: the company’s RUC number (the one in the example has 11 digits).

Here is the Python example from the docs, reading the token from an environment variable:

import os, requests

url = "https://api.verifik.co/v3/pe/company"
headers = {"Accept": "application/json", "Authorization": f"Bearer {os.getenv('VERIFIK_TOKEN')}"}
params = {"documentType": "RUC", "documentNumber": "20605980008"}

r = requests.get(url, headers=headers, params=params)
print(r.json())

And this is the 200 response the docs show for that RUC:

{
  "data": {
    "address": "AV. VICTOR ANDRES BELAUNDE NRO. 332 INT. 702 URB. EL ROSARIO - LIMA LIMA SAN ISIDRO",
    "businessName": "MERCADOLIBRE PERU S.R.L.",
    "conditionTaxpayer": "HABIDO",
    "district": "SAN ISIDRO",
    "documentNumber": "20605980008",
    "documentType": "RUC",
    "nameVia": "VICTOR ANDRES BELAUNDE",
    "province": "LIMA",
    "simpleaddress": "AV. VICTOR ANDRES BELAUNDE NRO. 332 INT. 702 URB. EL ROSARIO",
    "state": "LIMA",
    "stateTaxpayer": "ACTIVO",
    "zoneCode": "URB.",
    "zoneType": "EL ROSARIO"
  },
  "signature": {
    "dateTime": "October 10, 2025 5:35 PM",
    "message": "Certified by Verifik.co"
  },
  "id": "RLS8G"
}

The docs include the same example in Node.js, PHP and Go, and note that you can contact support if you need the full dataset fields.

Want to check your suppliers’ RUCs? Create your free Verifik account and run your first lookup today.

Documented error codes

These are the error responses listed in the docs and how to handle them:

  1. 404 NotFound (“Record not found.”): there is no record for that number. Ask the supplier to confirm its RUC before rejecting it.
  2. 409 MissingParameter (“missing documentNumber” or “missing documentType”): a required parameter is missing.
  3. 409 MissingParameter (“documentType must be one of: [RUC]”): you sent another document type. Individuals with a DNI use a different endpoint.
  4. 401 UNAUTHORIZED (“Authentication required”): the token is missing or invalid.
  5. 500 InternalServerError (“Server error.”): retry later and keep the case pending instead of approving or rejecting it.

API vs SUNAT’s padrón reducido: which one fits

SUNAT publishes the padrón reducido RUC on its website as a downloadable ZIP file, alongside a second file for annex locations (locales anexos). Today the page reads “Actualizado al 29/10/2026”. There is also SUNAT’s Consulta RUC web page, built for one search at a time and protected by reCAPTCHA, so it is not meant for automation.

Here is how the 2 routes compare when you validate RUCs from your own system:

  • Integration: with the padrón you download the ZIP, unzip it, load it into your database and build the search yourself. With the API you make 1 GET request and read the JSON.
  • Freshness: the padrón is a dated snapshot; to avoid validating against stale data you have to repeat the download and load every time SUNAT updates it. With the API you check at the moment each supplier or customer signs up.
  • Evidence: the padrón gives you no per-lookup receipt. The API returns an id and a signature for every validation, handy for KYB audits.
  • Cost: the padrón is a free download but costs you infrastructure and maintenance. The API uses credits per lookup.

Rule of thumb: if you need to analyze thousands of RUCs offline in batch, the padrón can make sense. If you validate companies as they register on your platform, the API saves you the data pipeline.

Business rules for KYB in Peru

  1. Status and condition together: auto-approve only when stateTaxpayer is ACTIVO and conditionTaxpayer is HABIDO. Route any other value to manual review.
  2. Legal name: compare businessName with the name the supplier typed, normalizing case, periods and suffixes such as S.R.L. or S.A.C.
  3. Address: use district, province and state to cross-check the declared location, and simpleaddress when you only need the street and number.
  4. Pre-validation: accept digits only in the RUC field to avoid 404 and 409 errors that eat support time.
  5. Evidence: store the id and signature of every response with the supplier’s file.

If you have read our guide to instant business verification in Peru using official RUC data, this article is its technical companion. For other countries, see how to automate business verification in Panama with RUC data and RUES validation for Colombian companies. If you also verify the legal representative, check out comprehensive DNI verification for Peruvian citizens. And if you need to combine RUC, DNI and biometrics in one onboarding flow, see our Peru KYC API guide.

How much RUC validation costs with Verifik

Each lookup is deducted from your smartCHECK plan credits. According to the smartCHECK pricing page:

  • Starter: $49 a month, or $490 a year with $588 in credits.
  • Basic: $129 a month, or $1,290 a year with $1,548 in credits.
  • Plus: $299 a month, or $2,990 a year with $3,588 in credits.
  • Business: $649 a month, or $6,490 a year with $7,788 in credits.

Annual plans include 2 free months, and smartCHECK brings together more than 90 APIs from more than 15 countries. The page does not list a per-lookup price for this endpoint; if you need the exact cost per call, ask when you book a session. Before integrating, also review the smartCHECK terms and conditions.

Start validating RUCs today

Automating RUC lookups takes the padrón workload off your team and gives you a signed response for every supplier you approve. Check the endpoint documentation and connect the validation to your onboarding form.

Ready to start? Create your free Verifik account or book a demo to see how to add RUC validation to your KYB flow.

Miguel Treviño - Co-founder and CTO, Verifik

Frequently Asked Questions (FAQs)

➖

Which Verifik endpoint validates a Peruvian RUC?

GET https://api.verifik.co/v3/pe/company, with documentType=RUC and the number in documentNumber. You need a Verifik Bearer token.

➕

Does the API tell me if the RUC is ACTIVO and HABIDO?

Yes. The stateTaxpayer field carries the taxpayer status and conditionTaxpayer the taxpayer condition; in the docs example they are ACTIVO and HABIDO.

➕

What's the difference between state and stateTaxpayer?

state is a location field (LIMA in the example). The taxpayer's tax status is in stateTaxpayer.

➕

Why not just use SUNAT's padrón reducido?

You can, but you will have to download the ZIP, load it and keep it updated yourself. The API validates on demand and returns an id and signature per lookup.

➕

What happens if the RUC doesn't exist?

The API responds 404 with the message "Record not found." Confirm the number with the supplier before rejecting it.

Explore more articles