Skip to main content
Payment plans define the pricing and billing cadence for your service. Every checkout session and invoice in Retempo is tied to a specific plan, so the plan you choose determines how often subscribers are charged, in what amount, and through what mechanism. You can attach multiple plans to a single service — for example, a monthly tier, a weekly trial, and a one-time setup fee can all live under the same service.
All amounts are denominated in USDC.

Pricing types

Retempo supports three pricing types that cover the most common billing models for AI agents, API providers, and SaaS products.

FIXED_RECURRING

Charges the same amount on every billing interval. Use this for subscription tiers where the price doesn’t change month-to-month — a flat $49/month Pro plan, for example.

USAGE_BASED

Bills subscribers based on recorded usage events. The amount on the plan acts as a per-unit rate or cap. Retempo aggregates usage events attached to the invoice before settlement.

ONE_TIME

A single charge with no recurring component. The billingInterval is automatically set to NONE. Use this for setup fees, one-off API credits, or lifetime access purchases.

Billing intervals

The billingInterval field controls how frequently a recurring plan renews. For ONE_TIME plans, always use NONE.

Creating a plan

To create a payment plan, send a POST request to /api/v1/services/:serviceId/plans. You must supply a name, a pricingType, and an amount. The billingInterval defaults to NONE if omitted, and currency defaults to USDC. Below are three examples covering each pricing type.

Monthly fixed plan

Weekly usage-based plan

One-time setup fee

Listing plans

To see all payment plans attached to a service, send a GET request to the plans endpoint for that service: