Developer guide
Create an account, subscribe to Standard ($99) or Growth ($499) to unlock your API key, then have a developer add Ohm to checkout. This page is public—no login required. The $5 test invoice confirms Lightning checkout only and does not unlock the API.
You need a developer. Ohm is not a paste-in checkout button for Shopify or Squarespace. A developer who has built checkout before can usually wire this in hours to a couple of days. They do not run a Lightning node—they call Ohm over HTTPS, like Stripe.
Register at Ohm, then pay Standard ($99) or Growth ($499). That unlocks the production API key in the dashboard. The $5 test invoice only confirms Lightning checkout and does not unlock the API.
Store it in environment variables or a secret manager. Never put x-api-key in a browser, mobile app, or public repository.
Your backend POSTs to Ohm with the amount, a memo, and your order id. Ohm returns a Lightning invoice (an lnbc… string).
Render that invoice on your payment page the same way Ohm Billing does. The customer pays from any Lightning wallet.
Poll invoice status, or set a payment webhook so Ohm POSTs to your server when it settles. Then fulfill the order in your own system.
Registration creates your business—the billing and usage boundary for your company. A production API key is shown after you subscribe. The dashboard login uses a separate session token; day-to-day Lightning operations use x-api-key.
Programmatic onboarding without the dashboard UI is also possible via POST /api/tenants with { name, email }—see Swagger for details—though most teams start in the UI.
Someone on your team registers at Ohm and creates a business account. After Standard ($99) or Growth ($499) is paid, the dashboard shows a production API key. That key identifies your usage and billing—not your end customer.
You do not install Ohm inside your customer’s cloud account. Your backend calls Ohm’s HTTPS API over the internet (like Stripe). Enterprise teams can discuss Bring Your Own Node separately.
Never expose x-api-key in a browser, mobile app bundle, or public repo. Only your backend or trusted worker processes should call Ohm.
Most products use tracked invoices (recommended): Ohm stores each payment request with optional externalOrderId so you can reconcile orders. Lower-level Lightning helpers exist if you already manage state yourself.
After you present the Lightning invoice (QR or copy/paste), poll invoice status until it shows paid. If you set a payment webhook URL, Ohm also POSTs to that URL when a tracked invoice settles.
Replace the host with your Ohm deployment (production uses your live domain). Send x-api-key on every call.
Environment
OHM_API_BASE=https://<your-domain>/api OHM_API_KEY=<from Dashboard → API Keys>
Create a tracked invoice
curl -sS -X POST "$OHM_API_BASE/invoices" \
-H "Content-Type: application/json" \
-H "x-api-key: $OHM_API_KEY" \
-d '{"amountUsd":42,"memo":"Order 9182","externalOrderId":"9182"}'Poll until paid
curl -sS "$OHM_API_BASE/invoices/<paymentHashHex>/status" \ -H "x-api-key: $OHM_API_KEY"
The JSON response includes a BOLT11 invoice string—render it as a QR code or copy field for your payer. Mapping externalOrderId to your cart or ERP row keeps reconciliation straightforward.
When your customer hosts the systems that must react to payments, send them this page plus Swagger. They typically need: allowed egress to Ohm’s HTTPS endpoints, storage for your API key in their secret manager, and a small service that creates invoices server-side.
Ohm does not require inbound firewall holes from Ohm into their VPC—they call us. If they demand network diagrams or static egress IPs, contact admin@ohmbtc.com before promising specifics.
After you subscribe, rotate keys, configure webhook URLs, run playground requests, and monitor usage—ideal for operators paired with engineers.
Authoritative route list, schemas, and try-it-now flows live at /docs on the API host.