Skip to content

Acceptance-deadline summary of the pending compras inbox

GET
/v1/documents/received/summary
curl --request GET \
--url https://api.emite.cr/v1/documents/received/summary \
--header 'Authorization: Bearer <token>'

Over every document the company has not answered yet (acceptanceStatus: none) in the environment of the session or API key: how many there are, how many are overdue, due today or due within the next 3 days, the earliest deadline, and ivaAtRisk — the tax (₡) of those overdue, due today or due soon.

Media typeapplication/json
object
pending
required

Documents not answered yet (acceptanceStatus: none), with or without a date.

number
overdue
required

Pending documents past their deadline.

number
dueToday
required

Pending documents whose last day is today.

number
dueSoon
required

Pending documents whose deadline ends within the next 3 days.

number
nextDueAt
required

The earliest deadline among the pending documents — already past when one is overdue; null when none has a date.

string format: date-time
nullable
ivaAtRisk
required

The tax (₡, 2 decimals) of the pending documents that are overdue, due today or due soon. A foreign-currency document is converted with its own exchange rate, and left out of the sum when it has none.

number
Example
{
"ivaAtRisk": 487300
}