By RUC
POST /pe/sunat/ruc/v1
By document
POST /pe/sunat/document/v1
By name
POST /pe/sunat/name/v1
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.