Bitcoin payments API

Bitcoin
to your wallet.

Create invoices in sats. Send customers a payment link. Track confirmations from your app.

API reference
Invoice walkthroughEXAMPLE

$ POST /api/invoices

amount_sats
24,500
status
unpaid
How it works

From invoice to confirmation

API reference

Create

Send the amount in sats and a fresh address from your Bitcoin wallet.

Share

Use the returned Bitcoin URI as a payment link or turn it into a QR code in your checkout.

Verify

Fetch the invoice to see its current payment status and transaction ID.

Create an invoice

// Use a fresh receiving address from your wallet.
const invoice = await fetch("https://pay.relight.bond/api/invoices", {
  method: "POST",
  headers: { Authorization: `Bearer ${apiKey}`, "Content-Type": "application/json" },
  body: JSON.stringify({ amount_sats: 24500, address: freshAddress })
}).then(response => response.json());

window.location.href = invoice.payment_uri;

Your workspace

Payment overview

API docs ↗
API keys—
Recent invoices—
Paid sats in recent invoices

API keys

Invoice-only access. Your key secret is shown once.
Loading your keys…

Live on-chain status

Invoice status is refreshed when your app fetches it.
Checking payment network…
View service status ↗

Recent invoices

The latest invoices created with your API keys.
Loading invoices…
  • Not met. 8–20 characters
  • Not met. One special character
  • Not met. One uppercase letter
  • Not met. One lowercase letter
  • Not met. Letters, numbers and standard symbols only