API & Docs

One clean API for the whole billing lifecycle

Create customers, raise invoices, deliver them from your own domain, and collect payment — all over simple REST with webhooks for everything. Here's a taste, plus a live preview you can play with.

Authentication

Bearer key, nothing fancy

Every request carries your secret key. Use a test key while you build; flip to live when you're ready.

# Authorize every request with your key curl https://api.thejebcompany.com/v1/invoices \ -H "Authorization: Bearer jeb_live_•••"
Core endpoints

Create a customer, then bill them

POST/v1/customers
{ "email": "[email protected]", "name": "Acme, Inc.", "metadata": { "plan": "pro" } }
POST/v1/invoices
{ "customer": "[email protected]", "send_from": "[email protected]", // your SMTP — looks like it's from you "deliver_via": "smtp", "collect": "jeb_managed", // or "self" to use your own processor "line_items": [ { "description": "Pro plan — March", "amount": 4900 } ] }
GET/v1/invoices/:id
{ "id": "inv_4821", "status": "paid", "amount_due": 0, "payout": { "status": "scheduled", "eta": "48h" } }
POSTwebhook → your endpoint
{ "type": "invoice.paid", "data": { "invoice": "inv_4821", "amount": 4900 } }
Try it live

See your invoice email, instantly

Enter your details and line items — watch the invoice render in real time. Switch between Starter, Growth, and Professional to see how the sending address, the JEB banner, and template customization (colors & custom CSS) change per plan.

Sent from [email protected] · standard template · JEB banner shown

Starter sends through JEB. Upgrade to Growth to send from your own domain.

Standard template

Starter uses our clean standard template. Upgrade to Growth to set your own colors and CSS.

This is a live preview — nothing is sent. It shows how a JEB-generated invoice email looks on each plan.

The API call that produced it:

POST /v1/invoices { "customer": "[email protected]", "send_from": "[email protected]", "deliver_via": "jeb", "template": "standard", "line_items": [ { "description": "Monthly subscription — Pro plan", "amount": 4900 }, { "description": "Additional seats (3)", "amount": 2700 } ], "branding": "jeb_banner" }

Delivered from your domain

Point JEB at your SMTP credentials and every invoice goes out from your address — your customers see your name in their inbox, not ours. Fully customizable templates match your brand.

Collect your way

Connect your own credit-card & ACH processor to collect payments directly, or let JEB pull payment on the invoice and deposit the funds to your account within 48 hours.