Plans that bill
A plan you create in TenancyEngine can be linked to a billing product. Assign it to a customer and their features and limits follow.
TenaBill is the billing service behind TenancyEngine. The plans you sell can be linked to billing, so what a customer pays for and what your app lets them use stay in step.
Growth and above. Starter cannot charge customers.
A plan you create in TenancyEngine can be linked to a billing product. Assign it to a customer and their features and limits follow.
Hosted checkout, PDF invoices, and receipts. Billing emails go out under your sender name, and you can add your own sending domain.
Customers get payment reminder emails when an invoice is overdue, so you do not chase them by hand.
Customers manage their subscription and invoices in a billing portal. They sign in with an emailed link, so there is no password to reset.
Combine a flat subscription with metered usage, and give customers account credits.
TenancyEngine sends entitlement.changed and subscription.synced webhooks, so your app can react when a customer’s plan or subscription changes.
Define the plans you sell and the features each one includes.
Turn on billing for your app in the console.
Check the customer’s plan in your backend and react to plan changes by webhook.
These calls come from the TenancyEngine.Sdk package on NuGet. Every capability is also a REST API, so any language that can make an HTTPS request can use it.
// The plans you sell, with their prices and features.
var offerings = await te.GetOfferingsAsync("my-app", "Production", ct: ct);
foreach (var offering in offerings)
{
Console.WriteLine(
$"{offering.Name}: {offering.MonthlyPriceUsd:C} a month, {offering.Features.Count} features");
}// A customer's plan changed: verify the call, then refresh what you know about them.
app.MapPost("/webhooks/tenancyengine", async (HttpRequest req) =>
{
using var reader = new StreamReader(req.Body);
var rawBody = await reader.ReadToEndAsync();
var signature = req.Headers["X-TE-Signature"].ToString();
if (!WebhookSignatureVerifier.Verify(rawBody, signature, webhookSecret))
return Results.BadRequest();
if (req.Headers["X-TE-Event"] == "entitlement.changed")
{
// Fetch the customer's runtime context again before the next gated request.
}
return Results.Ok();
});Growth, Scale, and Enterprise. Starter does not.
Yes. The plan a customer is on decides their features and limits. TenancyEngine sends an entitlement.changed webhook when it changes.
Yes. TenaBill also runs on its own as a billing service, with its own API and console.
One app and up to five customer workspaces. Upgrade when you need more.
Request access