Skip to content
REST · JSON · signed webhooks

One API call to get paid in crypto.

Create an invoice, send your customer to the hosted page, and wait for a signed webhook. Bitcoin, Litecoin, Ethereum and BNB Smart Chain, with USDT and USDC, for 0.5% per payment.

base
https://api.coinsflow.app
auth
Bearer key, one per merchant
spec
OpenAPI 3.1, every endpoint
sdk
none to install
POST /v1/invoices
curl https://api.coinsflow.app/v1/invoices \
  -H "Authorization: Bearer cf_live_…" \
  -H "Idempotency-Key: order-A-1042" \
  -H "Content-Type: application/json" \
  -d '{
    "chain": "bsc",
    "asset": "USDT",
    "priceAmount": "120.00",
    "orderId": "A-1042"
  }'
201 Created
{
  "status": "pending",
  "amountDue": "120.00",
  "address": "0xfF3f…d85a",
  "paymentUrl": "https://coinsflow.app/invoice/c21e…"
}
webhooks

Your server hears about every change.

Each event is signed with your endpoint’s secret, so you can prove it came from us. If your server does not answer, we try again after 3 seconds, 30 seconds, 5 minutes, 1 hour, 6 hours and 24 hours, and you can send any delivery again from the dashboard.

  • HMAC-SHA256 over the timestamp and the raw body
  • Twelve events for invoices and withdrawals; subscribe to the ones you want
  • A delivery log with the response your server gave
Deliveries to https://shop.example/hooks/coinsflowsample
14:02:11invoice.detectedA-1042200
14:02:41invoice.settledA-1042200
16:30:05withdrawal.broadcast119.94 USDT503
16:30:08withdrawal.broadcastretry 1200
16:30:22withdrawal.confirmed119.94 USDT200
Check the signature (Node)Full example
// CoinsFlow-Signature: t=1791294899,v1=5f2c…
const [t, v1] = header.split(",").map((p) => p.split("=")[1]);
const mac = crypto.createHmac("sha256", secret)
  .update(t + "." + rawBody).digest("hex");
const ok = v1.length === mac.length
  && crypto.timingSafeEqual(Buffer.from(v1), Buffer.from(mac));
endpoints

The whole API fits on one screen.

Details that save you a support ticket.

Idempotency-Key

On every write. A retry after a timeout never makes a second invoice or a second withdrawal.

"120.00"

Amounts are exact decimal strings in both directions. No floats, so no 119.99999.

One key

Per merchant, for everything: invoices, balances and withdrawals. Copy it again or rotate it in the dashboard.

50 req/s

Per address, with room for bursts, before you ever see a 429.

pricing

0.5% per payment. Nothing else.

No setup fee and no monthly fee. A withdrawal costs the network’s own fee, and you see it before you confirm. See the full pricing

Checkout pages live at coinsflow.app/invoice/… and open in any browser; the customer pays from any wallet.

Worked examples with the webhook handler: a Discord bot and a Minecraft server store. A page for each coin: accept Bitcoin, Litecoin, Ethereum, BNB, USDT or USDC.

Two guides: Webhooks for crypto payments: verifying the signature and handling retries, and Test mode: how to test crypto payments end to end without spending a coin.