
How It Works
When a customer is on a Pay As You Go plan, Suby:1
Tracks usage
Usage is reported to Suby as your customer consumes your product or service.
2
Calculates the charge
At the end of the billing period, the charge is calculated based on recorded usage and your pricing.
3
Processes the payment
The payment is collected across the customer’s chosen method, card, bank, Apple Pay, Google Pay, or stablecoin.
4
Calculates taxes
Applicable taxes are calculated and collected automatically based on the customer’s location.
5
Fires a webhook
A
payment.succeeded event is sent to your server if you have a webhook configured.Use Cases
API & Infrastructure
Charge per API call, per request, or per unit of compute.
AI & LLM Products
Bill based on tokens processed, generations, or credits consumed.
Data & Storage
Charge based on data processed, stored, or transferred.
Platform Usage
Bill customers based on seats, actions, or any other usage metric specific to your product.
Setting Up Pay As You Go
You create the product itself from the dashboard, but the usage-based configuration, defining what’s metered and how usage is reported, is done via the API.1
Go to Catalog
In your dashboard, navigate to Catalog, then Product, and click New product.
2
Fill in the basics
Enter your product name, image, description, currency, and select Pay As You Go as the billing type.
3
Set access delivery (optional)
Choose how access is delivered once payment is completed: Discord, Telegram, digital files, license key, or external link.
4
Configure additional options (optional)
- Choose which payment methods are available for this specific product
- Add custom fields to collect information from the customer at checkout
- Set a success URL and cancel URL to redirect the customer after checkout
5
Configure usage via the API
Once the product exists, define your usage metering and pricing, and report usage events, through the API.
Via API
Full API Reference
Endpoints, parameters, and response objects for usage-based billing.

