Prerequisites
- A Truthlocks account with an active tenant.
- An API key with billing permissions. See API keys to create one.
Choose a plan
Truthlocks offers five plan tiers. Use the plans endpoint to fetch the full catalog — this is a public endpoint and does not require authentication.Estimate your costs
Before subscribing, use the estimate endpoint to get a plan recommendation based on your expected usage. This is also a public endpoint.Check your current rates
Your tenant’s effective per-use rates depend on your rate card and region. Fetch them with:If your organization has a custom rate card assigned by a platform admin, those rates appear here instead of the defaults.
Subscribe to a plan
Create a checkout session to start or upgrade your subscription. The billing service selects the correct payment provider for your region automatically.1
Create a checkout session
Call the checkout endpoint with the plan you want and redirect URLs:The response contains a
checkout_url hosted by the payment provider.2
Redirect to checkout
Send the user to the
checkout_url to complete payment.3
Confirm the subscription
After payment, verify the subscription is active:
Attach add-ons
Add-ons extend your plan with extra capabilities. Attach them via the API:checkout_url to complete payment. Free add-ons activate immediately.
Add-on prices adjust automatically based on your organization’s billing country. Tenants in lower-cost regions pay a reduced rate — for example, the Compliance Pack costs 299 base price. See regional add-on pricing for the full tier table.
Monitor usage
Track your current billing cycle consumption to stay within your plan limits:Open the billing portal
Redirect users to their payment provider’s self-service portal to update payment methods, view invoices, or manage their subscription:portal_url. Redirect the user to that URL. Portal sessions expire quickly, so generate a fresh URL each time.
Cancel a subscription
To cancel, call the cancel endpoint. The cancellation takes effect at the end of the current billing period — you keep full access until then.Related
Billing overview
Plan tiers, rates, entitlements, and add-ons.
Provider routing
How payments are routed by region.
Billing API reference
Full billing API endpoint reference.
Entitlements
Check your active features and quotas.

