Skip to content

Preview the Hacienda name sync

GET
/v1/tenants/{id}/hacienda-sync
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.

id
required
string
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"
}