Skip to main content
Resolves Peruvian taxpayer information from SUNAT. Three lookups mirror SUNAT’s own search tabs: by RUC, by identity document, and by name (razón social). The first two return one taxpayer’s full record; the name search returns a list of matches.

By RUC

POST /pe/sunat/ruc/v1

By document

POST /pe/sunat/document/v1

By name

POST /pe/sunat/name/v1
The name search returns up to 30 matches (SUNAT’s cap). When capped is true the results are incomplete: narrow the query or look the chosen RUC up directly.

Response

The RUC and document lookups return one taxpayer record. The name lookup returns query, count, capped, and contributors[], each with ruc, name, location, and status.
The old POST /pe/sunat/taxpayers/v1 (combined RUC/DNI by document length) still works but is deprecated. Prefer /pe/sunat/ruc or /pe/sunat/document.
These lookups can take longer than a typical request. They are async jobs. By default the request waits inline and returns { data }, or you can poll / use a callback_url.

Full reference

Schemas, response fields, and an interactive playground.