Billing & quotas
Plan, consumption, availability and plan changes.
Fetches require billing.view; changes require billing.manage. All operations use full_access.
/v1/billing/plan200 OKFetches the current plan and its consumption.
curl "$BASE_URL/billing/plan" -H "X-API-Key: $CORVO_API_KEY"Response — 200 OK
{
"data": {
"plan": {
"slug": "solo",
"name": "Solo",
"monthly_allowance": 100,
"daily_limit": null,
"max_active_companies": 999999,
"monthly_price_cents": 5990
},
"usage": {
"hard_limit": 100,
"avulso_balance": 0,
"credits_used": 10,
"credits_reserved": 2,
"credits_remaining": 188,
"monthly_allowance": 200,
"daily_usage": 3,
"daily_limit": null,
"active_companies": 1,
"max_active_companies": 999999,
"period_start": "2026-10-01T00:00:00.000Z",
"period_end": "2026-10-31T23:59:59.000Z"
},
"subscription": {
"status": "active",
"paid_until": "2026-10-31T23:59:59.000Z",
"cancel_at_period_end": false,
"scheduled_plan": null,
"blocked": false
}
}
}/v1/billing/usage200 OKFetches quota availability for issuance.
curl "$BASE_URL/billing/usage" -H "X-API-Key: $CORVO_API_KEY"Response — 200 OK
{
"data": {
"canEmit": true,
"creditsRemaining": 188,
"creditsUsed": 10,
"creditsReserved": 2,
"monthlyAllowance": 200,
"dailyUsage": 3,
"dailyLimit": null,
"activeCompanies": 1,
"maxActiveCompanies": 10,
"periodStart": "2026-10-01T00:00:00.000Z",
"periodEnd": "2026-10-31T23:59:59.000Z"
}
}/v1/billing/upgrade200 OKSchedules the switch to the target plan on the subscription.
| Field | Type | Required | Description |
|---|---|---|---|
| plan_slug | string | ✓ | Slug of the target plan, e.g. "equipe". |
curl -X POST "$BASE_URL/billing/upgrade" \
-H "X-API-Key: $CORVO_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "plan_slug": "equipe" }'Response — 200 OK
{
"data": {
"scheduled_plan": "equipe",
"effective_at": "2026-11-01T00:00:00.000Z"
}
}/v1/billing/downgrade200 OKSchedules a plan change for the end of the period.
| Field | Type | Required | Description |
|---|---|---|---|
| plan_slug | string | ✓ | Slug of the target plan, e.g. "solo". |
curl -X POST "$BASE_URL/billing/downgrade" \
-H "X-API-Key: $CORVO_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "plan_slug": "solo" }'Response — 200 OK
{
"data": {
"scheduled_plan": "solo",
"effective_at": "2026-11-01T00:00:00.000Z"
}
}Public plan catalog
These three routes need no API key or session: use them to show prices on your own site or to size a plan. Amounts are in cents (...Cents) and the only cycle is monthly; any other cycle returns 400.
/v1/plans200 OKLists the plans with their monthly price and allowance.
| Field | Type | Required | Description |
|---|---|---|---|
| cycle | string | monthly (default) or annual. | |
| limit | integer | Defaults to 50; integer from 1 to 1000. | |
| cursor | string | nextCursor from the previous page. |
curl "$BASE_URL/plans"Response — 200 OK
{
"data": [
{
"slug": "solo",
"name": "Solo",
"monthlyAllowance": 100,
"basePriceCents": 5990,
"monthlyEquivalentCents": 5990,
"chargeTotalCents": 5990,
"currency": "BRL"
}
],
"pagination": {
"limit": 50,
"hasMore": false,
"nextCursor": null
}
}/v1/plans/:slug200 OKFetches the price of one plan.
| Field | Type | Required | Description |
|---|---|---|---|
| cycle | string | monthly (default) or annual. |
curl "$BASE_URL/plans/equipe"Response — 200 OK
{
"data": {
"slug": "equipe",
"name": "Equipe",
"monthlyAllowance": 250,
"basePriceCents": 11990,
"monthlyEquivalentCents": 11990,
"chargeTotalCents": 11990,
"currency": "BRL"
}
}/v1/plans/recommend200 OKCheapest way to cover N notes a month: a plan, a plan plus single notes, or single notes only.
| Field | Type | Required | Description |
|---|---|---|---|
| notes | integer | ✓ | Notes per month, a whole number from 1 to 1000000. |
| cycle | string | monthly (default) or annual (30% off, paid once a year). |
curl "$BASE_URL/plans/recommend?notes=250"Response — 200 OK
{
"data": {
"notes": 250,
"cycle": "monthly",
"option": { "planSlug": "equipe", "avulsoUnits": 0, "totalCents": 11990 },
"alternatives": [
{ "planSlug": "empresa", "avulsoUnits": 0, "totalCents": 23990 }
],
"currency": "BRL"
}
}