Pe Ruc
pe_rucLook up one Peruvian taxpayer by its 11-digit RUC in SUNAT's published taxpayer register: registered name (razon social), taxpayer status (active, deregistered, suspended ...), domicile condition (habido / no habido ...) and, for companies, the registered address with its ubigeo and department. Companies and organisations only (RUC prefix 20, plus government offices 00): natural persons (RUCs beginning 10, 15, 17) are excluded and answer found:false with reason natural_person_not_served, no name, status or address. Use for "is RUC 20100070970 real and active", KYC and counterparty checks, or resolving a RUC found on an invoice.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"ruc": "20100070970"
},
"name": "pe_ruc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ruc | Yes | The 11-digit RUC, digits only, e.g. "20100070970". |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ruc | No | ||
| hint | No | ||
| name | No | ||
| found | No | ||
| reason | No | ||
| source | No | ||
| status | No | ||
| ubigeo | No | ||
| address | No | ||
| message | No | ||
| is_active | No | ||
| data_as_of | No | ||
| department | No | ||
| holder_type | No | ||
| status_gloss | No | ||
| address_parts | No | ||
| department_code | No | ||
| address_withheld | No | ||
| check_digit_valid | No | ||
| holder_type_basis | No | ||
| domicile_condition | No | ||
| domicile_condition_gloss | No |