HALPII Tax ID in Make
Last reviewed 2026-11-21 · HALPII S.A.C.
Validate tax IDs inside a Make scenario with the HTTP module, then route on the verdict: update the row, tag the customer, or alert someone.
Status. Not listed on Make. The HTTP module works in any scenario today: import the blueprint on this page, or set the module by hand as below.
Import the blueprint
- In Make, create a scenario, open the ⋯ menu at the bottom of the editor and select Import Blueprint. Choose the blueprint at the end of this page, saved as a
.jsonfile. - Three modules appear: Set multiple variables (country, tax ID and the route) → HTTP → Make a request → Set multiple variables (the result).
- In the HTTP module, replace
TU_CLAVEin theX-API-Keyheader with your key. Get a no-cost key (100 lookups a month); without the header the API allows a few lookups a day per network. - Select Run once: the last module shows
verdict: passfor the sample RUC 20615614841 (HALPII S.A.C.). Then replace the first module with your trigger and map its fields.
The HTTP module, by hand
| Setting | Value |
|---|---|
| URL | Peru https://taxid.halpii.com/v1/pe/ruc/{{RUC}}; Mexico, Colombia and Costa Rica as in the table below; every other country https://taxid.halpii.com/v1/validate |
| Method | GET |
| Headers | X-API-Key = your key |
| Query string (other countries) | country = two-letter code, id = the tax ID, optional id_type |
| Parse response | Yes |
| Evaluate all states as errors | No, so a malformed ID (HTTP 400, verdict fail), a 429 or a 503 reach the next module as data |
| 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=…) |
Map data.assessment.verdict, data.assessment.reasons, data.legal_name and data.verification_level. Then add a Router:
- status 200 or 400: an answer; branch on the verdict;
- status 429: a limit was reached; the
x-ratelimit-resetheader says when it resets; - status 503: the official source did not answer; it is not billed; wait and repeat the request, or use a Break error handler.
The blueprint
halpii-taxid-http.blueprint.json
{
"name": "HALPII Tax ID: validar un número tributario (módulo HTTP)",
"flow": [
{
"id": 1,
"module": "util:SetVariables",
"version": 1,
"parameters": {},
"mapper": {
"variables": [
{
"name": "country",
"value": "PE"
},
{
"name": "tax_id",
"value": "20615614841"
},
{
"name": "route",
"value": "{{switch(upper(trim(country)); \"PE\"; \"pe/ruc/\"; \"MX\"; \"mx/rfc/\"; \"CO\"; \"co/nit/\"; \"CR\"; \"cr/cedula/\"; \"\")}}"
}
],
"scope": "roundtrip"
},
"metadata": {
"designer": {
"x": 0,
"y": 0
},
"restore": {}
}
},
{
"id": 2,
"module": "http:ActionSendData",
"version": 3,
"parameters": {
"handleErrors": false,
"useNewZLibDeCompress": true
},
"mapper": {
"url": "https://taxid.halpii.com/v1/{{if(1.route; 1.route + encodeURL(trim(1.tax_id)); \"validate\")}}",
"method": "get",
"headers": [
{
"name": "Accept",
"value": "application/json"
},
{
"name": "X-API-Key",
"value": "TU_CLAVE"
}
],
"qs": [
{
"name": "country",
"value": "{{upper(trim(1.country))}}"
},
{
"name": "id",
"value": "{{trim(1.tax_id)}}"
}
],
"bodyType": "",
"parseResponse": true,
"authUser": "",
"authPass": "",
"timeout": "30",
"shareCookies": false,
"ca": "",
"rejectUnauthorized": true,
"followRedirect": true,
"useQuerystring": false,
"gzip": true,
"useMtls": false,
"followAllRedirects": false
},
"metadata": {
"designer": {
"x": 300,
"y": 0
}
}
},
{
"id": 3,
"module": "util:SetVariables",
"version": 1,
"parameters": {},
"mapper": {
"variables": [
{
"name": "http_status",
"value": "{{2.statusCode}}"
},
{
"name": "verdict",
"value": "{{ifempty(2.data.assessment.verdict; \"error\")}}"
},
{
"name": "reasons",
"value": "{{join(2.data.assessment.reasons; \" \")}}"
},
{
"name": "legal_name",
"value": "{{2.data.legal_name}}"
},
{
"name": "verification_level",
"value": "{{2.data.verification_level}}"
},
{
"name": "error",
"value": "{{2.data.error}}"
},
{
"name": "resets_at",
"value": "{{2.headers.`x-ratelimit-reset`}}"
}
],
"scope": "roundtrip"
},
"metadata": {
"designer": {
"x": 600,
"y": 0
}
}
}
],
"metadata": {
"instant": false,
"version": 1,
"scenario": {
"roundtrips": 1,
"maxErrors": 3,
"autoCommit": true,
"autoCommitTriggerLast": true,
"sequential": false,
"confidential": false,
"dataloss": false,
"dlq": false
},
"designer": {
"orphans": []
},
"zone": "us1.make.com"
}
}
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 make of the halpii-taxid-integraciones repository. Make is a trademark of its owner. HALPII Tax ID is an independent service run by HALPII S.A.C. and is not affiliated with or endorsed by Make or by any tax authority.