Get started

From signup to a first paid test invoice in an afternoon

This is a realistic order of work for one developer who already has a product. The hours are a guide, not a promise: your catalog and your webhook handler set the pace. Everything here runs in sandbox mode with Stripe test cards, so nothing charges a real customer.

The plan

  1. Hour 1: Create your merchant and API keySign up, claim your slug and create an API key. The key is shown once, so put it in your secret manager straight away. The console, customer portal and pay pages are available at once.See how it works
  2. Hour 1: Define what you sellAdd an offering for each plan: a code, a name, a type (subscription, one-time product or usage pack), an amount and, for subscriptions, an interval. The type, price and code are fixed once created, so check them before you save.
  3. Hour 2: Connect Stripe and brand the portalUnder Payments, connect Stripe so hosted checkout can collect payment. Invoices can be created before that, but customers see an error when they try to pay. Under Settings, add your logo, colours and support email so the portal looks like yours.
  4. Hour 2: Create a customer and a first invoiceCreate a test customer through the API, then an invoice. Pay it with a Stripe test card from the pay page and look at the receipt email and the portal the way a customer would.
  5. Hour 3: Listen for webhooksCreate a webhook endpoint, verify the X-TenaBill-Signature header on the raw body, deduplicate by event id, and grant access only on invoice.paid. The developer quickstart has working examples.Developer quickstart
  6. Hour 4: Decide what happens when a payment failsUnder Payment and dunning, set your reminder days, grace period and what happens after suspension. Then read the launch checklist before you take a real payment.Sandbox to live checklist

Your first invoice

Every line needs a description and a unit amount above zero. The idempotency key lets you repeat the request safely if the connection drops.

POST /api/v1/merchant/invoices
X-TenaBill-Api-Key: <your merchant API key>
Idempotency-Key: first-invoice-1
Content-Type: application/json

{
  "customerId": "<customer id>",
  "currency": "USD",
  "lines": [
    { "description": "Pro plan", "unitAmount": 49.00, "quantity": 1, "offeringCode": "pro-monthly" }
  ]
}

Good to know

What an afternoon does not include

  • Going live with real cards. That is a separate step, with its own checklist.
  • Moving existing customers. There is no file import, so existing customers are created through the API.
  • Sales tax. TenaBill is not a merchant of record and does not calculate or remit it.

Ready to try it?