✅ ValidaLatam All validators · API docs · RapidAPI · ES

RUC EC Validator

Ecuadorian RUC (tax ID) · Issuer: SRI. SRI electronic receipts, supplier onboarding.

Free online validator

Validated with the public algorithm; we don't store your input.

Format

13 digits. Individual: cédula + 001. Private company: third digit 9. Public entity: third digit 6.

Check-digit algorithm

  1. Individual: validate the embedded cédula (mod 10) and branch suffix.
  2. Private: weights 4,3,2,7,6,5,4,3,2, mod 11.
  3. Public: weights 3,2,7,6,5,4,3,2 over 8 digits, mod 11.

Use cases

SRI electronic receipts, supplier onboarding.

Code examples

# curl (RapidAPI)
curl -X POST "https://validalatam.p.rapidapi.com/validate" -H "Content-Type: application/json" \
  -H "X-RapidAPI-Key: $RAPIDAPI_KEY" -H "X-RapidAPI-Host: validalatam.p.rapidapi.com" \
  -d '{"type":"EC_RUC","value":"0398413539001"}'
# Python
import requests
r = requests.post("https://validalatam.p.rapidapi.com/validate", json={"type": "EC_RUC", "value": "0398413539001"},
                 headers={"X-RapidAPI-Key": KEY, "X-RapidAPI-Host": "validalatam.p.rapidapi.com"})
print(r.json()["valid"], r.json()["formatted"])
// JavaScript (fetch)
const r = await fetch("https://validalatam.p.rapidapi.com/validate", { method: "POST",
  headers: { "Content-Type": "application/json", "X-RapidAPI-Key": KEY, "X-RapidAPI-Host": "validalatam.p.rapidapi.com" },
  body: JSON.stringify({ type: "EC_RUC", value: "0398413539001" }) });
const { valid, formatted, error } = await r.json();
# Response
{
  "valid": true,
  "type": "EC_RUC",
  "country": "EC",
  "input": "0398413539001",
  "normalized": "0398413539001",
  "formatted": "0398413539001"
}

API plans on RapidAPI

Free plan to get started; paid plans for production volume and batch validation (up to 1000 per request).

See plans on RapidAPI →

FAQ

How is the RUC EC check digit calculated?

Individual: validate the embedded cédula (mod 10) and branch suffix. Private: weights 4,3,2,7,6,5,4,3,2, mod 11. Public: weights 3,2,7,6,5,4,3,2 over 8 digits, mod 11.

What is the RUC EC format?

13 digits. Individual: cédula + 001. Private company: third digit 9. Public entity: third digit 6.

Does the API detect the RUC type?

Yes, details report natural, private or public.

Is this validator free?

Yes, the web tool is free. To integrate it, use the API: there's a free plan on RapidAPI.

Does the API store the numbers I validate?

No. Validation is deterministic, with no storage and no third-party lookups.

Other validators

Cédula EC · EcuadorCUIT · ArgentinaCUIL · ArgentinaDNI · ArgentinaCBU · ArgentinaCVU · ArgentinaCPF · BrazilCNPJ · BrazilRFC · Mexico