Usage in.
Revenue out.
Connect subscription plans to the way your product is used. Manage products, plans, promotions and subscriptions over REST, and follow usage from event to invoice.
Usage-based and metered billing are generally available. Talk to our team to set them up, or start with the setup guide for recurring plans.
See usage become revenue.
Include the first 1,000 calls. Charge $0.02 for every call after that.
24,000 × $0.02Only usage above the allowance is billed.
Example USD rates, not Bolt fees. Excludes recurring base charges and taxes. No payment is collected.
EVENT TO INVOICE
Four stages. One traceable cycle.
Keep event intake, aggregation, pricing, and collection separate enough to understand, and connected enough to operate.
- 01
Ingest
Accept up to 500 events in a batch. Inspect recorded, duplicate, or rejected verdicts per event.
- 02
Meter
Aggregate count or sum totals for each billing period, including usage that overlaps period boundaries.
- 03
Rate
Finalize period totals and apply the charge model. Subsequent retries reuse the locked aggregate.
- 04
Invoice
Usage cycles create an itemized invoice and payment link. Track collection and renewal state.
START WITH THE CONTRACT
Events your backend can explain.
Sanitized examples from the implementation. Send requests from your server to https://api.boltapp.com, or https://api-sandbox.boltapp.com while testing. Replace example IDs and timestamps before use.
Submit a batch, inspect every verdict.
A 202 response means the batch was processed. Read each result: some events may be rejected. Reuse the same merchant_event_id when retrying the same event.
Server-side credentials only
Send X-API-Key and X-Publishable-Key for the intended merchant division. Keep the API key out of client code.
curl --request POST "https://api.boltapp.com/v1/usage_events" \
--header "Content-Type: application/json" \
--header "X-API-Key: $BOLT_API_KEY" \
--header "X-Publishable-Key: $BOLT_PUBLISHABLE_KEY" \
--data '{
"events": [{
"entity_type": "subscription",
"entity_id": "sub_example",
"event_type": "api_calls",
"quantity": "250",
"start_time": "2026-09-23T12:00:00Z",
"end_time": "2026-09-23T12:01:00Z",
"merchant_event_id": "evt_example_001",
"properties": {"method": "POST", "route": "/v1/search"}
}]
}'{
"results": [{
"merchant_event_id": "evt_example_001",
"status": "recorded"
}]
}These are example requests, not a runnable sandbox. No API request is sent from this page.
THE FULL API
Every part of the subscription, over REST.
Products, plans, promotions, subscription changes, usage, and retry settings use the same server-side key pair. Webhooks report each lifecycle event.
Products and plans
Create a product with its plans in one call, read a product’s plans, add plans later, and set a plan’s free trial.
- POST
/v2 /subscriptions /products - GET
/v2 /subscriptions /products - GET
/v2 /subscriptions /products /{product_id} /plans - POST
/v1 /subscriptions /products /{product_id} /plans - PUT
/v1 /subscriptions /plans /{plan_id} /trial
Promotions
Create product or cart-wide promotions, attach them to plans, and deactivate them without changing what current subscribers pay.
- POST
/v1 /subscriptions /products /{product_id} /promotions - POST
/v1 /subscriptions /promotions - GET
/v1 /subscriptions /promotions - POST
/v1 /subscriptions /plans /{plan_id} /promotions - DELETE
/v1 /subscriptions /promotions /{promotion_id}
Subscriptions
List subscriptions and their orders. Pause, unpause, cancel now or at the end of the period, and revoke a scheduled cancellation.
- GET
/v1 /subscriptions - GET
/v1 /subscriptions /{subscription_id} /orders - POST
/v1 /subscriptions /{subscription_id} /pause - POST
/v1 /subscriptions /{subscription_id} /unpause - POST
/v1 /subscriptions /{subscription_id} /cancel - POST
/v1 /subscriptions /{subscription_id} /revoke_cancellation
Usage
Report usage events in batches of up to 500, define meters, and set the charge model for a usage-based plan.
- POST
/v1 /usage_events - POST
/v1 /subscriptions /usage /meters - POST
/v1 /subscriptions /usage /charge_models
Payment retries
Read and update the failed-payment retry schedule, renewal reminders, and SMS notifications.
- GET
/v1 /subscriptions /dunning_settings - PUT
/v1 /subscriptions /dunning_settings
Webhooks
Get notified when a subscription is created, renewed, paused, unpaused, canceled, or ended, when a payment fails, and when usage crosses a threshold.
subscription_createdsubscription_renewedsubscription_payment_failedsubscription_pausedsubscription_unpausedsubscription_canceledsubscription_endedsubscription_usage_alert
MEASURE WHAT YOUR PRODUCT DOES
Three registered event types.
Use the event registry’s supported shapes. Counter corrections are not negative usage events.
tokens_usedAI token usage
Record consumed tokens. The optional model property identifies the model used. Counter quantities must be non-negative.
api_callsAPI calls
Count calls or sum their quantities. Optional method and route properties describe the request.
storage_gb_deltaStorage changes
Report signed storage deltas. This is the supported event type that accepts negative quantities.
BUILT AROUND REAL BILLING BEHAVIOR
Make retries boring. Make invoices understandable.
Retry without creating new usage.
Stable merchant event IDs identify duplicate submissions. Check rejected results and distinguish retryable failures from invalid events.
Keep settled periods stable.
Rating finalizes period aggregates and rounds charges once. Later billing retries reuse finalized totals; corrections use credits rather than negative counter events.
React to usage thresholds.
Add a webhook endpoint under Administration > Developers > Webhooks to receive subscription_usage_alert. Threshold events can include the meter, period, current total, and cap context.
Connect collection to renewal.
For usage invoices, past-due or uncollectible balances pause renewal. Payment or void can resume it; a merchant can explicitly override the pause.
CHOOSE YOUR NEXT STEP
Build recurring and usage-based billing today.
Start with the subscriptions guide and the API reference, or talk with Bolt about setting up usage-based billing for your integration.