How to Verify Multiple RUCs in Peru Without Checking Each One Manually
If you've ever built a signup flow, a vendor onboarding form, or a B2B marketplace targeting Peru, you've probably run into the RUC (Registro Único de Contribuyentes) problem: every business in Peru has one, SUNAT (the Peruvian tax authority) tracks its status, and if you're validating user-submitted business data, you eventually need a way to check more than one RUC at a time.
Checking a single RUC manually is easy enough — paste the number into a lookup tool, get back the status, condición, and razón social. But the moment you're dealing with a list of 20, 50, or 200 RUCs (say, a batch of vendor applications, or a CSV someone handed you before a partnership meeting), doing that one by one stops being a workflow and starts being a waste of an afternoon.
Why this matters technically
A RUC isn't just an ID number — it's tied to live state that changes:
- Estado: Activo, Suspendido, Baja Provisional, Baja de Oficio, or Baja Definitiva. A business can go from active to inactive without any public announcement.
- Condición: Habido or No Habido. "No Habido" means SUNAT couldn't verify the business at its registered fiscal address — a real red flag if you're about to onboard them as a vendor or counterparty.
- Razón social: the legal registered name, which may differ from the commercial/trade name a business actually uses publicly.
If your app is ingesting business data from users (marketplaces, freelance platforms, supplier directories), any of these three fields can be stale or wrong by the time you check them, so batch verification isn't a one-time import step — it's something you want to be able to re-run.
The manual bottleneck
Most "consulta RUC" tools are built for a single lookup: type a RUC, get a result, done. That's fine for a one-off check, but it doesn't scale when you have a list. If you're a developer handling this for internal tooling, you end up either:
- Writing your own scraper against SUNAT's public lookup (fragile, rate-limited, breaks on layout changes), or
- Manually pasting RUCs into a search box one at a time.
Neither is great. The scraper approach works until SUNAT changes something, and the manual approach doesn't scale past a handful of records.
A simpler middle ground
For cases where you don't need a full API integration but still want to check a batch of RUCs quickly without scripting anything, I've been using vía Consulta RUC Perú, which lets you check multiple RUCs in one pass instead of one at a time — useful for quickly validating a vendor list or a CSV export before deciding whether to build something more permanent.
It's not a replacement for a proper API if you're validating RUCs on every signup in production, but it's a decent stopgap for ad-hoc batch checks, and it saved me from writing a throwaway script for what was ultimately a one-time cleanup task.
Takeaway
If your product touches Peruvian businesses in any way — marketplaces, fintech, supplier verification, invoicing tools — build in an assumption that RUC status and condición can change, and that you'll eventually need to re-verify data in bulk, not just at signup. Whether you solve that with your own integration or a quick batch-lookup tool depends on scale, but either way, don't assume a RUC checked once stays valid forever.
