Inventory/status of one managed tenant
const url = 'https://api.emite.cr/v1/partner/tenants/example';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.emite.cr/v1/partner/tenants/exampleThe row GET /partner/tenants lists for this company, plus credentials per environment — configured, the .p12 expiry (certExpiresAt), and since when Hacienda refuses the ATV user and password with its own words (atvRejectedAt, atvRejectionDetail: the pull version of the credentials.rejected webhook) — and activeApiKeys, the data-plane keys this partner minted for it that are not revoked, both environments. 404 PARTNER_TENANT_NOT_FOUND for a company this partner does not manage.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Header Parameters
Section titled “Header Parameters”Partner app credential (ecp_*)
Responses
Section titled “Responses”object
Identifier of the company — the :id of the /partner/tenants/:id/* routes.
Hacienda identification type: 01 cédula física, 02 cédula jurídica, 03 DIMEX, 04 NITE, 05 foreign, 06 no contribuyente.
Identification number, as provisioned (uppercase).
Legal name (razón social) — <Nombre> on its documents.
Trade name shown on its documents; null when it has none.
When the company was provisioned — for a revived one, the first time, not the revival.
What the company is missing to emit in production.
object
Production credentials are uploaded and Hacienda does not refuse them (credentials.production.atvRejectedAt is null on the detail): refused ones keep every document from reaching Hacienda just like missing ones.
The company has at least one branch and one terminal. A provisioned company starts with branch 001 and its terminal 00001.
The company has at least one economic activity — sent at provisioning (economicActivityCode) or brought from the registry with syncEconomicActivities.
The fiscal address (province, canton and district) is set — every document carries it as the issuer <Ubicacion>, and emission answers 422 TENANT_LOCATION_MISSING without it. Set it at provisioning or through profile.location of the config endpoint.
Informational, not a requirement: some production counter is above zero — numbering was seeded (a migration from another provider) or a document already got a number.
The identification fits the 12 characters the 50-character clave reserves for the issuer. An alphanumeric cédula jurídica (decree 44648-MJ) fits since the Anexo of 2026-04-22, padded with zeros; false means an identification no issuer has, and emission answers 422 ISSUER_ALPHANUMERIC_ID_UNSUPPORTED. A company with an alphanumeric cédula can issue but cannot answer a purchase yet (the MensajeReceptor still asks for digits): 422 ACCEPTANCE_ALPHANUMERIC_ID_UNSUPPORTED.
true when every requirement is met: credentials, branchAndTerminal, economicActivity, location and issuerIdSupported (sequencesSeeded does not count). Emission can still be refused for reasons outside this checklist, such as the monthly cap in usage.
This month's production documents against the cap.
object
Production documents numbered in the current Costa Rica calendar month and counted against monthlyDocCap; one that Hacienda rejects, or that ends in error, stops counting.
The partner app's monthly cap per company — a safety brake, not a price: once documentsUsed reaches it, emission answers 402 DOCUMENT_QUOTA_EXCEEDED until the next month.
documentsUsed as a whole percentage of monthlyDocCap; above 100 if the cap was lowered after the documents were counted.
The ATV credentials of each environment — their state, never their secrets.
object
Sandbox credentials.
object
Whether credentials — .p12, PIN, ATV user and password — are stored for this environment. Their secrets are never returned.
When the stored .p12 certificate expires — poll it and get the renewed one uploaded before then. null when nothing is stored, or when the stored certificate cannot be read.
Since when Hacienda refuses this environment's ATV user and password (its identity provider's own verdict); null while nothing is known against them. While set, they are not presented to Hacienda again: the company's documents keep their number and wait as signed — no error, no 24-hour timeout — and go out on their own once the credentials are uploaded again or the daily check finds them working. The pull version of the credentials.rejected / credentials.restored webhooks.
What Hacienda's identity provider answered when it refused them; null when atvRejectedAt is.
Production credentials — the ones readiness.credentials is about.
object
Whether credentials — .p12, PIN, ATV user and password — are stored for this environment. Their secrets are never returned.
When the stored .p12 certificate expires — poll it and get the renewed one uploaded before then. null when nothing is stored, or when the stored certificate cannot be read.
Since when Hacienda refuses this environment's ATV user and password (its identity provider's own verdict); null while nothing is known against them. While set, they are not presented to Hacienda again: the company's documents keep their number and wait as signed — no error, no 24-hour timeout — and go out on their own once the credentials are uploaded again or the daily check finds them working. The pull version of the credentials.rejected / credentials.restored webhooks.
What Hacienda's identity provider answered when it refused them; null when atvRejectedAt is.
Data-plane keys this partner minted for the company, in both environments, that were never revoked; a key still in a rotation grace is no longer counted.
Example
{ "identificationType": "01", "identificationNumber": "3101234567", "name": "Restaurante El Fogón S.A.", "commercialName": "El Fogón", "usage": { "documentsUsed": 1250, "monthlyDocCap": 30000, "percentUsed": 4 }, "credentials": { "sandbox": { "atvRejectionDetail": "invalid_grant: Invalid user credentials" }, "production": { "atvRejectionDetail": "invalid_grant: Invalid user credentials" } }, "activeApiKeys": 2}