Billing for Telegram bots and SaaS

Accept payments and check access in 30 minutes — no payment logic to build

Quick Start →

Who it's for

How it works — 3 steps

1

Connect the API

API key + one POST /checkout — get a checkoutUrl to redirect your user to.

2

User pays

Hosted checkout page — Stripe under the hood. User clicks "Pay Now", payment is processed automatically.

3

Check access

GET /entitlementsitems[0].status == "Active" → grant access.

Minimal example

# 1. Create a checkout session
curl -X POST https://billing.yourdomain.com/checkout \
  -H "X-Api-Key: YOUR_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"customer":{"externalRef":"tg:123"},"plan":{"key":"pro_monthly"},
       "successUrl":"https://myapp.com/ok","cancelUrl":"https://myapp.com/cancel"}'

# Response → { "checkoutUrl": "https://..." }  ← redirect user here

# 2. After payment — check access
curl "https://billing.yourdomain.com/entitlements?customerExternalRef=tg:123&productKey=pro" \
  -H "X-Api-Key: YOUR_KEY"

# Response → { "items": [{ "status": "Active" }] }  ← grant access