Account lifecycle
Signup ignores bare external-wallet inputs. Link a wallet only after merchant authentication and signature proof. Keep the merchant API key in your backend secrets store; profile reads reveal only a hint. A separate
fhq_sec_... checkout SDK credential and public SDK release are not supported. See authentication and SDK guidance.
The legacy GET /api/merchant/dashboard API is retired with 410. The dashboard page at /merchant/dashboard is separate and uses the profile/ledger APIs. Never expect an API response to echo your full key.
Expired links use a neutral badge and a separate dashboard count; terminal failures stay red, and unknown status codes are not counted as Pending. These are display-only labels; they do not change stored status or payment behavior.
Payout wallet
Use GET /api/merchant/wallet with your merchant key or session. Mainnet Circle wallet checks can withhold stale/unverified addresses with409 or retryable 503; do not fund an address hidden by that gate.
PATCH /api/merchant/walletonly switches back to Circle. It creates a new wallet rather than restoring an old one; already-Circle accounts with an address receive409.- GET/POST /api/merchant/wallet/connect links MetaMask, WalletConnect or Coinbase after a nonce challenge and wallet signature. Keep the nonce cookie across both steps. FlareHQ does not store the external wallet’s private key.
- Changing the account’s wallet affects future routing. Existing invoice recipient fields stay frozen; re-read the recipient before payment.
USDC withdrawal
POST /api/merchant/withdraw uses your authenticated Circle payout wallet, requires anIdempotency-Key header of 1–120 characters, and accepts destinationAddress and decimal amount. Review the address, amount and fees before authorizing an irreversible transfer.
Keep the same key for one intended withdrawal and reconcile ambiguous receipts/rows before another transfer. A PROCESSING replay with no hash is not paid and not permission to use a fresh key. External-wallet merchants manage funds in their own wallet instead.
Create an invoice or link
- Initialize uses a merchant API key, not a bare merchant session, and stores a 120-minute invoice.
- Merchant payment links accept a merchant key or session and store one USDC invoice with a 24-hour expiry. Links are not reusable collection addresses.
descriptionis echoed but not persisted. - Open the returned hosted or embedded URL. Initialization does not charge the customer.
- Fulfill only after reconciling verified payment state and transaction evidence. Webhooks are unsigned/best-effort hints, not guaranteed delivery.

