Aurora Logo
Developer API

Bitcoin Payments
In Just 5 Lines of Code

Aurora's RESTful API lets you integrate Bitcoin and Lightning Network payments into your application with minimal effort.

Bitcoin & Lightning
Webhook Events
aurora-api.py
×
// Aurora API Example
Line: 1Col: 1
import requests

# Create a Lightning invoice
def create_invoice(api_key, amount, memo):
    url = "https://aurora.mybuho.de/api/invoice"
    headers = {
        "Authorization": f"Bearer {api_key}",
        "Content-Type": "application/json"
    }
    payload = {
        "amount": amount,
        "memo": memo,
        "currency": "currency code",
        "extra": {}
    }
    
    response = requests.post(url, headers=headers, json=payload)
    return response.json()

# Example usage
api_key = "your_api_key"
invoice = create_invoice(api_key, 10000, "Product purchase")
print(f"Payment request: {invoice['invoice']['invoice']}")
print(f"Checking ID: {invoice['invoice']['id']}")
Ready
UTF-8Aurora API v1.1

Powerful Features for Developers

Our API is designed to make Bitcoin and Lightning Network payments simple to integrate.

Lightning Network
Fast, low-fee Bitcoin payments
  • Create BOLT11 invoices
  • Support for multiple fiat currencies
  • Check payment status
  • Generate QR codes
On-chain Bitcoin
Traditional Bitcoin transactions
  • Generate Bitcoin addresses
  • Track transaction confirmations
  • Automatic payment verification
Webhooks
Real-time payment notifications
  • Instant payment notifications
  • Secure signature verification
  • Automatic retries for failed deliveries

Simple API Endpoints

Our API is designed to be intuitive and easy to use, with clear endpoints for all your payment needs.

Lightning Network Endpoints

Create and manage Lightning Network invoices for instant Bitcoin payments.

POST
/lightning/invoice/

Create a new lightning invoice

QR code available
GET
/lightning/invoice/qr/{id}

Get QR code for a lightning invoice by checking ID

Returns PNG image
GET
/lightning/invoice/status/{id}

Get the status of an Lightning invoice by checking ID

Webhook notifications available
# Lightning Invoice Endpoints POST /api/lightning/invoice/ Create a new lightning invoice Request: { "amount": 10000, "memo": "Product purchase", "currency": "sat", "extra": {} } Response: { "message": "Invoice created successfully", "invoice": { "payment_hash": "...", "id": "...", "invoice": "lnbc...", "amount": "...", "currency": "..." } } GET /api/lightning/invoice/qr/{id} Get QR code for a lightning invoice by checking ID GET /api/lightning/invoice/status/{id} Get the status of an Lightning invoice by checking ID

Embedded Invoice Form

Integrate Bitcoin Lightning payments with just a single line of code using our lightweight script-based widget.

Seamless Payment Integration

The Aurora Embedded Invoice Form is a lightweight, script-based Lightning payment widget that allows developers to quickly integrate Bitcoin Lightning payments into any website or web app.

Plug-and-Play Integration

Just add one <script> tag — no complex setup or extra libraries needed.

Instant Lightning Invoices

Automatically generates Bitcoin Lightning invoices with real-time data.

Customizable and Lightweight

Set currency (e.g., sats) and connect to any Aurora-compatible API endpoint.

Secure and Isolated

Your API key stays embedded in the script attributes; no full-page reloads or insecure redirects.

Live Payment Experience

The live widget provides a seamless payment flow embedded directly into your webpage or app.

Ideal for:

E-commerce checkout
Donation buttons
Pay-to-unlock content
In-Game payments

How It Works

Include a single <script> tag on your page and configure it with data attributes:

<script src="https://aurora.mybuho.de/static/js/payment-widget.js" data-api-endpoint="https://aurora.mybuho.de/api/lightning/invoice/" data-api-key="your-api-key" data-currency="sat"> </script>
1

data-api-endpoint: URL to your Aurora-compatible invoice API

2

data-api-key: Your API key for authentication

3

data-currency: The desired currency unit (e.g., sat for sats)

Technical Highlights:

  • No external dependencies (pure JavaScript)
  • Minimal footprint for fast page loads
  • Real-time payment status updates without page refresh
  • Embeds cleanly into any HTML page

Integration in 3 Simple Steps

Get up and running with Aurora payments in minutes, not days.

1

Get API Keys

Get in contact with Aurora and get your API keys to query.

2

Integrate API

Add a few lines of code to your application to create invoices and handle payments.

3

Accept Payments

Start accepting Bitcoin and Lightning Network payments from customers worldwide.

Clear Value Proposition for Devs

Aurora API helps developers and businesses create Lightning and Bitcoin payment flows using just a few lines of code. Whether you're building a SaaS, mobile app, or indie tool or having e-commerce— Aurora lets you accept payments with full flexibility and minimal setup.

Key Benefits

  • No Chargebacks - Bitcoin transactions are irreversible, eliminating the risk of fraudulent chargebacks
  • Lower Transaction Fees - Save significantly on payment processing costs compared to traditional methods
  • Global Reach - Accept payments from customers worldwide without currency conversion complications
  • Future-Proof Technology - Stay ahead with cutting-edge payment technology for the future of finance

Ready to Get Started?

Contact us today to get your API keys and start accepting Bitcoin and Lightning Network payments in your application.