- Legal name and trade name for a cédula jurídica, cédula física, DIMEX or NITE
- Tax regime (régimen) and taxpayer status (situación) as held by Hacienda
- Registered economic activities with CIIU codes and their status
- Official Ministerio de Hacienda source used by the national e-invoicing system
- Per-tenant key, prepaid pricing and full query logging through Apivom Atlas
Costa Rica Taxpayer Lookup API (Hacienda ATV)
Look up any Costa Rican taxpayer by identification number in the Ministry of Finance's ATV register: legal and trade name, tax regime, registration status and economic activities — the check behind every electronic invoice in Costa Rica, through Apivom Atlas.
What you can do
Use cases
- E-invoice receiver validation — Confirm the identification number, name and tax status of the receiver before generating a factura electrónica so Hacienda does not reject it.
- Customer onboarding — Fill the legal name, regime and activity codes of a Costa Rican customer from the official record instead of manual entry.
- Periodic master-data checks — Re-verify active customers' status and activities on a schedule to catch deregistrations or regime changes that affect invoicing.
Costa Rica's Ministerio de Hacienda operates the Administración Tributaria Virtual (ATV) and publishes a taxpayer lookup that the mandatory electronic-invoicing system relies on. Apivom Atlas exposes it as a single route: pass an identification number — a 10-digit cédula jurídica for companies, a 9-digit cédula física for individuals, or a DIMEX/NITE — and receive the taxpayer's legal and trade names, tax regime, status and registered economic activities. Use it to validate the receiver before issuing a factura electrónica and to keep customer master data aligned with Hacienda. Responses are cached server-side so repeat lookups are free, and every call is logged in your Atlas portal.
Code sample
Replace YOUR_KEY with the API key issued in Apivom Atlas and run it from your backend.
curl -X POST https://atlas.apivom.com/one/api/ext/cr-hacienda-atv/v1/query/consulta-identificacion \
-H "x-api-key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"query":{"identificacion":"3101123456"}}'Per-tenant API key (x-api-key header) issued in Apivom Atlas. No upstream account or credential is needed — the public source is called server-side; prepaid balance, per-query pricing.
Frequently asked questions
Which identification types are accepted?
Cédula jurídica (companies), cédula física (nationals), DIMEX (residents) and NITE (special tax ids). Pass the number without hyphens or spaces.
What does the status field tell me?
Whether the taxpayer is registered and active with Hacienda. An inactive or deregistered status is a strong signal to pause invoicing and ask the customer to regularise.
How is the API billed?
Prepaid and per query: you top up a balance in Apivom Atlas and each successful query debits the route price shown there. Identical repeat queries are served from the server-side cache free of charge ("cached": true in the response); add ?force=true to refresh at the route price. HTTP 402 means the balance needs a top-up.
How do I authenticate and where do I see my usage?
Every request carries your tenant API key in the x-api-key header; keys are issued and rotated in Apivom Atlas. The portal logs every query with the full request and response payload, so finance and engineering share one audit trail.
More Atlas integrations
AI integration guide (llms.txt)
Machine-readable markdown — feed it to your AI assistant as integration instructions.