Skip to content

Current tenant's plan, features, limits and usage

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

Returns the entitlements axis (what the tenant's plan allows + current usage), distinct from RBAC scopes (what the role allows). Intentionally NOT scope-gated: any tenant member may read their plan/usage so the UI can show/hide gated features and the usage meter. With no good-standing subscription: a positive prepaid balance resolves to the Prepago tier (the base feature set every sold plan carries); otherwise requiresPlan=true (no features).

Media typeapplication/json
object
planCode
required

Plan slug: a ladder step ('pf_t1'…'pf_custom', 'pj_t1'…'pj_custom'), a granted plan ('internal', 'socio'), 'consumo', the derived 'prepaid' / 'partner' tiers, or 'none'.

string
planLabel
required

Display label (Spanish product terminology).

string
billingModel
required

Recurring | prepaid | consumption

string
interval
required

Billing cadence of the active plan: 'month' | 'year'. null = unknown/prepaid.

string
nullable
status
required

Subscription status: trialing | active | past_due | canceled | incomplete | unpaid.

string
requiresPlan
required

True when the tenant has NO active plan and must subscribe before using gated features (no subscription / incomplete / canceled / unpaid). The web routes these tenants to /billing.

boolean
subscribedAt
required

ISO date the subscription was created in Onvo (subscribed since). null if no sub.

string
nullable
currentPeriodStart
required

ISO date the current billing period started. null for prepaid / no sub.

string
nullable
currentPeriodEnd
required

ISO date the current billing period ends (next renewal / next charge). null for prepaid / no sub.

string
nullable
cancelAtPeriodEnd
required

Whether the subscription is set to cancel at period end.

boolean
overageEnabled
required

Opt-in pay-as-you-go overage: when true, production emissions past the monthly quota + prepaid balance keep succeeding and accrue at usage.overageRateCrc/doc (billed monthly via Onvo) instead of returning 402. Only meaningful for recurring plans in good standing.

boolean
whatsappAgentAddon
required

Whether the tenant HOLDS the WhatsApp conversational-agent add-on right now (universal add-on, its own monthly Onvo subscription). NO sold plan bundles the agent — its cost is model inference — so this flag is how features comes to contain whatsapp_agent (the one exception is internal, Futura Byte's own plan, which carries every feature). Only meaningful for recurring plans in good standing.

boolean
whatsappAddonPriceCrc
required

Monthly price (whole colones, NET of IVA) of the WhatsApp agent add-on. Surfaced so the UI shows the price next to the toggle.

number
whatsappAgentMonthlyReplies
required

Replies of the WhatsApp agent per calendar month that the add-on includes. Surfaced so the UI states it next to the price, before the purchase.

number
auditAddon
required

Whether the tenant holds the paid audit-module add-on. Distinct from features containing audit: the upper step of each plan ladder includes the feature outright, in which case this stays false and the add-on is not offered for sale.

boolean
auditAddonPriceCrc
required

Monthly price (₡) of the audit-module add-on, for the billing screen.

number
addons
required

Per-add-on lifecycle, for the control that manages it. Only add-ons with a LIVE subscription appear; an absent key means "not held", which is the same as off. Reported even while the plan is suspended — the add-on is its own subscription and keeps being charged, so the switch that stops it has to stay reachable.

Array<object>
object
key
required

The add-on: whatsapp (the WhatsApp conversational agent, feature whatsapp_agent) or audit (the audit module, feature audit).

string
Allowed values: whatsapp audit
active
required

Held right now — the feature is available.

boolean
cancelAtPeriodEnd
required

Turned off, but still inside the paid month. The control shows unchecked (the tenant has expressed they do not want it) while active stays true until currentPeriodEnd.

boolean
currentPeriodEnd
required

When the current paid month ends — the renewal date, or the date it stops.

string
nullable
addonsCoveredByPlan
required

Add-on keys whose feature the EFFECTIVE plan already bundles — there is nothing to sell, and the purchase endpoint answers ADDON_ALREADY_INCLUDED for them. Served rather than derived on purpose: the web cannot import the plan catalog (the layering rule), so a client that re-derived this from its own feature list disagreed with the server about which plan it was reasoning over and offered a toggle the API then rejected. Note it is INDEPENDENT of addons, which only lists add-ons ever purchased: coverage has to be answerable for one the tenant has never held.

Array<string>
paymentRecovery
required

Whether the tenant holds a subscription with a FAILED PAYMENT it can recover from (POST /billing/recovery): retrying while the paid period is still running, suspended once it is over. Null when there is nothing to recover. Served separately from status on purpose: status describes the EFFECTIVE plan, and a tenant whose subscription is unpaid but who holds prepaid credits resolves to the Prepago tier with status: active — which hid the only way back.

string
nullable
Allowed values: retrying suspended
grantedPlan
required

True when the plan is one Futura Byte GRANTS and never sells (internal, socio): there is no subscription behind it, so it is not changed, canceled or topped up from self-service (the API answers PLAN_MANAGED_BY_FUTURA_BYTE); add-ons stay purchasable.

boolean
grantedAt
required

ISO instant Futura Byte granted the plan from the backoffice (socio), for the billing screen. Null for every other plan, and for internal, which is written by hand and carries no grant record.

string
nullable
quotedPlan
required

True when the plan in force is an Enterprise plan sold BY QUOTE (Águila, Jaguar): its fee, quota and overage are the quote’s (quote), changing plans is handled with the EmiteCR team (PLAN_CHANGE_CONTACT_SALES) and the overage switch is the contract’s (OVERAGE_MANAGED_BY_QUOTE). The twin of grantedPlan. Cancel, resume and the add-ons stay self-service.

boolean
quote
required

The plan quote in force — the terms the subscription is billed under. null unless quotedPlan.

object
id
required

Identifier of the quote — the :id of POST /billing/quotes/:id/accept and GET /billing/quotes/:id/document.

string format: uuid
reference
required

The quote number the company cites.

string
nullable
status
required

sent: open, the company can accept it until validUntil. scheduled: accepted over a live list plan, it takes effect at the period end (the entitlements' pendingChange names it). accepted: in force, the subscription is billed under its terms.

string
Allowed values: sent scheduled accepted
planCode
required

The quoted plan: pf_custom (Águila, persona física ladder) or pj_custom (Jaguar, persona jurídica ladder).

string
planLabel
required

Commercial name of that plan (the code itself for a plan outside the catalog).

string
interval
required

How often feeCrc is charged: every month or every year.

string
Allowed values: month year
feeCrc
required

The fee of one period, NET, whole colones.

number
feeGrossCrc
required

The fee of one period WITH IVA — what the card is charged.

number
includedDocs
required

Documents included per calendar month. null = unlimited (fair use).

number
nullable
overageRateCrc
required

₡ per overage document, net. null = no overage: emission stops past the included ones.

number
nullable
overageCapDocs
required

Monthly cap on overage documents, already resolved (the quote’s, or twice the included). null without overage.

number
nullable
commitmentUntil
required

End of the minimum commitment, or null.

string format: date-time
nullable
commitmentReleasedAt
required

When the EmiteCR team released the company from that commitment, or null.

string format: date-time
nullable
commitmentActive
required

Whether the commitment still binds the company. For the quote in force: true while it ends after the current period — then POST /billing/cancel answers 409 PLAN_COMMITMENT_ACTIVE and the billing page says so instead of offering to cancel. Always false for an open quote.

boolean
validUntil
required

Until when it can be accepted (the end of a Costa Rica day).

string format: date-time
nullable
sentAt
required

When the EmiteCR team sent it to the company.

string format: date-time
nullable
acceptedAt
required

When the company accepted it (the declaration on the click).

string format: date-time
nullable
termsVersion
required

The Terms version the quote rests on.

string
nullable
openQuotes
required

The plan quotes the company can accept today (sent and still valid) and the one it accepted over a live plan, waiting for the period end (scheduled). The billing page draws a card per quote; POST /billing/quotes/:id/accept is the one way to contract one.

Array<object>
object
id
required

Identifier of the quote — the :id of POST /billing/quotes/:id/accept and GET /billing/quotes/:id/document.

string format: uuid
reference
required

The quote number the company cites.

string
nullable
status
required

sent: open, the company can accept it until validUntil. scheduled: accepted over a live list plan, it takes effect at the period end (the entitlements' pendingChange names it). accepted: in force, the subscription is billed under its terms.

string
Allowed values: sent scheduled accepted
planCode
required

The quoted plan: pf_custom (Águila, persona física ladder) or pj_custom (Jaguar, persona jurídica ladder).

string
planLabel
required

Commercial name of that plan (the code itself for a plan outside the catalog).

string
interval
required

How often feeCrc is charged: every month or every year.

string
Allowed values: month year
feeCrc
required

The fee of one period, NET, whole colones.

number
feeGrossCrc
required

The fee of one period WITH IVA — what the card is charged.

number
includedDocs
required

Documents included per calendar month. null = unlimited (fair use).

number
nullable
overageRateCrc
required

₡ per overage document, net. null = no overage: emission stops past the included ones.

number
nullable
overageCapDocs
required

Monthly cap on overage documents, already resolved (the quote’s, or twice the included). null without overage.

number
nullable
commitmentUntil
required

End of the minimum commitment, or null.

string format: date-time
nullable
commitmentReleasedAt
required

When the EmiteCR team released the company from that commitment, or null.

string format: date-time
nullable
commitmentActive
required

Whether the commitment still binds the company. For the quote in force: true while it ends after the current period — then POST /billing/cancel answers 409 PLAN_COMMITMENT_ACTIVE and the billing page says so instead of offering to cancel. Always false for an open quote.

boolean
validUntil
required

Until when it can be accepted (the end of a Costa Rica day).

string format: date-time
nullable
sentAt
required

When the EmiteCR team sent it to the company.

string format: date-time
nullable
acceptedAt
required

When the company accepted it (the declaration on the click).

string format: date-time
nullable
termsVersion
required

The Terms version the quote rests on.

string
nullable
pendingChange
required

A plan change scheduled for the period end (downgrade or interval switch), or null. Until effectiveAt the tenant keeps the current plan; then it switches to this one.

object
planCode
required

Target plan slug the subscription switches to at period end.

string
quoteId
required

The plan quote the change enacts, when the target is a quoted plan (Águila, Jaguar) — one of openQuotes moved to scheduled. null for a change between list plans.

string format: uuid
nullable
planLabel
required

Display label of the target plan (the commercial name — the slug is track+step and is not shown to customers). Falls back to the slug for a plan outside the catalog.

string
interval
required

Target billing cadence: 'month' | 'year'. null = unchanged/unknown.

string
nullable
effectiveAt
required

ISO date the scheduled change takes effect (= current period end).

string
nullable
features
required

Feature slugs the company currently has: those of its effective plan plus those of the add-ons it holds (audit, whatsapp_agent). Empty when requiresPlan.

Array<string>
limits
required

What the effective plan allows: documents per period (with documentsRegime, how that allowance works) and the seat cap.

object
documentsPerPeriod
required

Documents per billing period (production only). null whenever there is no number to show — read documentsRegime to find out which of the three reasons applies.

number
nullable
documentsRegime
required

How the document allowance works. 'quota' = the number in documentsPerPeriod; 'unlimited' = no cap and no per-document charge (subject to fair use); 'metered' = no cap, every document billable («Por consumo»); 'external' = the cap is the prepaid credit balance (a partner's cap is a number: quota); 'quoted' = a plan sold by quote, and only in the plan catalog (/billing/plans, /billing/plans/available): the entitlements never return it, since a quoted plan under its quote is served as quota or unlimited, already resolved.

string
Allowed values: quota unlimited metered external quoted
members
required

Seat cap of the plan, counting active members plus pending invitations: an invitation past it answers 402 MEMBER_LIMIT_REACHED. Members already in are never removed (after a downgrade, new seats are simply blocked). null = unlimited.

number
nullable
usage
required

Consumption against those limits: production documents this period, the prepaid balance, the pay-as-you-go overage accrued and the active members.

object
documentsUsed
required

Production documents counted against the quota this period. 0 for prepaid.

number
documentsLimit
required

Quota for the current period. null = unlimited/metered or prepaid.

number
nullable
documentsRemaining
required

Documents remaining. For prepaid = sum of non-expired credit lots. null = unlimited/metered.

number
nullable
prepaidBalance
required

Prepaid credit balance (sum of non-expired lots), available to EVERY plan as overage on top of the monthly quota — the subscription quota is consumed first, prepaid after. 0 when there are no lots.

number
membersUsed
required

Active members (tenant_users) in the tenant — for the "X of Y users" meter.

number
period
required

YYYY-MM billing period for recurring plans; null for prepaid.

string
nullable
overageUsed
required

Pay-as-you-go overage documents accrued THIS period (emissions past quota + prepaid, while overage is enabled). Billed at overageRateCrc each via a monthly Onvo charge. 0 when none.

number
overageRateCrc
required

Price per overage document in whole colones (CRC). Shown so the UI can estimate the bill.

number
overageCapDocs
required

Monthly overage safety cap in documents. 0 = unlimited. Emissions are blocked once reached.

number
whatsappAgent
required

Usage of the WhatsApp agent this month. null when the company does not hold the agent (neither the add-on nor a plan that includes it).

object
repliesUsed
required

Replies the WhatsApp agent has sent the company this Costa Rica calendar month, across all its members and both environments. Only the replies of the agent count: invoice-verdict notifications and fixed notices do not.

number
repliesLimit
required

Monthly reply allowance. Once it is used up the agent stops answering until the 1st of the next month (it may still finish an invoice already prepared and waiting for confirmation). null = no limit, which only a plan that declares it has.

number
nullable
Example
{
"addons": [
{
"key": "whatsapp"
}
],
"paymentRecovery": "retrying",
"quote": {
"status": "sent",
"planCode": "pj_custom",
"planLabel": "Jaguar",
"interval": "month"
},
"openQuotes": [
{
"status": "sent",
"planCode": "pj_custom",
"planLabel": "Jaguar",
"interval": "month"
}
],
"limits": {
"documentsRegime": "quota"
}
}