Skip to main content

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:

  1. Webhooks (recommended) - Instant HTTP callbacks
  2. 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

EndpointMethodDescription
/api/paymentsPOSTCreate payment
/api/payments/{id}GETGet payment status
/api/payments/order/{orderId}GETGet by order ID
/api/payments/{id}/syncPOSTForce sync with OpenNode
/api/refundsPOSTCreate refund
/api/refunds/{id}GETGet refund status
/api/ratesGETGet 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

  1. Sign up for Lightning Enable
  2. Create an OpenNode account
  3. Complete KYC verification
  4. Configure your API keys
  5. Make your first payment

Next Steps