Create invoices to your own Lightning address. Verify settlement. Get webhooks. Your customers pay you straight. Altradits never holds their money.
Anything that takes Lightning payments, without running a node.
Your readers tip your writers. The sats land on your address. The API tracks each payment.
One invoice per order, in sats or priced in USD and KES. Webhooks tell you what settled.
Many payers, one destination. Poll settlement or wait for the webhook.
The sandbox simulates the whole flow. Test keys, test invoices, test webhooks. Nothing real moves.
One charge. No tiers, no seats, no hidden fees.
The sandbox is free. Test keys, test invoices, test webhooks, free test credit. Nothing real moves.
ak_test_ and can never touch mainnet.curl -X POST https://altradits.com/api/dev/v1/invoices \
-H "Authorization: Bearer ak_test_your_key_here" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: order-123" \
-d '{"destinationId":"DEST_ID","sats":5000,"memo":"order 123"}'
const res = await fetch("https://altradits.com/api/dev/v1/invoices", {
method: "POST",
headers: {
"Authorization": "Bearer ak_test_your_key_here",
"Content-Type": "application/json",
"Idempotency-Key": "order-123"
},
body: JSON.stringify({ destinationId: "DEST_ID", sats: 5000, memo: "order 123" })
});
const { invoice } = await res.json();
// Show invoice.bolt11 as a QR. Your customer pays your address straight.
invoice.settled POST arrive.curl -X POST https://altradits.com/api/dev/v1/sandbox/settle \
-H "Authorization: Bearer ak_test_your_key_here" \
-H "Content-Type: application/json" \
-d '{"invoiceId":"INV_ID"}'
Every endpoint is in the reference. Every reply carries a request id. Every error carries a stable code.
| Group | Status | What it does |
|---|---|---|
| Accounts, keys, destinations | Live | Email sign-in, scoped API keys, your own addresses with ownership proof. |
| Invoices, verify by hash | Live | Exact-amount invoices in sats or fiat, settlement checks. |
| Webhooks | Live | Signed invoice.settled POSTs, retried and logged. |
| Top-ups, balance, statement | Live | Prepaid fee balance in sats, full usage ledger. |
| Sandbox simulator | Sandbox only | Free test destination and one-call settlement. Test keys only. |
| Account close and refund payout | Planned | Self-serve close with the unused balance paid out. For now, ask through the contact form (a $1 spam shield applies). |
Questions about the API: write through the contact form (a $1 spam shield applies) and quote the request id from the reply. The health endpoint names whether the API and the sandbox are on.