We use cookies and similar technologies, including Google Analytics and the Meta Pixel, to improve your experience, measure site traffic and understand signup campaigns. By clicking "Accept", you agree to this use.

Learn more about our privacy practices
Corvo
Português

Billing & quotas

Plan, consumption, availability and plan changes.

Fetches require billing.view; changes require billing.manage. All operations use full_access.

GET/v1/billing/plan200 OK
full_access

Fetches 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
    }
  }
}
GET/v1/billing/usage200 OK
full_access

Fetches 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"
  }
}
POST/v1/billing/upgrade200 OK
dashboard

Schedules the switch to the target plan on the subscription.

FieldTypeRequiredDescription
plan_slugstring✓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"
  }
}
POST/v1/billing/downgrade200 OK
dashboard

Schedules a plan change for the end of the period.

FieldTypeRequiredDescription
plan_slugstring✓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.

GET/v1/plans200 OK
public

Lists the plans with their monthly price and allowance.

FieldTypeRequiredDescription
cyclestringmonthly (default) or annual.
limitintegerDefaults to 50; integer from 1 to 1000.
cursorstringnextCursor 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
  }
}
GET/v1/plans/:slug200 OK
public

Fetches the price of one plan.

FieldTypeRequiredDescription
cyclestringmonthly (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"
  }
}
GET/v1/plans/recommend200 OK
public

Cheapest way to cover N notes a month: a plan, a plan plus single notes, or single notes only.

FieldTypeRequiredDescription
notesinteger✓Notes per month, a whole number from 1 to 1000000.
cyclestringmonthly (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"
  }
}