To accept Bitcoin payments through an API, pick a provider that creates a payment request per order, confirms settlement with a webhook, and sends funds to a wallet you control. The main choice is the network: the Bitcoin base chain confirms in blocks, while Lightning (Bitcoin's payment layer) settles in seconds. Then compare custody, testing tools, and pricing.
Which network should a Bitcoin payments API use?
Choose by settlement time and cost per payment. The base chain adds blocks to the ledger about every ten minutes, so a payment needs time to confirm. Lightning settles in seconds, which suits checkout. Some APIs support both. The table compares the two for a merchant.
| Question | Base chain | Lightning |
|---|---|---|
| Time to confirm | Blocks, so minutes or longer | Seconds |
| Fit for checkout | Weak for in-session confirmation | Strong |
| Reversal after settlement | None | None |
| Customer needs | A Bitcoin wallet | A wallet that supports Lightning |
Block timing is public: the mempool.space block explorer shows the current blocks and confirmation estimates live. On Lightning, the BOLT 11 specification defines the payment request format that every compatible wallet reads. That shared format is why one API integration can reach many wallets.
The spec states the core rule for the invoice's hash:
MUST set
payment_hashto the SHA2 256-bit hash of thepayment_preimagethat will be given in return for payment.
The hash is what ties a payment to its proof, so the merchant can confirm settlement without trusting the payer.
What should a Bitcoin payments API give you?
At minimum: create a payment request, report its status, and push an event when it settles. These three calls cover an order from checkout to fulfilment. The rest of your stack, such as the cart and order records, stays in your own code.
Check these five items before you commit:
- Payment requests with your reference. You need to match each payment to an order.
- Settlement events. A webhook or stream, so your server does not poll.
- A sandbox. You should be able to test requests and confirmations before any real funds move.
- Documentation. Look for worked examples and a clear status model.
- A refund path. Settled Bitcoin payments cannot be reversed, so refunds are separate payments you send.
For the invoice call, the webhook pattern, and working code, read our Lightning payments API integration guide. This post covers the choice, and that one covers the build.
Who should hold the funds when you accept Bitcoin?
Prefer a design where funds settle to a wallet you control. A custodial API holds your balance until you withdraw, which adds counterparty risk and often a withdrawal fee. Our crypto gateway fee comparison shows how those costs add up.
Card processing is the contrast. Stripe's pricing page states the baseline:
2.9% + 30¢ per successful transaction for domestic cards
Beyond that fee, Stripe's payout documentation describes funds moving to your bank on a payout schedule. A Bitcoin API with non-custodial settlement has no such schedule, because the funds arrive in your own wallet.
How does Amboss Payments work as a Bitcoin payments API?
Amboss Payments
is an API that accepts Bitcoin and stablecoin payments over Lightning. Your developer connects your site or app to it. Customers pay from compatible Lightning wallets, and you receive payment confirmations automatically. You keep custody: Amboss does not hold, receive, or proxy your funds.
The limits are plain. It is an API integration, so you need a developer, and it does not ship a hosted checkout page. It uses Lightning, so customers need a wallet that supports it. The sandbox is free, with no setup fee, and pricing is tailored to your volume.
Platforms that serve many merchants can read the payment providers page for how the API fits a multi-merchant setup. Full endpoint details are in the Amboss Payments documentation.
Frequently asked questions
Can I accept Bitcoin payments without running a node?
Yes. A managed payments API runs the infrastructure and gives you payment requests and confirmations over HTTP. You avoid channel management and node uptime. Check where the funds settle, since that decides whether you or the provider holds them.
Does a Bitcoin payments API support refunds?
Settled Bitcoin payments cannot be reversed by the payer or the merchant. A refund is a new payment from you to the customer, under your own refund policy. Build the refund step into your order process before launch.
Should I accept Bitcoin on the base chain or on Lightning?
For checkout, Lightning fits better because it settles in seconds. The base chain suits large, infrequent payments where waiting for blocks is fine. If your customers pay in a browser session, test Lightning first.
Do I need a developer to integrate a Bitcoin payments API?
Yes, for Amboss Payments. Your developer uses the API and the free sandbox to test requests and confirmations before going live. The documentation covers the integration steps.
Can the same API accept stablecoins?
With Amboss Payments, yes. The API supports Bitcoin and stablecoins over Lightning, and your receiving wallet determines the settlement asset. Our guide on stablecoin payments for merchants covers when a merchant should choose them.

