Skip to main content
Your merchant account holds your business identity, payout wallet and API key. The customer pays directly to the merchant wallet; FlareHQ never holds checkout funds. Mainnet merchant invoice settlement is USDC-only. Merchant link creation and hosted/embed rendering are live on Arc Mainnet. Creating a link or invoice stores an unpaid record and moves no funds. Account and wallet bindings are server-resolved. Read mainnet availability before funded use.

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 with 409 or retryable 503; do not fund an address hidden by that gate.
  • PATCH /api/merchant/wallet only switches back to Circle. It creates a new wallet rather than restoring an old one; already-Circle accounts with an address receive 409.
  • 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 an Idempotency-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.
  • 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. description is 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.

References