Skip to content

Mark an obligation as filed / not applicable for a period

PATCH
/v1/fiscal/status
curl --request PATCH \
--url https://api.emite.cr/v1/fiscal/status \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "obligationCode": "150", "customObligationId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "period": "2026-07", "status": "pending", "filedAt": "2026-04-15T12:00:00Z", "note": "example" }'

Send exactly ONE of obligationCode or customObligationId (400 OBLIGATION_SOURCE_AMBIGUOUS). status: pending DELETES the record — pending is derived from the absence of one, never stored. filedAt may be in the past: what is recorded is when it was filed, not when someone remembered to write it down. Requires fiscal:write.

Media typeapplication/json
object
obligationCode

TRIBU-CR code of a DGT obligation (404 OBLIGATION_NOT_FOUND outside the catalog). Send exactly one of this and customObligationId (400 OBLIGATION_SOURCE_AMBIGUOUS).

string
Example
150
customObligationId

Id of one of the company's own obligations (404 CUSTOM_OBLIGATION_NOT_FOUND when it is not the company's or was removed). Exactly one of this and obligationCode.

string format: uuid
period
required

The period of the occurrence, exactly as the calendar returns it: YYYY-MM, or YYYY for a window labeled by year.

string
Example
2026-07
status
required

filed — mark it as filed; not_applicable — mark it as not applying to the company for this period; pending — clear the mark (the record is deleted: pending is the absence of one).

string
Allowed values: pending filed not_applicable
filedAt

When it was filed (ISO 8601). It may be in the past: what is recorded is when it was filed, not when someone wrote it down. Omitted with filed, it is now; ignored for any other status.

string format: date-time
note

Free-text note kept with the status; omitting it clears a previous one.

string
<= 500 characters
Media typeapplication/json
object
status
required

The status now recorded for the period, the one sent: pending means the mark was cleared.

string
Allowed values: pending filed not_applicable
Example
{
"status": "pending"
}