List economic activities registered for this tenant
const url = 'https://api.emite.cr/v1/tenants/example/economic-activities';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/economic-activities \ --header 'Authorization: Bearer <token>'The company's economic activities, as Hacienda's registry lists them for its identification (POST …/sync brings them in line; they cannot be created by hand — the first one may come from economicActivityCode when the company was created). The one marked isDefault is the <CodigoActividadEmisor> a document declares when the request names no activity.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Responses
Section titled “Responses”object
Id of the activity in the company; PATCH …/{activityId}/default takes it.
Hacienda's economic activity code, in the dotted form its registry returns. The default one is what documents declare as <CodigoActividadEmisor>.
The activity's name, as Hacienda's registry returns it (in Spanish). null for an activity seeded from the company's economicActivityCode at its creation, until the first sync with Hacienda fills it.
Whether documents declare this activity when the request names none. At most one activity of the company is the default; with none, creating a document that names no activity answers 412 TENANT_NOT_CONFIGURED.
Example
[ { "code": "6201.0", "description": "Programación de computadoras" }]Missing or invalid JWT / API key
Tenant boundary violation or insufficient scope.