Preview the Hacienda name sync
GET
/v1/tenants/{id}/hacienda-sync
const url = 'https://api.emite.cr/v1/tenants/example/hacienda-sync';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/hacienda-sync \ --header 'Authorization: Bearer <token>'Returns { currentName, haciendaName, isInSync }: the company's legal name next to the one Hacienda's registry has for its identification. isInSync compares them with spaces and letter case normalized, so a cosmetic difference is not offered as a change. POST /:id/hacienda-sync applies it. Hacienda's answer is cached for an hour; 404 when the registry does not know the identification, 424 HACIENDA_LOOKUP_UNAVAILABLE or 429 when it fails or throttles.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Responses
Section titled “Responses”Media typeapplication/json
object
currentName
required
The company's legal name as EmiteCR has it.
string
haciendaName
required
The legal name Hacienda's registry has for the company's identification.
string
isInSync
required
Whether the two are the same name once spaces and letter case are normalized — when true there is nothing to apply.
boolean
Example
{ "currentName": "Futurabyte CR S.A.", "haciendaName": "FUTURABYTE CR SOCIEDAD ANONIMA"}