Kobana

Explore Automatic Billing from the inside

Explore the platform modules and discover how to automate the complete recurring billing cycle for your company.

Automatic Billing dashboard

Dashboard

Billing KPIs in real time

Consolidated view of the recurring billing operation. Monthly revenue, active subscriptions, pending invoices and recent activity on a single screen.

Monthly revenue

Total received with comparison to the previous period. Drill-down by plan or company.

Active subscriptions

Real-time count with trend. Filters by status, cycle and MRR.

Pending invoices

Awaiting payment with highlighted delinquency rate.

Recent activity

Latest payments, new subscriptions, issued NFe and relevant events.

Subscriptions

Complete lifecycle with proration

7 states (draft → confirmed → trialing → active → past_due → canceled / paused). Trial, upgrade/downgrade with proration, pause and scheduled cancellation.

Billing cycles

Monthly, quarterly, semi-annual and annual. billing_cycle_anchor configurable per subscription.

Native proration

Automatic calculation on upgrade/downgrade. Preview before confirming.

Flexible trial

With or without card. Trial-ending worker notifies before expiry.

Pause and resume

pauseCollection JSON with reason and resume rule. Dedicated webhooks.

Invoices

Generated automatically 24/7

Invoice-generation worker runs at 01:00 UTC every day. Professional PDF, linked NFe, applied withholdings and payment link ready without intervention.

States (InvoiceStatus)

draft → open → paid | void | uncollectible. Each transition in AuditLog.

Automatic composition

subtotal + tax − discount = total. Withholdings subtracted from netValueCents.

PDF + email

Server-side rendered. Template + EmailLayout per company. AWS SES.

Pre-due reminders

Schedule −7, −3, −1 and due date. Email, in-app, webhook.

Payments

Methods, gateways and automatic retry

Card (Pagar.me), boleto and PIX (Kobana Banking Gateway), bank transfer. Idempotency-Key on every mutation. Payment-retry worker reprocesses failures every 6 hours.

Integrated gateways

Pagar.me, Kobana Banking Gateway, Mock for sandbox. Default per method via flag.

Configurable dunning

DunningConfig: maxRetries (5), retryIntervalDays ([1,2,3,5,7]), gracePeriodDays (30).

Signed webhooks

Gateway callbacks processed with idempotency. Dedicated callback worker.

Refund via API

Full or partial. Status changes to refunded or partially_refunded.

Customers

3-tier hierarchy

Customer → BillingAccount → PortalUser. A customer can have multiple billing accounts (branches, departments). Multi-user portal with granular permissions.

Complete registration

Individual or company, address (postal code, IBGE), multiple contacts. CPF/CNPJ validation.

Multi-account

Each BillingAccount with its own payment method, tax cycle and portal.

Multi-user portal

Email invitation (PortalInvitation, expires in 7 days). Optional 2FA.

Native LGPD

DataPurgeService for the right to be forgotten. Complete export in ZIP.

Plans and Products

Flexible catalog in 4 levels

Product → Price → Plan → Subscription. Multiple prices per product (cycle, currency, scheme). Fixed or metered add-ons. Percentage/fixed coupons and credit system.

Product types

base, addon_fixed, addon_quantity, metered. ServiceItem for correct taxation.

Advanced BillingScheme

per_unit, tiered, volume, package. JSON tiers with graduated or volume.

Coupons and credits

Coupon with limits and validity. Credit promotional/adjustment/refund/manual.

Plan change

PlanChangeRule per origin → destination pair with proration and bonus.

NFe and Tax

Native Brazilian fiscal compliance

NFS-e via NFe.io or own provider. 4 regimes (Simples Nacional, Lucro Presumido, Lucro Real, MEI). Tax engine with 8 tax types. RBT12 + Fator R for Simples.

Issuance policy

disabled, on_finalization, on_full_payment, per_installment.

Automatic withholdings

IRRF, CSRF (PIS+COFINS+CSLL), INSS, ISS withheld. Calculated by TaxRule.

A1 certificate

PFX/PEM encrypted with AES-256-GCM. Alert 30 days before expiry.

Smart retry

nfe-retry worker (30min). NfeRequestTry tracks each attempt with payload + response.

Analytics

SaaS metrics in real time

MRR, ARR, churn, ARPU, collection rate and cohort analysis. Daily and monthly snapshots via worker. Export in CSV, Excel, PDF, OFX and JSON.

Executive dashboard

KPIs with period filter. Automatic comparison with previous period.

Cohort analysis

Revenue retained by signup cohort. Retention heatmap.

Tax reports

TaxPeriod per Company. ISS by municipality, quarterly IRPJ + CSLL, estimated DAS.

Multi-format export

Export worker processes in background. Signed URL with expiration.

Automation and Dunning

Workers running 24/7

18 scheduled cron jobs. Dunning with 5 retries, expiring card alert, proposal expiration, automatic suspension and more.

subscription-renewal

Daily 00:00 UTC. Renews subscriptions at end of cycle respecting commitment.

invoice-generation

Daily 01:00 UTC. Generates idempotent invoices for all subscriptions in cycle.

payment-retry

Every 6 hours. Reprocesses failed payments according to DunningConfig.

card-expiring

Weekly Monday 10:00 UTC. Detects cards expiring in ≤ 30 days and notifies customer.

API + Webhooks

REST API with HMAC signing

3 isolated environments (production, staging, sandbox). Native Idempotency-Key. Separate rate limiting for GET and mutations. Node/Python/Ruby SDKs in development.

Complete REST API

643 endpoints with /v1 versioning. Standardized JSON and cursor + offset pagination.

HMAC-SHA256 webhooks

WebhookEndpoint with events array. WebhookDelivery with exponential retry up to 5 attempts.

Scoped API keys

Granular permissions. Rate limit per key. Immediate revocation. Last used tracked.

Complete sandbox

Pre-defined test cards. Mock gateway simulates declines. Same API as production.

Keep exploring

Now that you know the platform, schedule a personalized demo or explore the features in detail.

Talk to a specialist

Schedule a conversation with our team and get all your questions answered.

Schedule a demo
See features

Explore each module in detail: subscriptions, invoices, fiscal and more.

See features
Technical documentation

For developers: REST API, webhooks, SDKs and sandbox environment.

View documentation

Ready to automate your recurring billing?

Schedule a demo and see Automatic Billing working for your use case.