Skip to main content

Prepaid

In prepaid mode, customers must maintain a wallet balance. Usage is deducted in real time. CMP does not save credit cards for automatic charging in prepaid mode.

Set payment mode: Clients โ†’ Register Client (Step 2 โ€” new onboarding) or Clients โ†’ [Customer] โ†’ Billing Setup (existing account)

Admin onboardingโ€‹

Admin selects PREPAID when onboarding a customer via Clients โ†’ Register Client.

StepAction
1Basic Details โ€” enter customer information
2Payment Mode & Pricing Settings โ€” select PREPAID, assign Price Rate Card
3Quota Management โ€” assign quotas
4Success โ€” customer must complete initial wallet payment to activate

See Admin registration flow and Step 2 โ€” Prepaid (admin).

Screenshot: Register Client โ€” Step 2 Prepaid

Self-registrationโ€‹

Customers can select PREPAID on the public signup form when prepaid is enabled for Customer in Payment Mode Settings.

StepAction
1Verify Email Address
2Complete Payment โ€” select PREPAID, choose top-up amount, pay via gateway

On Step 2, the customer selects I want my account to be โ†’ PREPAID, picks a Select Amount (infra credits), and pays through the configured gateway. Account activates after payment.

See Self-registration flow.

Quick start
RuleBehaviour
Service creationBlocked if insufficient โ€” CMP shows insufficient infra credit message; top up wallet to proceed
Service renewalAuto-renews if balance sufficient; otherwise unpaid invoice + negative wallet
Wallet top-upManual only โ€” no recurring auto top-up
Hourly servicesModel 1: wallet deducted only. Model 2: wallet deducted + monthly service invoice on 1st
Fixed-cycle servicesFull period charged from wallet at creation

Service creationโ€‹

Wallet balanceResult
SufficientCMP allows service creation
InsufficientService creation is blocked โ€” CMP shows an insufficient infra credit message. No invoice is generated. After the customer adds sufficient infra credit / wallet balance, they can create the service

Service renewalโ€‹

Wallet balanceResult
SufficientCMP automatically renews the service
InsufficientCMP generates an unpaid invoice, marks it unpaid, and wallet balance may go negative

Renewal invoices are generated in advance for all billing cycles except hourly.

Wallet balance managementโ€‹

Customers manually top up the wallet through the configured payment gateway. There is no automated card charging or recurring top-up.

  • On top-up, any negative balance is cleared first before crediting usable balance
  • Usage charges are deducted from the wallet in real time
Service typeWallet behaviour
Hourly (PAYG)Balance reduces continuously as the service runs
Monthly / quarterly / yearlyFull period deducted at service creation

Example (hourly): Wallet โ‚น5,000 โ†’ VM โ‚น10/hour ร— 100 hours โ†’ wallet โ‚น4,000

Example (monthly): Wallet โ‚น5,000 โ†’ monthly VM โ‚น3,000 โ†’ wallet โ‚น2,000 immediately

Low balance handlingโ€‹

When wallet balance reaches zero or goes negative:

  1. CMP sends a notification alert to the customer
  2. Usage tracking may continue; balance may go negative
  3. On next top-up, the negative balance is cleared first
  4. If negative beyond the grace period, disciplinary actions apply

Disciplinary actionsโ€‹

If the wallet remains negative beyond the configured grace period, CMP triggers disciplinary actions (freeze, suspend, terminate) as configured in global or account settings.

Full documentation: Disciplinary Actions.

Assigning payment modeโ€‹

Payment mode is set when the account is created. For admin onboarding, see Admin registration flow. For self-registration, see Self-registration flow.

Select carefully โ€” limited conversion later

Payment mode is effectively fixed after onboarding for prepaid and postpaid accounts. The only conversion path is Manual โ†’ Postpaid, which happens automatically when a manual customer saves a card:

ConversionSupported?How
Prepaid โ†’ PostpaidโŒ Not supportedAdding a card does not convert prepaid accounts
Prepaid โ†’ ManualโŒ Not supportedโ€”
Postpaid โ†’ PrepaidโŒ Not supportedโ€”
Postpaid โ†’ ManualโŒ Not supportedโ€”
Manual โ†’ Postpaidโœ… SupportedAutomatic when customer saves a credit or debit card

Plan the correct payment mode before customers provision services. See Payment Modes โ€” Changing payment mode.

Prepaid billing models โ€” end-to-end workflowโ€‹

Prepaid is wallet-based โ€” the primary financial event may be wallet top-up (infra credits) or each service usage, depending on your tax and accounting rules. CMP supports two prepaid billing models.

Model 1Model 2
NameInvoice against infra creditsInvoice against service usage
Also calledInvoice for wallet transactionsReceipt for wallet + invoice for services
Wallet top-upInvoice generatedReceipt generated
Service usageTracked internally โ€” not invoicedInvoice per usage event / renewal / monthly hourly total
Best whenTax rules treat wallet funding as the main transaction (required for Indian providers)GST, VAT, or e-invoicing requires invoices per service consumption

Configure prepaid billing modelโ€‹

The active model is set globally in Admin Panel โ†’ Global Settings:

SettingCategoryValueBilling model
generate_prepaid_recieptBillingfalseModel 1 โ€” invoice against infra credits (wallet top-up generates an invoice; service usage is not invoiced)
generate_prepaid_recieptBillingtrueModel 2 โ€” invoice against service usage (wallet top-up generates a receipt; each service event generates an invoice)

Description in CMP: For prepaid accounts, if true the system generates invoices for services, otherwise it generates invoices for adding infra credit (wallet funds).

Indian providers โ€” Model 1 required

For Indian cloud providers, set generate_prepaid_reciept = false (Model 1 โ€” invoice against infra credits). This is the required prepaid billing model for India deployments.

Under Indian GST practice, the payable invoice is issued when the customer purchases infra credits (wallet top-up). Service usage is tracked and deducted from the wallet but is not invoiced separately. Model 2 (service invoices) is not supported for Indian prepaid workflows โ€” it can cause billing confusion between infra-credit invoices and service invoices.

Set before go-live โ€” global flag

Configure generate_prepaid_reciept during initial platform setup โ€” before onboarding prepaid customers or enabling self-registration. This flag applies platform-wide to all prepaid accounts. Changing it after customers and services exist can cause billing inconsistencies.

Choose before go-live โ€” do not change mid-stream

Decide the prepaid billing model before going live using generate_prepaid_reciept in Global Settings (see Configure prepaid billing model). Switching models after customers and services exist can cause billing inconsistencies for existing accounts.

Model 1 โ€” Invoice against infra creditsโ€‹

Wallet top-up is the only invoice. Service creation, renewal, and hourly usage deduct the wallet but do not generate service invoices. Usage is recorded internally for reporting.

Monthly service exampleโ€‹

Customer creates a monthly VM costing โ‚น1,000/month.

Step 1 โ€” Add infra credits

  • Customer adds โ‚น5,000 to the wallet
  • CMP generates Invoice #1 for โ‚น5,000 (wallet top-up / infra credits purchase)
  • Wallet balance = โ‚น5,000

Step 2 โ€” Create service

  • Customer creates the monthly VM
  • CMP checks wallet balance
  • โ‚น1,000 deducted immediately
  • Wallet balance = โ‚น4,000
  • No new invoice generated

Step 3 โ€” Service renewal

  • Next month the VM renews
  • Another โ‚น1,000 deducted
  • Wallet balance = โ‚น3,000
  • No renewal invoice generated

Hourly service exampleโ€‹

Step 1 โ€” Add infra credits

  • Customer adds โ‚น5,000 to the wallet
  • CMP generates one wallet top-up invoice for โ‚น5,000

Step 2 โ€” Create and run hourly VM

  • Customer creates an hourly VM
  • Throughout the month, hourly usage is deducted from the wallet
  • No service invoice generated for hourly consumption

Model 1 summaryโ€‹

EventInvoice?Wallet deducted?
Wallet top-upโœ… Yesโ€” (credited)
Service creation (monthly)โŒ Noโœ… Yes
Service renewal (monthly)โŒ Noโœ… Yes
Hourly usageโŒ Noโœ… Yes (continuous)
Service usage trackingRecorded internally for reportingโ€”

Model 2 โ€” Invoice against service usageโ€‹

Wallet top-up generates a receipt (not an invoice). Every billable service event generates a service invoice in addition to wallet deduction.

Monthly service exampleโ€‹

Step 1 โ€” Add infra credits

  • Customer adds โ‚น5,000 to the wallet
  • CMP generates a receipt (not an invoice)
  • Wallet balance = โ‚น5,000

Step 2 โ€” Create service

  • Customer creates a monthly VM costing โ‚น1,000
  • Wallet balance verified
  • โ‚น1,000 deducted immediately
  • Wallet balance = โ‚น4,000
  • CMP generates a service invoice for โ‚น1,000

Step 3 โ€” Renewal

  • On renewal, another โ‚น1,000 deducted
  • Wallet balance = โ‚น3,000
  • CMP generates another service invoice for โ‚น1,000

Hourly service exampleโ€‹

Step 1 โ€” Add infra credits

  • Customer adds โ‚น5,000
  • CMP generates a receipt

Step 2 โ€” Create and run hourly VM

  • Customer creates an hourly VM
  • Usage collected throughout the month (wallet deducted continuously)

Step 3 โ€” Month-end invoicing (1st of next month)

  • Total hourly usage calculated
  • Wallet balance deducted for the period total
  • CMP generates a monthly service invoice for total hourly usage

Model 2 summaryโ€‹

EventReceipt / invoice?Wallet deducted?
Wallet top-upReceiptโ€” (credited)
Service creation (monthly)Service invoiceโœ… Yes
Service renewal (monthly)Service invoiceโœ… Yes
Hourly usage (monthly)Service invoice on 1st of next monthโœ… Yes
Service usage trackingEvery billable usage is invoicedโ€”

Which model should you select?โ€‹

Choose Model 1 ifโ€ฆChoose Model 2 ifโ€ฆ
Indian providers โ€” required; payable invoice on wallet top-up (infra credits)Local regulations require an invoice for each billable service or renewal
Accounting or tax rules treat wallet funding (infra credit purchase) as the primary financial transactionVAT or e-invoicing (outside India) requires invoices based on actual service consumption
Service usage only needs internal tracking and wallet deductionTypical for EU VAT per-service, Latin America e-invoicing
RegionRequired / typical model
IndiaModel 1 โ€” generate_prepaid_reciept = false. Invoice on infra credit purchase; no service invoices
European UnionModel 2 โ€” invoice per service for VAT; wallet top-up may be receipt only
Latin America (Mexico, Brazil, Chile)Model 2 โ€” e-invoicing per taxable event
Fiscalization countries (France, Spain)Model 2 โ€” real-time service-based invoicing

Configure the applicable model for your deployment with your StackConsole / tax advisor before launch.

Hourly and fixed-cycle services (both models)โ€‹

Wallet deduction behaviour is the same in both models. Invoice generation differs โ€” see Model 1 and Model 2 above.

Fixed cycles (monthly, quarterly, yearly)โ€‹

  1. Wallet balance checked at service creation
  2. Full period amount deducted immediately from wallet
  3. If wallet insufficient โ†’ service not created
  4. Model 1: no service invoice. Model 2: service invoice generated at creation and each renewal

Hourly (pay-as-you-go)โ€‹

  1. Wallet deducted continuously as the service runs
  2. Model 1: no service invoice โ€” wallet top-up invoice only
  3. Model 2: consolidated service invoice on the 1st of the next month for total hourly usage

VM upgrade billing (prepaid)โ€‹

Hourly servicesโ€‹

PeriodCharging
Before upgradeOriginal package hourly rate โ€” immediate invoice generated
After upgradeNew package hourly rate from upgrade moment to month end

Monthly and other fixed cyclesโ€‹

Prorated adjustment calculated from upgrade date to end of billing period.

Example โ€” monthly billing:

ItemValue
Original package$100/month
Upgrade date12th of month
New package$150/month
Proration base30.5 days
Old daily rate = $100 รท 30.5 โ‰ˆ $3.28/day
Used (12 days) = 12 ร— $3.28 = $39.36
Remaining old (18d) = 18 ร— $3.28 = $59.04
New daily rate = $150 รท 30.5 โ‰ˆ $4.92/day
New portion (18d) = 18 ร— $4.92 = $88.56
Upgrade adjustment = $88.56 โˆ’ $59.04 = $29.52

Prepaid upgrade invoicing:

  • A separate payable invoice is created for each upgrade
  • Example: invoice on 1st for $100 (full month); on 12th upgrade, new invoice for $29.52 adjustment

Early deletion before cycle endsโ€‹

Billing cycleCharge on early delete
HourlyPay only for hours used (creation to deletion)
Monthly / quarterly / yearlyFull period still charged โ€” no refund. Admin may grant free credits if customer disputes