Lookup parties by identification number
const url = 'https://api.emite.cr/v1/tenants/example/parties/lookup/example';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
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/tenants/example/parties/lookup/example \ --header 'Authorization: Bearer <token>'Returns the active contacts with exactly that identification number, newest first. It is a list because uniqueness is per identification type + number: the same number can be registered once under each type (one contact can be customer and supplier at once). Deleted contacts are not returned, and no match is an empty parties, never a 404. Useful before creating a contact; POST reactivates a deleted match by itself.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Tenant UUID.
Identification number, compared exactly after trimming spaces and upper-casing (the form the API stores). Its format is not checked here; by type it is: 01 9 digits, 02 10 positions (alphanumeric for cédulas jurídicas from 2026-11-01), 03 11–12 digits, 04 10 digits, 05 up to 20 letters, digits or dashes, 06 9–12 digits.
Responses
Section titled “Responses”object
The active contacts with that identification number, newest first: usually none or one; more than one only when the number is registered under different identification types.
object
Id of the contact — the receiverId a document names it by.
Hacienda identification type: 01 cédula física, 02 cédula jurídica, 03 DIMEX, 04 NITE, 05 foreigner not domiciled, 06 non-contributor. Fixed once created.
Identification number, upper case and without spaces. Unique per type within the company, and fixed once created.
Legal name of the person or company (<Nombre>).
Trade name (<NombreComercial>); null when it has none.
Email address documents carry (<CorreoElectronico>) and accepted documents are emailed to; null when it has none.
More email addresses, kept for reference only; null when there are none.
Country calling code, digits only; null when not set.
Phone number, digits only; null when not set.
Address in Costa Rica (<Ubicacion>); null when the contact has none.
object
Provincia code, one digit (GET /v1/catalogs/locations).
Cantón code, two digits.
Distrito code, two digits.
Neighborhood (barrio), by name; null when not set.
The rest of the address, free text; null when not set.
Address abroad of a foreign (05) contact; null when not set.
Whether the contact can be the customer of the documents the company issues.
Whether the contact is a supplier (the counterpart of a purchase invoice, FEC).
Internal notes; null when there are none.
When the contact was created (a reactivation keeps the original date).
When the contact last changed.
Example
{ "parties": [ { "identificationType": "01", "identificationNumber": "3101234567", "name": "Distribuidora La Nacional S.A.", "commercialName": "La Nacional", "email": "compras@lanacional.cr", "additionalEmails": [ "contabilidad@lanacional.cr" ], "phoneCountryCode": "506", "phoneNumber": "22223333", "location": { "provincia": "1", "canton": "01", "distrito": "01", "barrio": "Carmen", "otrasSenas": "50 metros norte de la iglesia, edificio azul" }, "otrasSenasExtranjero": "1234 Ocean Ave, Miami, FL 33101, USA", "notes": "Cliente preferencial — descuento 5%" } ]}Missing or invalid JWT / API key
Tenant boundary violation or insufficient scope.