The tenant's own obligations (CCSS, municipal patente, marchamo)
GET
/v1/fiscal/custom-obligations
const url = 'https://api.emite.cr/v1/fiscal/custom-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/custom-obligations \ --header 'Authorization: Bearer <token>'These are NOT in the DGT catalog — that one only covers Hacienda. Their due dates are always derived from the rule configured here, so occurrences built from them always carry dueDateSource: derived.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Media typeapplication/json
Array<object>
object
id
required
Id of the obligation: the customObligationId of its occurrences.
string format: uuid
name
required
Name the obligation is shown with.
string
periodicity
required
How often it falls due (see the request body).
string
dueDay
required
The day it falls due, counted as dueDayKind says.
number
dueDayKind
required
Whether dueDay counts calendar or business days.
string
monthOffset
required
Months after the end of the period the due date falls.
number
anchorMonth
required
The month that sets the cycle of a non-monthly obligation; null when none was given.
number
notes
required
Free-text notes, or null.
string
Example
[ { "periodicity": "mensual", "dueDayKind": "calendar" }]