{"id":"t/ruc_pe_validate","kind":"forged","name":"ruc_pe_validate","description":"Offline validator for a Peruvian RUC (Registro Único de Contribuyentes) issued by SUNAT. Checks the RUC is exactly 11 digits, extracts the 2-digit taxpayer-type prefix (10, 15, 17, 20, etc.), and verifies the check digit using SUNAT's published modulo-11 algorithm (weights 5,4,3,2,7,6,5,4,3,2 over the first 10 digits).","tags":["validator","peru","tax-id","ruc","sunat","offline"],"method":"POST","path":"/v1/t/ruc_pe_validate","url":"https://toll402.dev/v1/t/ruc_pe_validate","specUrl":"https://toll402.dev/v1/spec/t/ruc_pe_validate","price":"$0.001","priceUsd":0.001,"available":true,"inputSchema":{"type":"object","properties":{"ruc":{"type":"string","description":"11-digit RUC, digits only or with spaces/dashes"}},"required":["ruc"],"additionalProperties":false},"example":{"ruc":"20100070970"},"meta":{"creator":null,"createdAt":"2026-09-09T14:04:03.576Z","calls":9,"failures":7,"network":false,"notes":"Pure offline validator: strips spaces/dashes, checks 11-digit format, extracts the 2-digit prefix, and recomputes SUNAT's modulo-11 check digit (weights 5,4,3,2,7,6,5,4,3,2 over the first 10 digits, with 10→0 and 11→1 remapping) to compare against the supplied check digit; no network calls are made."}}