HALPII Tax ID in Zapier
Last reviewed 2026-11-21 · HALPII S.A.C.
Check the tax ID of a new customer or supplier inside a Zap, and act on the verdict: tag the record, hold the order, or tell the finance team.
Today: a webhook step
Zapier’s Webhooks by Zapier app can send the request (Zapier offers it on its paid plans).
- After your trigger (a new row, a new CRM contact, a form), add Webhooks by Zapier → GET.
- URL: for Peru
https://taxid.halpii.com/v1/pe/ruc/followed by the RUC field; for every other countryhttps://taxid.halpii.com/v1/validatewith the query string parameterscountryandid. Mexico, Colombia and Costa Rica have their own routes, listed below. With several countries in one sheet, use Paths by Zapier: one path for the dedicated routes and one for/v1/validate. - Headers:
X-API-Key= your key, andAccept=application/json. Get a no-cost key (100 lookups a month). - Add a Filter step on
Assessment Verdict: continue only when it is notpass, then send the message or update the record.
| Country | Endpoint |
|---|---|
| Peru (RUC) | GET /v1/pe/ruc/{ruc} |
| Mexico (RFC) | GET /v1/mx/rfc/{rfc} |
| Colombia (NIT) | GET /v1/co/nit/{nit} |
| Costa Rica (cédula) | GET /v1/cr/cedula/{cedula} |
| Every other country | GET /v1/validate?country=XX&id=… (optional &id_type=…) |
A malformed ID comes back as HTTP 400 with verdict fail; the webhook step treats a 400 as an error, so use Zapier’s error handling to continue. A 429 means a limit was reached; the x-ratelimit-reset header says when it resets. A 503 means the official source did not answer; it is not billed, and Autoreplay can run the step again later.
What the HALPII action does
The integration built for Zapier has one action, Validate Tax ID, and connects with an API key sent as X-API-Key (the connection test calls GET /v1/usage, which does not use a lookup). Inputs: country, tax ID and an optional ID type. Besides the full answer it returns four fields that are easy to map:
| Field | Example |
|---|---|
verdict | pass |
reasons_text | Taxpayer is active with SUNAT. Fiscal address is verified (HABIDO). |
status_label | Active |
data_as_of | The date of the registry data |
A malformed ID does not stop the Zap (verdict fail); a source that does not answer makes Zapier retry after the API’s Retry-After; a rejected key asks to reconnect. It is not on Zapier until HALPII pushes it from its own Zapier account.
What the verdict means
| Verdict | Meaning |
|---|---|
| pass | Registered and in good standing per the official source |
| review | Needs a human look: an unusual status, a not-found the source cannot rule out, or a check that stopped at the format. Mexico RFCs never get pass, because Mexico publishes no RFC registry |
| fail | Malformed, wrong check digit, not active, or on a tax-authority list |
Source: folder zapier of the halpii-taxid-integraciones repository. Zapier is a trademark of Zapier, Inc. HALPII Tax ID is an independent service run by HALPII S.A.C. and is not affiliated with or endorsed by Zapier or by any tax authority.