Standalone API
The Lightning Enable Standalone API provides a complete REST API for integrating Bitcoin Lightning payments into any platform or application.
What is the Standalone API?
The Standalone API is a RESTful web service that enables:
- Payment Creation - Generate Lightning invoices and Bitcoin addresses
- Status Tracking - Monitor payment status in real-time
- Webhook Notifications - Receive instant payment confirmations
- Refund Processing - Handle returns and refunds
- Exchange Rates - Live BTC/USD conversion rates
Who Should Use This?
The Standalone API is ideal for:
- Custom Applications - Any platform that needs Lightning payments
- SaaS Platforms - Subscription and usage-based billing
- Marketplaces - Multi-vendor payment integration
- E-commerce Stores - Not using Kentico
- Mobile Apps - iOS, Android, React Native
- IoT Devices - Micropayments for connected devices
If you're using Xperience by Kentico, see Kentico Commerce Integration for a turnkey solution.
Key Features
Non-Custodial Architecture
Lightning Enable never touches your funds:
Your App --> Lightning Enable --> OpenNode --> Your Bitcoin Wallet
You bring your own OpenNode API key, and all funds go directly to your OpenNode account.
Multi-Currency Support
Accept payments in any currency OpenNode supports:
- USD (default)
- EUR
- GBP
- BTC (satoshis)
Real-Time Status Updates
Two options for tracking payments:
- Webhooks (recommended) - Instant HTTP callbacks
- Polling - Query the status endpoint
Flexible Payment Options
Every payment includes:
- Lightning Network invoice (instant, low fees)
- On-chain Bitcoin address (reliable, higher fees)
- Hosted checkout URL (no integration needed)
Quick Example
Create a payment with a single API call:
curl -X POST https://api.lightningenable.com/api/payments \
-H "X-API-Key: your-api-key" \
-H "Content-Type: application/json" \
-d '{
"orderId": "ORDER-12345",
"amount": 49.99,
"currency": "USD",
"description": "Premium Subscription",
"successUrl": "https://yourapp.com/success"
}'
Response:
{
"invoiceId": "inv_abc123",
"status": "unpaid",
"amount": 49.99,
"currency": "USD",
"lightningInvoice": "lnbc499900n1p...",
"onchainAddress": "bc1q...",
"hostedCheckoutUrl": "https://checkout.opennode.com/..."
}
API Endpoints
| Endpoint | Method | Description |
|---|---|---|
/api/payments | POST | Create payment |
/api/payments/{id} | GET | Get payment status |
/api/payments/order/{orderId} | GET | Get by order ID |
/api/payments/{id}/sync | POST | Force sync with OpenNode |
/api/refunds | POST | Create refund |
/api/refunds/{id} | GET | Get refund status |
/api/rates | GET | Get exchange rates |
Full API documentation: API Reference
Pricing
Standalone API: $199/month
Includes:
- Full REST API access
- Webhook notifications
- Refund support
- Multi-currency pricing
- Priority email support
OpenNode charges 1% per transaction for payment processing (paid directly to OpenNode).
For Kentico sites, see Kentico Commerce ($249/mo). For API monetization, see L402 Microtransactions ($299/mo).
Getting Started
- Sign up for Lightning Enable
- Create an OpenNode account
- Complete KYC verification
- Configure your API keys
- Make your first payment
Next Steps
- Integration Guide - Detailed integration walkthrough
- Webhooks Setup - Real-time notifications
- Refunds - Handle returns
- API Reference - Complete endpoint documentation