HALPIITax ID

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.

Status. Not on Zapier yet. The HALPII integration (a Validate Tax ID action, built with the Zapier CLI) passes Zapier’s schema validation locally, but it has not been pushed to Zapier. Today you can call the API from a Zap with a webhook step, as below.

Today: a webhook step

Zapier’s Webhooks by Zapier app can send the request (Zapier offers it on its paid plans).

  1. After your trigger (a new row, a new CRM contact, a form), add Webhooks by Zapier → GET.
  2. URL: for Peru https://taxid.halpii.com/v1/pe/ruc/ followed by the RUC field; for every other country https://taxid.halpii.com/v1/validate with the query string parameters country and id. 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.
  3. Headers: X-API-Key = your key, and Accept = application/json. Get a no-cost key (100 lookups a month).
  4. Add a Filter step on Assessment Verdict: continue only when it is not pass, then send the message or update the record.
CountryEndpoint
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 countryGET /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:

FieldExample
verdictpass
reasons_textTaxpayer is active with SUNAT. Fiscal address is verified (HABIDO).
status_labelActive
data_as_ofThe 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

VerdictMeaning
passRegistered and in good standing per the official source
reviewNeeds 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
failMalformed, 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.