The full TRIBU-CR obligation catalog, flagging the ones in the profile
const url = 'https://api.emite.cr/v1/fiscal/obligations';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/obligations \ --header 'Authorization: Bearer <token>'All 110 obligations the DGT publishes. legacyCode is the pre-TRIBU-CR code and is NOT interchangeable with code: the new 104 is Régimen Simplificado while D-104 was IVA, today 150. Label with code.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”object
TRIBU-CR code of the obligation: the identifier to label it with and to send in obligationCodes.
Name of the obligation as the DGT publishes it, in Spanish.
How often it falls due: diaria (daily), mensual (monthly), trimestral (every three months), cuatrimestral (every four), semestral (every six) or anual (yearly). Null when the DGT documents state none.
The code before TRIBU-CR, for search only. NOT interchangeable with code: the new 104 is the simplified regime, while D-104 was the IVA return, today 150. Null when there is none.
The code of the other half of the same obligation — the self-assessed return (autoliquidativa) and its informative return (informativa) — or null when it has none.
Whether it is in the selection the calendar follows: the saved profile, or the suggestion while the profile is not configured.
Example
[ { "code": "150", "name": "Impuesto al valor agregado", "periodicity": "mensual", "legacyCode": "D-104", "counterpartCode": "201" }]