Current tenant's plan, features, limits and usage
const url = 'https://api.emite.cr/v1/billing/entitlements';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/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).
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”object
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'.
Display label (Spanish product terminology).
Recurring | prepaid | consumption
Billing cadence of the active plan: 'month' | 'year'. null = unknown/prepaid.
Subscription status: trialing | active | past_due | canceled | incomplete | unpaid.
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.
ISO date the subscription was created in Onvo (subscribed since). null if no sub.
ISO date the current billing period started. null for prepaid / no sub.
ISO date the current billing period ends (next renewal / next charge). null for prepaid / no sub.
Whether the subscription is set to cancel at period end.
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.
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.
Monthly price (whole colones, NET of IVA) of the WhatsApp agent add-on. Surfaced so the UI shows the price next to the toggle.
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.
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.
Monthly price (₡) of the audit-module add-on, for the billing screen.
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.
object
The add-on: whatsapp (the WhatsApp conversational agent, feature whatsapp_agent) or audit (the audit module, feature audit).
Held right now — the feature is available.
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.
When the current paid month ends — the renewal date, or the date it stops.
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.
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.
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.
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.
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.
The plan quote in force — the terms the subscription is billed under. null unless quotedPlan.
object
Identifier of the quote — the :id of POST /billing/quotes/:id/accept and GET /billing/quotes/:id/document.
The quote number the company cites.
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.
The quoted plan: pf_custom (Águila, persona física ladder) or pj_custom (Jaguar, persona jurídica ladder).
Commercial name of that plan (the code itself for a plan outside the catalog).
How often feeCrc is charged: every month or every year.
The fee of one period, NET, whole colones.
The fee of one period WITH IVA — what the card is charged.
Documents included per calendar month. null = unlimited (fair use).
₡ per overage document, net. null = no overage: emission stops past the included ones.
Monthly cap on overage documents, already resolved (the quote’s, or twice the included). null without overage.
End of the minimum commitment, or null.
When the EmiteCR team released the company from that commitment, or null.
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.
Until when it can be accepted (the end of a Costa Rica day).
When the EmiteCR team sent it to the company.
When the company accepted it (the declaration on the click).
The Terms version the quote rests on.
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.
object
Identifier of the quote — the :id of POST /billing/quotes/:id/accept and GET /billing/quotes/:id/document.
The quote number the company cites.
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.
The quoted plan: pf_custom (Águila, persona física ladder) or pj_custom (Jaguar, persona jurídica ladder).
Commercial name of that plan (the code itself for a plan outside the catalog).
How often feeCrc is charged: every month or every year.
The fee of one period, NET, whole colones.
The fee of one period WITH IVA — what the card is charged.
Documents included per calendar month. null = unlimited (fair use).
₡ per overage document, net. null = no overage: emission stops past the included ones.
Monthly cap on overage documents, already resolved (the quote’s, or twice the included). null without overage.
End of the minimum commitment, or null.
When the EmiteCR team released the company from that commitment, or null.
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.
Until when it can be accepted (the end of a Costa Rica day).
When the EmiteCR team sent it to the company.
When the company accepted it (the declaration on the click).
The Terms version the quote rests on.
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
Target plan slug the subscription switches to at period end.
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.
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.
Target billing cadence: 'month' | 'year'. null = unchanged/unknown.
ISO date the scheduled change takes effect (= current period end).
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.
What the effective plan allows: documents per period (with documentsRegime, how that allowance works) and the seat cap.
object
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.
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.
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.
Consumption against those limits: production documents this period, the prepaid balance, the pay-as-you-go overage accrued and the active members.
object
Production documents counted against the quota this period. 0 for prepaid.
Quota for the current period. null = unlimited/metered or prepaid.
Documents remaining. For prepaid = sum of non-expired credit lots. null = unlimited/metered.
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.
Active members (tenant_users) in the tenant — for the "X of Y users" meter.
YYYY-MM billing period for recurring plans; null for prepaid.
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.
Price per overage document in whole colones (CRC). Shown so the UI can estimate the bill.
Monthly overage safety cap in documents. 0 = unlimited. Emissions are blocked once reached.
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
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.
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.
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" }}