Which obligations the tenant follows, plus suggestions from its answers
const url = 'https://api.emite.cr/v1/fiscal/profile';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/fiscal/profile \ --header 'Authorization: Bearer <token>'configured: false means nobody has set this up yet and the calendar is running on suggestions. missing lists suggested obligations not yet selected — it is how a newly imported obligation reaches a tenant that already configured its profile.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”object
false while the company has never saved its profile: the answers are then the defaults (tradicional, no employees, no withholding), obligationCodes is the suggestion the calendar runs on, and a client should ask to configure it.
The saved tax regime (see PUT /v1/fiscal/profile); tradicional until saved.
The saved answer; false until the profile is saved.
The saved answer; false until the profile is saved.
TRIBU-CR codes the calendar follows: the saved selection, sorted by code, or the suggestion while the profile is not configured.
The obligations the answers and the company's identification type suggest, each with its reason. A starting point, deliberately inclusive, and not tax advice.
object
TRIBU-CR code of the suggested obligation.
Why it was suggested (a stable key):
entity_type— by the identification type: the income tax return (101/102) outside the simplified regime and, for a cédula jurídica, the tax on legal entities (169) and the Timbre de Educación y Cultura (175).regime— by the tax regime: the IVA returns, and every return of the simplified regime.employees— the company has employees (hasEmployees).withholding— the company withholds 3 % of income tax (withholdsIncomeTax).universal— suggested to every company (today270, the informative summary of customers, suppliers and specific expenses).
The suggested obligations that are not in obligationCodes: how a newly imported obligation, or a change in the answers, reaches a company that already configured its profile. Nothing is ever removed from the selection on its own.
object
TRIBU-CR code of the suggested obligation.
Why it was suggested (a stable key):
entity_type— by the identification type: the income tax return (101/102) outside the simplified regime and, for a cédula jurídica, the tax on legal entities (169) and the Timbre de Educación y Cultura (175).regime— by the tax regime: the IVA returns, and every return of the simplified regime.employees— the company has employees (hasEmployees).withholding— the company withholds 3 % of income tax (withholdsIncomeTax).universal— suggested to every company (today270, the informative summary of customers, suppliers and specific expenses).
When the profile was last saved; null while it is not configured.
Example
{ "regime": "tradicional", "suggested": [ { "code": "150", "reason": "entity_type" } ], "missing": [ { "code": "150", "reason": "entity_type" } ]}