Bitcoin payment link: send a BTC invoice by chat or e-mail
A client says "I'll pay in bitcoin" and you have no shop, no cart and no code. What you need is one link you can paste into a chat or an e-mail that opens a page with the right address, the right BTC amount and a QR code. This post shows how to make that link with easyway, what your client sees, and when the bitcoin counts as yours.
Two kinds of link, and which one to send
easyway has reusable payment links: one URL for a price that many people pay, where each payer picks any coin you accept. That suits a menu, a tip jar or a fixed-price service. For one client and one amount, a single invoice is the better link: it carries your order number and a note, it can be limited to Bitcoin, and it is paid once.
| Reusable payment link | One invoice, Bitcoin only | |
|---|---|---|
| Made in | Dashboard → Payment links | Dashboard → Payments → New invoice, or the API |
| Price | In USD | In USD, or an exact amount in BTC |
| Coins offered | Every coin you accept | Only BTC |
| Paid | Again and again | Once |
| Your reference | The link's title | Order ID and description |
Making the link in the dashboard
Open Payments → New invoice. In the currency menu choose Bitcoin and enter the amount in BTC (the form says "the customer pays exactly this coin on this network"). Keeping USD instead lets the client pick any coin you accept; to price in dollars but take only bitcoin, use the API below. Add an order ID and a short description: your client sees both on the payment page. If you enter the client's e-mail, they get a receipt once the invoice is paid. Under Expires after pick a window that matches how fast they will act: an invoice sent by chat may not be opened for hours, so 12 or 24 hours is usually right; the account default is 60 minutes. Create it, open the invoice and copy the Checkout link. That is the URL you send.
The same link from the API
To price in dollars but take only bitcoin, send currency: "USD" with allowed_assets: ["BTC"]. With only one coin there is nothing to choose, so the gateway quotes the BTC amount from the current rate while it creates the invoice and keeps it fixed until the invoice expires. A 12-hour lifetime therefore means a quote that can be 12 hours old when it is paid; if that matters, use a shorter one or send a new invoice later. With currency: "BTC" the amount is exact from the start.
curl -X POST https://api.easyway.cash/v1/invoices \
-H "Authorization: Bearer $EASYWAY_API_KEY" \
-H "Idempotency-Key: btc-invoice-0412" \
-H "Content-Type: application/json" \
-d '{"amount":"250.00","currency":"USD","allowed_assets":["BTC"],
"order_id":"INV-0412","description":"Logo design, April",
"customer_email":"client@example.com","lifetime":720}'The response has a payment_url (and, because only one coin is allowed, the pay_address and pay_amount too): paste the URL into the chat. Store the invoice id with your order and let the signed invoice.paid webhook mark it paid; the API reference lists every field.
What your client sees
The page shows a fresh bc1q… address made for this invoice only, the BTC amount with a copy button, a countdown to the expiry, and a QR code. For Bitcoin the QR is not just the address: it is a bitcoin:<address>?amount=<BTC> link (BIP21), so a phone wallet that scans it fills in the amount too. Typing 0.00412345 BTC by hand is the usual way an invoice ends up a few satoshis short.
Any wallet or exchange that sends on-chain bitcoin can pay. Lightning wallets cannot: there is no Lightning invoice. If an exchange takes its withdrawal fee out of the amount sent, the invoice shows as underpaid and the page asks for the rest; several transfers to the same address all count.
When the bitcoin counts
| Moment | What happens |
|---|---|
| Transaction broadcast | The page switches to confirming and you get invoice.confirming. Nothing is credited yet. |
| 2 confirmations | About 20 minutes on average. A second, independent block explorer must show the same output before it is credited. |
| Credited | The invoice turns paid, invoice.paid fires and the receipt e-mail goes out. |
| Sent after the expiry | The address is watched for 7 more days, so a late payment is still credited. |
Once a payment has been seen the invoice no longer expires, even if a low network fee keeps it unconfirmed for a while. Transfers under 0.00001 BTC are ignored as dust.
What it costs
| Amount | |
|---|---|
| Fee on a payment | 0.5% |
| Example: client pays 0.005 BTC | 0.004975 BTC on your balance |
| Withdrawal network fee | 0.00001 BTC |
| Minimum withdrawal | 0.00001 BTC |
Your client pays the Bitcoin network fee for their own transfer. The bitcoin stays bitcoin: easyway holds it on your balance until you withdraw it to a wallet you have whitelisted, which can be a bc1q, bc1p, 1… or 3… address. If you would rather not carry the price risk, add USDT or USDC to allowed_assets and let the client choose. More on Bitcoin itself is on the Bitcoin page.