#Introduction
Receivify turns a crypto payment into a single API call. You create an invoice for an amount; we hand back a fresh deposit address and a hosted checkout page. A background worker watches the chain, credits the invoice once it has enough confirmations, forwards the funds to your wallet minus our fee, and fires a signed webhook at your server.
The base URL is https://receivify.io. All request and response bodies are JSON.
Base URL https://receivify.io
Invoices POST /api/v1/invoices
Status GET /api/public/invoices/:id (no auth, for checkout)#Quickstart
1. Create an account, then open Dashboard → API keys and create a key. It looks like rcv_live_… and is shown once, so store it somewhere safe.
2. Create an invoice. Every example on this page comes in cURL and each official SDK; pick your language once and every block follows. Install lines are on the SDKs page.
curl -X POST https://receivify.io/api/v1/invoices \
-H "Authorization: Bearer rcv_live_…" \
-H "Content-Type: application/json" \
-d '{ "amount_btc": "0.0025", "reference": "order-1042" }'3. Redirect your customer to the checkout_url from the response.
4. Receive a signed invoice.paid webhook and fulfil the order. That's it.
#Authentication
Authenticate every request to /api/v1/* with your secret API key as a bearer token. Keys are shown once at creation and stored only as a hash — if you lose one, rotate it.
Authorization: Bearer rcv_live_9f2c…/api/public/invoices/:id) needs no key and is safe for your checkout page.#Accounts & 2FA
There are no passwords. Sign up with just an email and confirm it from the link we send; after that you sign in with a 6-digit code we email you. API keys are for plugins and the API: create them in Dashboard → Developers (each is shown once). The dashboard session is an httpOnly cookie.
# sign up — email only; returns your API key (once) and opens a session
curl -X POST https://receivify.io/api/auth/register \
-H 'content-type: application/json' \
-d '{"email":"[email protected]"}'
# sign in — email + API key. Add "totp":"123456" when 2FA is on
curl -X POST https://receivify.io/api/auth/login \
-H 'content-type: application/json' \
-d '{"email":"[email protected]","api_key":"rcv_live_…"}'Enable TOTP two-factor from Security in the dashboard (or POST /api/v1/2fa/setup → /enable). Once on, login requires a 6-digit code and returns 401 totp_required without it.
#API keys
Issue multiple labelled keys and revoke any of them. Signed-in dashboard or an existing key both work.
# create a labelled key (raw key returned once)
curl -X POST https://receivify.io/api/v1/keys \
-H 'authorization: Bearer rcv_live_…' \
-H 'content-type: application/json' \
-d '{"label":"production"}'
# list keys (prefixes only) / revoke one
curl https://receivify.io/api/v1/keys -H 'authorization: Bearer rcv_live_…'
curl -X POST https://receivify.io/api/v1/keys/<id>/revoke -H 'authorization: Bearer rcv_live_…'#Create an invoice
Price it in fiat (converted + rate-locked), in the coin, or in base units. Pick a coin with asset (default btc; must be enabled + settleable).
| Field | Type | Notes |
|---|---|---|
| amount_fiat | number | string | Price in fiat, e.g. 49.99. Pair with currency. Converted at the current rate; the rate is locked on the invoice. It comes BACK as a decimal string ("49.99"). |
| currency | string? | ISO code for amount_fiat, e.g. "USD", "EUR". Default USD. 55 supported. |
| asset | string? | Coin to accept, e.g. btc (default), ltc, doge, bch, xmr, eth, sol, trx, usdt, usdc. Must be enabled + settleable — see GET /api/v1/assets. |
| chain | string? | For multi-network coins: ethereum, polygon, bsc, base, arbitrum, … or solana / tron (e.g. USDT on Tron is asset usdt + chain tron). |
| amount | string? | Decimal amount in the coin, e.g. "0.0025". |
| amount_btc | string? | Legacy: decimal BTC. Parsed exactly — never as a float. |
| amount_sats | integer? | Whole base units of the coin. |
| reference | string? | Your order id. Idempotent: same merchant + reference returns the existing invoice — even after it expired. To retry an order, add an attempt number (order-1042-2). See Retrying an order below. |
| callback_url | string? | Webhook target. Must be https in production. |
| return_url | string? | Where the hosted checkout sends the payer after paid: a Back to store button plus an automatic redirect after a 3-second countdown they can cancel. https only, max 2048 characters, your query string (?order=1042) kept as given. |
| cancel_url | string? | Where the hosted checkout sends the payer if the invoice expires or is cancelled. Same rules as return_url. |
| customer_email | string? | Optional. We email your customer the payment request, receipt and reminders for you. Needs customer emails unlocked — otherwise 403 customer_emails_locked. See Customer emails below. |
| notify | boolean? | Default true. false stores customer_email without emailing it. |
| metadata | object? | Arbitrary JSON echoed back to you. Never shown to the customer. |
- Type
- number | string
- Notes
- Price in fiat, e.g. 49.99. Pair with currency. Converted at the current rate; the rate is locked on the invoice. It comes BACK as a decimal string ("49.99").
- Type
- string?
- Notes
- ISO code for amount_fiat, e.g. "USD", "EUR". Default USD. 55 supported.
- Type
- string?
- Notes
- Coin to accept, e.g. btc (default), ltc, doge, bch, xmr, eth, sol, trx, usdt, usdc. Must be enabled + settleable — see GET /api/v1/assets.
- Type
- string?
- Notes
- For multi-network coins: ethereum, polygon, bsc, base, arbitrum, … or solana / tron (e.g. USDT on Tron is asset usdt + chain tron).
- Type
- string?
- Notes
- Decimal amount in the coin, e.g. "0.0025".
- Type
- string?
- Notes
- Legacy: decimal BTC. Parsed exactly — never as a float.
- Type
- integer?
- Notes
- Whole base units of the coin.
- Type
- string?
- Notes
- Your order id. Idempotent: same merchant + reference returns the existing invoice — even after it expired. To retry an order, add an attempt number (order-1042-2). See Retrying an order below.
- Type
- string?
- Notes
- Webhook target. Must be https in production.
- Type
- string?
- Notes
- Where the hosted checkout sends the payer after paid: a Back to store button plus an automatic redirect after a 3-second countdown they can cancel. https only, max 2048 characters, your query string (?order=1042) kept as given.
- Type
- string?
- Notes
- Where the hosted checkout sends the payer if the invoice expires or is cancelled. Same rules as return_url.
- Type
- string?
- Notes
- Optional. We email your customer the payment request, receipt and reminders for you. Needs customer emails unlocked — otherwise 403 customer_emails_locked. See Customer emails below.
- Type
- boolean?
- Notes
- Default true. false stores customer_email without emailing it.
- Type
- object?
- Notes
- Arbitrary JSON echoed back to you. Never shown to the customer.
Request:
{
"amount_btc": "0.0025",
"reference": "order-1042",
"callback_url": "https://shop.com/hooks/rcv",
"return_url": "https://shop.com/checkout/thanks?order=1042",
"cancel_url": "https://shop.com/cart?order=1042",
"metadata": { "cart_id": "c_88f2" }
}Response 201 Created (the same 201 and body when the reference already existed):
{
"id": "82c6004a-a251-44f9-bbc7-9d22e03ee65c",
"reference": "order-1042",
"asset": "btc",
"amount_expected": "250000",
"amount_received": "0",
"address": "bcrt1qam8t3w805yqehyy7hwl6sn5jlugkekfz2fpc5r",
"status": "pending",
"expires_at": "2026-07-26T20:53:00.000Z",
"paid_at": null,
"metadata": { "cart_id": "c_88f2" },
"checkout_url": "https://receivify.io/pay/82c6004a-…",
"return_url": "https://shop.com/checkout/thanks?order=1042",
"cancel_url": "https://shop.com/cart?order=1042"
}Retrying an order. reference and Idempotency-Key both de-duplicate: sending the same one again returns the SAME invoice, with its original 201, even once it has expired. That is what makes a double-click or a network retry safe. When the customer comes back to pay an order whose invoice expired, start a new attempt: use order-1042-2 as the reference and a matching idempotency key. Our cart plugins do this for you, and they reuse the open invoice while it is still payable.
Amounts in responses are strings of whole base units, so they survive any language without float rounding. amount_fiat is a string too — a decimal one ("49.99"), since a fiat price is not a base-unit quantity. No money field in this API is ever a JSON number; only FX rates are.
#Customer emails
Pass customer_email and we email your customer for you: a payment request with a Pay now button, a note if a payment is partial, a receipt when it confirms, and a short message if the invoice expires. Each email carries your name, logo and colour, goes from “Your shop via Receivify” (or your own domain on the Scale tier), and replies reach you.
Customer emails unlock at $25,000 of monthly volume (last month or this month), with a prepaid plan that includes them, or with email credits. Until then a request carrying customer_email is refused with 403 customer_emails_locked rather than silently dropped — omit the field, or send notify: false to store the address without emailing it.
{
"amount_fiat": "49.99",
"currency": "USD",
"reference": "order-1042",
"customer_email": "[email protected]"
}Guard rails: only transactional emails tied to a real invoice, at most four per invoice, a daily cap per account, one-click unsubscribe on every email, and bounced or complaining addresses are never mailed again. Choose which emails go out, preview them and read the delivery log under Customer emails in your dashboard.
#Retrieve an invoice
Fetch a single invoice (authenticated), or list them filtered by status:
# one invoice
curl https://receivify.io/api/v1/invoices/82c6004a-… \
-H "Authorization: Bearer rcv_live_…"
# list, newest first (limit ≤ 200)
curl "https://receivify.io/api/v1/invoices?status=paid&limit=50" \
-H "Authorization: Bearer rcv_live_…"For your checkout page, poll the keyless public endpoint — it exposes only status, address, amounts, asset, chain, expiry and confirmations, nothing sensitive. It sends Access-Control-Allow-Origin: *, so your store's own page can poll it straight from the browser, and it is rate-limited per IP (120 a minute — poll every 4–5 seconds):
curl https://receivify.io/api/public/invoices/82c6004a-…
# { "status": "confirming", "amount_expected": "250000", "amount_received": "250000", … }#Webhooks & signatures
When an invoice changes state we POST it to your callback_url with an x-receivify-signature header. Failed deliveries retry with exponential backoff. The body is the same envelope forwarding callbacks use — { event, sequence, created_at, data } — with the invoice under data. See Forwarding callbacks for the envelope fields and the replay semantics.
x-receivify-signature: t=1753560000,v1=6f3b…Verify it by computing an HMAC-SHA256 of `${t}.${rawBody}` with your webhook secret and comparing in constant time. Use the raw request body — not the re-serialised JSON. Take a list of secrets, not one: during a rotation two are legitimately valid at once.
// client built with { webhookSecrets: [process.env.RECEIVIFY_WEBHOOK_SECRET] }
import { SIGNATURE_HEADER } from 'receivify'
app.post('/webhooks/receivify', express.raw({ type: 'application/json' }), (req, res) => {
let event
try {
event = client.parseWebhook(req.body, req.get(SIGNATURE_HEADER)) // RAW bytes
} catch {
return res.sendStatus(400) // bad signature, stale timestamp or bad JSON
}
if (event.event === 'invoice.paid') fulfil(event.data.reference)
res.sendStatus(200)
})No SDK in your language? The check is a few lines. Here it is by hand in Node, so you can port it:
import crypto from "node:crypto"
// `secrets` is an ARRAY: [current, previous?]. Pass one element when you are
// not mid-rotation — this signature then never has to change.
export function verify(rawBody, header, secrets) {
const parts = Object.fromEntries(
header.split(",").map((kv) => kv.split("="))
)
const sig = Buffer.from(parts.v1 || "")
const ok = [].concat(secrets).some((secret) => {
const expected = Buffer.from(crypto
.createHmac("sha256", secret)
.update(`${parts.t}.${rawBody}`)
.digest("hex"))
return sig.length === expected.length &&
crypto.timingSafeEqual(sig, expected)
})
if (!ok) throw new Error("bad signature")
// reject anything older than 5 minutes to stop replays
if (Math.floor(Date.now() / 1000) - Number(parts.t) > 300) {
throw new Error("stale webhook")
}
}Rotating the secret. POST /api/v1/webhooks/secret/rotate mints a new secret and returns it once. The old one stays acceptable until the returned prev_expires_at (24 hours by default) — we keep signing with the current secret only, so the grace window is an instruction to your receiver: verify against the new secret and fall back to the previous one until it expires. Rotating twice in quick succession replaces the previous secret rather than chaining, so your fallback list is never longer than two. GET /api/v1/webhooks/secret reports rotated_at, prev_expires_at and prev_active — never the secret itself.
| Event | Fires when |
|---|---|
| invoice.confirming | The deposit is seen on-chain, awaiting confirmations. |
| invoice.partial | Some — but not all — of the amount arrived. |
| invoice.paid | Enough confirmations; the invoice is fully paid. |
| sweep.sent | Net funds were forwarded to your payout address. |
- Fires when
- The deposit is seen on-chain, awaiting confirmations.
- Fires when
- Some — but not all — of the amount arrived.
- Fires when
- Enough confirmations; the invoice is fully paid.
- Fires when
- Net funds were forwarded to your payout address.
Verify payments independently
Always check the signature first (above, or verifyWebhook / verify_webhook in the SDKs). A valid signature proves the event came from us and was not altered. If you want a second, independent check before you ship goods, ask the chain itself — you do not have to trust us for that.
For a real invoice, invoice.paid carries everything the check needs: address (the invoice's deposit address), amount_expected and amount_received (exact integer base units — satoshis, wei, token units), asset, chain, confirmations_required, confirmations and payments[] (each with txid, amount and confirmations). sweep.sent adds payout: the txid, address and amount of the forward to your payout address. Fetch each txid from your own node or a public explorer, then confirm:
- the transaction pays
address(for a token, aTransferto it from the token's official contract); - the total paid to it is at least
amount_expected; - it has at least
confirmations_requiredconfirmations on your node.
import { createPublicClient, http, decodeEventLog, erc20Abi } from "viem"
import { mainnet } from "viem/chains" // pick the chain named in data.chain
const client = createPublicClient({ chain: mainnet, transport: http(process.env.MY_RPC_URL) })
// token: the official contract for data.asset on that chain, or null for the
// native coin (e.g. USDC on Ethereum: 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48)
export async function verifyEvm(data, token) {
const to = data.address.toLowerCase()
const head = await client.getBlockNumber()
let paid = 0n
for (const p of data.payments) {
const r = await client.getTransactionReceipt({ hash: p.txid })
if (r.status !== "success") continue
if (head - r.blockNumber + 1n < BigInt(data.confirmations_required ?? 1)) continue
if (!token) {
const tx = await client.getTransaction({ hash: p.txid })
if (tx.to?.toLowerCase() === to) paid += tx.value
continue
}
for (const log of r.logs) {
if (log.address.toLowerCase() !== token.toLowerCase()) continue
try {
const ev = decodeEventLog({ abi: erc20Abi, data: log.data, topics: log.topics })
if (ev.eventName === "Transfer" && ev.args.to.toLowerCase() === to) paid += ev.args.value
} catch { /* not a Transfer */ }
}
}
if (paid < BigInt(data.amount_expected)) throw new Error("not paid on chain")
}// mempool.space's Esplora API; point it at your own instance or node if you run one.
const API = "https://mempool.space/api"
export async function verifyBtc(data) {
const tip = Number(await (await fetch(`${API}/blocks/tip/height`)).text())
let paid = 0n
for (const p of data.payments) {
const tx = await (await fetch(`${API}/tx/${p.txid}`)).json()
if (!tx.status.confirmed) continue
if (tip - tx.status.block_height + 1 < (data.confirmations_required ?? 1)) continue
for (const out of tx.vout) {
if (out.scriptpubkey_address === data.address) paid += BigInt(out.value) // satoshis
}
}
if (paid < BigInt(data.amount_expected)) throw new Error("not paid on chain")
}On a chain that settles by finality (confirmations_required is null), check the transaction is finalised instead of counting blocks. If payments is empty, poll GET /api/v1/invoices/:id or check the deposit address's balance on chain.
On sweep.sent, the same lookup on payout.txid shows the money reaching payout.address — compare it with the payout address you saved. That address is protected: every change sends you an email alert, and with “Confirm with a code first” on, a change needs a code we email to you — so a leaked API key or password cannot quietly redirect your payouts.
#Invoice statuses
| Status | Meaning |
|---|---|
| pending | Created; nothing received yet. |
| confirming | Payment seen on-chain, below the confirmation threshold. |
| partial | Received less than the expected amount. |
| paid | Fully paid and confirmed. Ledger journal posted. |
| swept | Net amount forwarded to your wallet. |
| expired | The invoice window closed with no payment. |
- Meaning
- Created; nothing received yet.
- Meaning
- Payment seen on-chain, below the confirmation threshold.
- Meaning
- Received less than the expected amount.
- Meaning
- Fully paid and confirmed. Ledger journal posted.
- Meaning
- Net amount forwarded to your wallet.
- Meaning
- The invoice window closed with no payment.
#Forwarding addresses
A forwarding address is a standing deposit address bound to a destination wallet you already control. Anything paid to it — any number of times, any amount — is detected, credited, and forwarded on-chain automatically, minus your fee. No amount is fixed up front and there's no hosted checkout page: you get paid straight into your own wallet.
| Forwarding | Invoices | |
|---|---|---|
| Amount | Any amount, any number of times | Fixed at creation |
| Where funds land | Your own wallet (destination) | Swept to your payout address |
| Checkout UI | None — build your own | Hosted checkout_url |
| Address reuse | Permanent (except single-session coins) | One address per invoice |
- Forwarding
- Any amount, any number of times
- Invoices
- Fixed at creation
- Forwarding
- Your own wallet (destination)
- Invoices
- Swept to your payout address
- Forwarding
- None — build your own
- Invoices
- Hosted checkout_url
- Forwarding
- Permanent (except single-session coins)
- Invoices
- One address per invoice
The one-liner — a plain GET returns a fresh deposit address:
curl -H "Authorization: Bearer rcv_live_…" \
"https://receivify.io/api/v1/address/create?ticker=usdc_base&destination=0xYourWallet&callback=https://you.com/hook"Or the same thing as JSON, or from an SDK:
curl -X POST https://receivify.io/api/v1/address \
-H "Authorization: Bearer rcv_live_…" \
-H "Content-Type: application/json" \
-d '{ "ticker": "usdc_base", "destination": "0xYourWallet", "callback": "https://you.com/hook" }'Pick a ticker (asset + chain) from the full list:
curl https://receivify.io/api/v1/tickersA bare symbol (eth, usdc, sol, trx) resolves to that asset's default chain; add a chain suffix for anything else — usdc_base, usdc_polygon, eth_arbitrum, usdc_solana, usdt_tron. btc, ltc, doge, bch, zec and xmr have no chain suffix at all.
Forgiving aliases — muscle memory from other gateways just works:
| You can send | Instead of |
|---|---|
| address, to, payout_address | destination |
| coin, currency, asset | ticker |
| callback_url, webhook, webhook_url, url | callback |
| confs | confirmations |
- Instead of
- destination
- Instead of
- ticker
- Instead of
- callback
- Instead of
- confirmations
An unrecognized ticker gets a helpful nudge instead of a bare error:
{ "error": "bad_ticker", "detail": "Unknown ticker \"usdcbase\". Did you mean: usdc_base?" }Response 201 Created — every field here is exactly what serializeForward() returns:
{
"id": "b3f2b6b0-...-c9a1",
"forward_id": "b3f2b6b0-...-c9a1",
"ticker": "usdc_base",
"provider": "evm",
"chain": "base",
"address": "0xDepositAddressGeneratedForYou",
"destination": "0xYourWallet",
"callback_url": "https://you.com/hook",
"confirmations_required": 2,
"min_forward": "0.500000",
"status": "active",
"expires_at": null,
"created_at": "2026-08-24T12:00:00.000Z",
"updated_at": null
}Creating is deterministic. A forward's identity is (ticker, destination, callback_url): call create twice with the same three values and you get the same id and the same deposit address back, with 200 OK instead of 201 Created. Retries, proxies and double-fired requests can't leave you with two addresses for one integration. LTC, DOGE, BCH, ZEC and XMR are the exception — they are single-session, so each call mints a fresh address and always returns 201.
And the rest of the lifecycle:
| Method & path | What it does |
|---|---|
| GET /api/v1/address | List your forwards. ?status=active|paused|disabled|expired, ?ticker=, ?limit=, ?cursor=. |
| GET /api/v1/address/:id | One forward, plus its payments and callback delivery log. |
| PATCH /api/v1/address/:id | Pause or resume it (status: active | paused), or change callback_url. |
| DELETE /api/v1/address/:id | Soft delete — sets status: disabled. The record is never removed. |
- What it does
- List your forwards. ?status=active|paused|disabled|expired, ?ticker=, ?limit=, ?cursor=.
- What it does
- One forward, plus its payments and callback delivery log.
- What it does
- Pause or resume it (status: active | paused), or change callback_url.
- What it does
- Soft delete — sets status: disabled. The record is never removed.
min_forward is the economic floor for that ticker, in the asset's own units — below it, the worker defers forwarding a token payment rather than burn more gas than the payment is worth (native coins are exempt). expires_at is null for every permanent address — BTC, EVM, Solana, and Tron. The five single-session coins (ltc, doge, bch, xmr, zec) are single-session instead: each create call mints a fresh address with a real expiry, so request a new one per expected payment — don't reuse one for a second payment.
forward.confirmed fires normally); the payout just waits until it's turned on. Nothing is lost, and you get a forward.deferred with reason: gate_disabled so the wait is never silent.#Try it live
Create a real forwarding address against this deployment. Pick a ticker, drop in the wallet you want to get paid at, and run it — the request preview and code snippets below update as you type.
curl -H "Authorization: Bearer rcv_live_YOUR_KEY" \
"https://receivify.io/api/v1/address/create?ticker=btc&destination=YOUR_PAYOUT_ADDRESS&callback=https%3A%2F%2Fyou.com%2Fwebhooks%2Freceivify"#Forwarding callbacks
Six events post to the forward's own callback_url (not your account-level webhook endpoints — those are invoice-only). The happy path is detected → confirmed → sent; the other three exist so that silence never has to be interpreted.
| Event | When | pending |
|---|---|---|
| forward.detected | We've seen the transaction, but it hasn't reached its confirmation threshold. Nothing is credited yet — a heads-up, not money. | true |
| forward.confirmed | The payment confirmed and is credited to your ledger balance, even if the on-chain forward has not happened yet. | false |
| forward.deferred | Credited, but not going out right now — and reason says why. Not an error; nothing is lost. | false |
| forward.sent | The net amount was broadcast on-chain to your destination. | false |
| forward.reversed | A credit was undone because the transaction funding it stopped existing (reorg, or a Replace-By-Fee replacement). | false |
| forward.failed | The payment is held for manual review and will not move on its own. Your funds stay credited. | false |
- When
- We've seen the transaction, but it hasn't reached its confirmation threshold. Nothing is credited yet — a heads-up, not money.
- pending
- true
- When
- The payment confirmed and is credited to your ledger balance, even if the on-chain forward has not happened yet.
- pending
- false
- When
- Credited, but not going out right now — and reason says why. Not an error; nothing is lost.
- pending
- false
- When
- The net amount was broadcast on-chain to your destination.
- pending
- false
- When
- A credit was undone because the transaction funding it stopped existing (reorg, or a Replace-By-Fee replacement).
- pending
- false
- When
- The payment is held for manual review and will not move on its own. Your funds stay credited.
- pending
- false
forward.deferred fires when a payment enters a deferred state, and again only if the reason changes — never once per poll. The reasons are gate_disabled, uneconomical, below_minimum, insufficient_funds, wallet_unavailable, nonce_collision, not_forwardable and books_halted. forward.reversed carries reorg or rbf; forward.failed carries unverifiable, max_attempts or reversal_conflict.
forward.partial. A forwarding address has no expected amount, so it cannot be underpaid — you are credited for exactly what arrives. If that amount is too small to forward economically you get a forward.deferred with below_minimum or uneconomical, and it goes out once a later payment to the same address lifts it over the floor.Invoice webhooks and forwarding callbacks share one envelope, so a single receiver parses both. Switch on event; the resource is under data.
| Field | Type | Meaning |
|---|---|---|
| event | string | The event name — switch on this to know what data is. |
| sequence | number | Increases across all your deliveries. Use it to order and de-duplicate. |
| created_at | string | ISO-8601 UTC — when the event happened, not when this attempt was sent. |
| data | object | The resource: a forward payment for forward.*, an invoice for invoice.*. |
- Type
- string
- Meaning
- The event name — switch on this to know what data is.
- Type
- number
- Meaning
- Increases across all your deliveries. Use it to order and de-duplicate.
- Type
- string
- Meaning
- ISO-8601 UTC — when the event happened, not when this attempt was sent.
- Type
- object
- Meaning
- The resource: a forward payment for forward.*, an invoice for invoice.*.
data is the same shape for every forward.* event — only pending, reason and detail vary with the event:
| Field | Type | Meaning |
|---|---|---|
| forward_id | string | The forward this payment belongs to. |
| ticker | string | The ticker the forward was created with. |
| address_in | string | The deposit address that received the payment. |
| address_out | string | Your destination address. |
| txid_in | string | The incoming transaction id. |
| txid_out | string | null | The outgoing transaction id — null until forward.sent. |
| value | string | Gross amount received, base-unit integer string. |
| value_forwarded | string | Net amount forwarded (gross minus fee), base-unit integer string. |
| fee | string | Fee retained, base-unit integer string. |
| confirmations | number | Confirmation count at the time of the event. |
| pending | boolean | True on forward.detected only — seen, but not yet credited. |
| reason | string | null | Machine-readable cause on deferred/reversed/failed; null otherwise. Switch on this, not on detail. |
| detail | string | null | A human sentence explaining reason, safe to show in a dashboard. Prose, not contract — never parse it. |
| network_fee_paid_by | 'merchant' | 'platform' | Optional, once sent: merchant = the network fee came out of what you received. |
| network_fee | string | null | Optional: that network fee in base units, when known. |
| value_received | string | null | Optional: what your address received, when known. |
- Type
- string
- Meaning
- The forward this payment belongs to.
- Type
- string
- Meaning
- The ticker the forward was created with.
- Type
- string
- Meaning
- The deposit address that received the payment.
- Type
- string
- Meaning
- Your destination address.
- Type
- string
- Meaning
- The incoming transaction id.
- Type
- string | null
- Meaning
- The outgoing transaction id — null until forward.sent.
- Type
- string
- Meaning
- Gross amount received, base-unit integer string.
- Type
- string
- Meaning
- Net amount forwarded (gross minus fee), base-unit integer string.
- Type
- string
- Meaning
- Fee retained, base-unit integer string.
- Type
- number
- Meaning
- Confirmation count at the time of the event.
- Type
- boolean
- Meaning
- True on forward.detected only — seen, but not yet credited.
- Type
- string | null
- Meaning
- Machine-readable cause on deferred/reversed/failed; null otherwise. Switch on this, not on detail.
- Type
- string | null
- Meaning
- A human sentence explaining reason, safe to show in a dashboard. Prose, not contract — never parse it.
- Type
- 'merchant' | 'platform'
- Meaning
- Optional, once sent: merchant = the network fee came out of what you received.
- Type
- string | null
- Meaning
- Optional: that network fee in base units, when known.
- Type
- string | null
- Meaning
- Optional: what your address received, when known.
{
"event": "forward.confirmed",
"sequence": 41,
"created_at": "2026-08-24T12:05:00.000Z",
"data": {
"forward_id": "b3f2b6b0-...-c9a1",
"ticker": "usdc_base",
"address_in": "0xDepositAddressGeneratedForYou",
"address_out": "0xYourWallet",
"txid_in": "0xabc...",
"txid_out": null,
"value": "1500000",
"value_forwarded": "1485000",
"fee": "15000",
"confirmations": 2,
"pending": false,
"reason": null,
"detail": null
}
}…and the same envelope carrying a deferral, so you always know why something is waiting:
{
"event": "forward.deferred",
"sequence": 42,
"created_at": "2026-08-24T12:06:00.000Z",
"data": {
"forward_id": "b3f2b6b0-...-c9a1",
"ticker": "usdc_base",
"address_in": "0xDepositAddressGeneratedForYou",
"address_out": "0xYourWallet",
"txid_in": "0xabc...",
"txid_out": null,
"value": "1500000",
"value_forwarded": "1485000",
"fee": "15000",
"confirmations": 2,
"pending": false,
"reason": "uneconomical",
"detail": "forwarding this payment would currently cost more in network fees than the payment is worth; it is held and retried as fees move"
}
}Signed the same way as invoice webhooks — see Webhooks & signatures above for the x-receivify-signature header and the verification code. Amounts are exact-integer base-unit strings; parse with BigInt, not Number.
Retries and replays send the frozen payload. The body is built once, when the event happens, and every retry re-sends it byte for byte — a replayed invoice.paid always says paid, even if the invoice has since been swept. A webhook tells you what happened; poll GET /api/v1/invoices/:id or GET /api/v1/address/:id for what is true now. Treat delivery as at-least-once and de-duplicate on sequence.
#Errors
Errors return a JSON body with a machine-readable error and a human detail:
{ "error": "bad_request", "detail": "Provide amount_sats or amount_btc." }| Status | error | When |
|---|---|---|
| 400 | bad_request | Malformed body, bad amount, or invalid callback_url. |
| 401 | unauthorized | Missing or invalid API key. |
| 404 | not_found | No invoice with that id. |
| 502 | upstream_error | Could not derive a deposit address from the node. |
- error
- bad_request
- When
- Malformed body, bad amount, or invalid callback_url.
- error
- unauthorized
- When
- Missing or invalid API key.
- error
- not_found
- When
- No invoice with that id.
- error
- upstream_error
- When
- Could not derive a deposit address from the node.
#API reference
Merchant routes accept either a Bearer API key or a dashboard session cookie.
| Method & path | Auth | What it does |
|---|---|---|
| POST /api/auth/register | public | Create an account; returns first API key. |
| POST /api/auth/login | public | Email + API key (+ TOTP) → session cookie. |
| POST /api/auth/logout | session | End the session. |
| GET /api/auth/me | session | Current account. |
| POST /api/v1/invoices | key/session | Create an invoice. |
| GET /api/v1/invoices | key/session | List invoices (filter by status). |
| GET /api/v1/invoices/:id | key/session | Retrieve an invoice. |
| POST /api/v1/invoices/:id/cancel | key/session | Cancel a pending invoice. |
| POST /api/v1/invoices/bulk | key/session | Bulk-cancel invoices. |
| GET /api/v1/tickers | public | Every supported forwarding ticker. |
| GET /api/v1/address/create | key/session | Create a forwarding address via query params (GET twin of POST below). |
| POST /api/v1/address | key/session | Create a forwarding address. 201 new, 200 if it already existed. |
| GET /api/v1/address | key/session | List forwarding addresses (filter by status / ticker). |
| GET /api/v1/address/:id | key/session | Retrieve a forwarding address, its status, and its payments. |
| PATCH /api/v1/address/:id | key/session | Pause/resume, or change callback_url. destination is immutable. |
| DELETE /api/v1/address/:id | key/session | Disable a forwarding address (soft delete). |
| GET /api/v1/summary | key/session | Per-coin volume, fees, 30-day series, fx. |
| GET/PATCH /api/v1/payouts | key/session | View / change payout addresses (protected). |
| POST /api/v1/payouts/changes/:id/cancel | key/session | Cancel a pending payout change. |
| GET /api/v1/keys | key/session | List API keys. |
| POST /api/v1/keys | session | Create an API key (dashboard only; 2FA code if on). |
| POST /api/v1/keys/:id/revoke | session | Revoke a key (dashboard only; 2FA code if on). |
| POST /api/v1/2fa/setup · /enable · /disable | session | Manage TOTP two-factor. |
| GET/POST /api/v1/webhooks/endpoints | key/session | List / add account webhook endpoints. |
| PATCH /api/v1/webhooks/endpoints/:id | key/session | Pause (active: false) or correct the URL. |
| DELETE /api/v1/webhooks/endpoints/:id | key/session | Remove an endpoint. |
| GET /api/v1/webhooks/deliveries | key/session | Delivery log. ?event=, ?status=, ?limit=, ?cursor=. |
| POST /api/v1/webhooks/deliveries/:id/replay | key/session | Re-queue a delivery. |
| GET /api/v1/webhooks/secret | key/session | Rotation state (metadata only — never the secret). |
| POST /api/v1/webhooks/secret/rotate | key/session | Rotate the signing secret; the old one stays valid for 24h. |
| GET/POST /api/v1/payment-links | key/session | List / create payment links. |
| GET/PATCH/DELETE /api/v1/payment-links/:id | key/session | Read, edit (title/amount/active), or revoke a link. |
| GET /api/v1/assets | public | Enabled coins with minimums and fees. |
| GET /api/public/invoices/:id | public | Keyless status for your checkout page. |
| GET /api/health | public | Service health for monitors. |
- Auth
- public
- What it does
- Create an account; returns first API key.
- Auth
- public
- What it does
- Email + API key (+ TOTP) → session cookie.
- Auth
- session
- What it does
- End the session.
- Auth
- session
- What it does
- Current account.
- Auth
- key/session
- What it does
- Create an invoice.
- Auth
- key/session
- What it does
- List invoices (filter by status).
- Auth
- key/session
- What it does
- Retrieve an invoice.
- Auth
- key/session
- What it does
- Cancel a pending invoice.
- Auth
- key/session
- What it does
- Bulk-cancel invoices.
- Auth
- public
- What it does
- Every supported forwarding ticker.
- Auth
- key/session
- What it does
- Create a forwarding address via query params (GET twin of POST below).
- Auth
- key/session
- What it does
- Create a forwarding address. 201 new, 200 if it already existed.
- Auth
- key/session
- What it does
- List forwarding addresses (filter by status / ticker).
- Auth
- key/session
- What it does
- Retrieve a forwarding address, its status, and its payments.
- Auth
- key/session
- What it does
- Pause/resume, or change callback_url. destination is immutable.
- Auth
- key/session
- What it does
- Disable a forwarding address (soft delete).
- Auth
- key/session
- What it does
- Per-coin volume, fees, 30-day series, fx.
- Auth
- key/session
- What it does
- View / change payout addresses (protected).
- Auth
- key/session
- What it does
- Cancel a pending payout change.
- Auth
- key/session
- What it does
- List API keys.
- Auth
- session
- What it does
- Create an API key (dashboard only; 2FA code if on).
- Auth
- session
- What it does
- Revoke a key (dashboard only; 2FA code if on).
- Auth
- session
- What it does
- Manage TOTP two-factor.
- Auth
- key/session
- What it does
- List / add account webhook endpoints.
- Auth
- key/session
- What it does
- Pause (active: false) or correct the URL.
- Auth
- key/session
- What it does
- Remove an endpoint.
- Auth
- key/session
- What it does
- Delivery log. ?event=, ?status=, ?limit=, ?cursor=.
- Auth
- key/session
- What it does
- Re-queue a delivery.
- Auth
- key/session
- What it does
- Rotation state (metadata only — never the secret).
- Auth
- key/session
- What it does
- Rotate the signing secret; the old one stays valid for 24h.
- Auth
- key/session
- What it does
- List / create payment links.
- Auth
- key/session
- What it does
- Read, edit (title/amount/active), or revoke a link.
- Auth
- public
- What it does
- Enabled coins with minimums and fees.
- Auth
- public
- What it does
- Keyless status for your checkout page.
- Auth
- public
- What it does
- Service health for monitors.
Fee Guard is a switch in your dashboard. While it is on, a coin whose network fee is unusually high is left out of the coin lists your customers choose from, and returns by itself. With an API key, GET /api/v1/assets?expand=networks leaves those pairs out and names them in fee_guard.hidden; add fee_guard=off for the full list. Creating an invoice is never refused because of Fee Guard. The rule: a coin is hidden only while its network fee is more than twice that network's usual level over the last 7 days, and at least $0.10.
#Complete example project
The same small shop in your language, file by file: a Buy page that creates an invoice and sends the customer to the hosted checkout, a webhook route that verifies the signature on the raw body and marks the order paid, and an order page. Every project below is published in receivify-sdks/examples and was run end to end against the API before it went up. It follows the language you picked above.
{
"name": "receivify-example-node-express",
"private": true,
"version": "1.0.0",
"description": "A tiny shop that takes crypto with Receivify: create an invoice, redirect to checkout, mark the order paid from a signed webhook.",
"type": "module",
"main": "server.js",
"scripts": {
"start": "node --env-file-if-exists=.env server.js",
"dev": "node --watch --env-file-if-exists=.env server.js"
},
"engines": { "node": ">=20.6" },
"dependencies": {
"express": "^4.21.2",
"receivify": "^1.0.0"
}
}Run it in three steps
- 1Install
npm install - 2Add your keys and start
cp .env.example .env # fill in RECEIVIFY_API_KEY and RECEIVIFY_WEBHOOK_SECRET npm start - 3Test your webhook
npx localtunnel --port 3000 # or cloudflared / ngrok # then Dashboard → Webhooks → Send test
Clone everything with git clone https://github.com/receivify/receivify-sdks, then cd receivify-sdks/examples/node-express.
#Build with AI
Using Cursor, Claude Code, Copilot or ChatGPT to write your integration? Point it at these. They are generated from the same openapi.yaml the API is tested against, so an assistant reads the real contract instead of guessing from old blog posts.
Paste this into your assistant before asking it to build anything:
You are integrating Receivify crypto payments into this project.
Read https://receivify.io/llms-full.txt first and follow it exactly.
Rules:
- Use the official SDK for this language if one exists (Node: npm install receivify,
Python: pip install receivify, PHP: composer require receivify/receivify after
composer config repositories.receivify vcs https://github.com/receivify/receivify-php
(from the GitHub repository), Go: go get github.com/receivify/receivify-sdks/go). Otherwise call the REST API.
- Create one invoice per order with a reference unique to that order, then redirect
the customer to invoice.checkout_url.
- Verify every webhook on the RAW request body with the SDK's verify function, and
mark the order paid only on invoice.paid. Never trust the redirect back.
- Amounts are strings in base units or decimal strings; never use floats for money.
- Read RECEIVIFY_API_KEY and RECEIVIFY_WEBHOOK_SECRET from environment variables.Or drop an AGENTS.md in your repo so every assistant that opens the project (Claude Code, Cursor, Copilot, Codex) picks the rules up automatically:
# Payments: Receivify
- API reference for agents: https://receivify.io/llms-full.txt
- Spec: https://receivify.io/openapi.yaml
- Example projects: https://github.com/receivify/receivify-sdks/tree/main/examples
## Rules
- Create invoices server-side only; never expose RECEIVIFY_API_KEY to the browser.
- One invoice per order; reference = a unique order id, prefixed with the store name.
- Webhook route: read the raw body, verify x-receivify-signature with the SDK,
dedupe by event sequence, set the order paid only on invoice.paid, reply 2xx fast.
- Money is never a float: base-unit strings or decimal strings only.
- Test with Dashboard → Webhooks → Send test, then one small real payment.Tips: in Cursor, add https://receivify.io/llms-full.txt under Docs so it is indexed; in Claude Code, the AGENTS.md above is read automatically; in Copilot or ChatGPT, paste the prompt and attach the file. Want to see the result first? The example projects are exactly what a correct integration looks like. Per-tool steps and the AI-agent use cases are on the Build with AI page.
Want the agent to work in your account, not only write code? The Receivify MCP server gives Claude Code, Cursor, Codex and other MCP clients tools to create invoices and payment links and look up payments, with your API key. None of its tools sends money out. Setup for each agent: AI agents.
#Testing your integration
Webhooks, without paying anything. Send a signed sample event to your endpoint and check that your server verifies the signature and answers 2xx:
curl -X POST https://receivify.io/api/v1/webhooks/test \
-H "Authorization: Bearer rcv_live_…"The response shows what your endpoint returned. Register the endpoint first (Dashboard → Webhooks), or use Send test there instead.
Check what was delivered. Real deliveries are listed under GET /api/v1/webhooks/deliveries; a failed one can be replayed once you've fixed your endpoint:
# failed deliveries, newest first
curl "https://receivify.io/api/v1/webhooks/deliveries?status=failed" \
-H "Authorization: Bearer rcv_live_…"
# re-send one once your endpoint is fixed
curl -X POST https://receivify.io/api/v1/webhooks/deliveries/<id>/replay \
-H "Authorization: Bearer rcv_live_…"One real payment, end to end. Create an invoice at the coin's minimum (listed by GET /api/v1/assets) and pay it from your own wallet. You will see the invoice turn paid, receive the invoice.paid webhook, and get the funds at your payout address minus the fee.