# UniFi Docs - [Mission](https://docs.payunifi.com/mission.md): Why UniFi is building a simpler payment rail for stablecoins. - [Quickstart](https://docs.payunifi.com/quickstart.md): Open UniFi, choose an account model, and complete a first payment flow. - [How UniFi works](https://docs.payunifi.com/concepts/how-unifi-works.md): Understand the actors, authorization steps, execution, and receipt lifecycle. - [Security and Permit2 permissions](https://docs.payunifi.com/concepts/security-and-permissions.md): Understand the one-time token approval, short-lived payment signature, and safe integration practices. - [Development](https://docs.payunifi.com/development.md): Plan a secure UniFi payment integration and follow each transfer through finality. - [Overview](https://docs.payunifi.com/webapp/overview.md): A tour of the UniFi 2.0 web application and its main payment journeys. - [Home](https://docs.payunifi.com/webapp/home.md): Start a payment, request, scan, or deposit and choose an asset-network pair. - [Auth](https://docs.payunifi.com/webapp/auth.md): Sign up or return with email credentials or a connected MetaMask wallet. - [Unio wallet](https://docs.payunifi.com/webapp/unio.md): Use the self-custodial Unio wallet in the UniFi app, a terminal, or Docker. - [Deposit](https://docs.payunifi.com/webapp/deposit.md): Receive a selected ERC-20 stablecoin at the wallet address shown by UniFi. - [Balance](https://docs.payunifi.com/webapp/balance.md): Inspect total and per-network balances for every supported stablecoin. - [Send](https://docs.payunifi.com/webapp/pay_send.md): Choose an asset and network, review a recipient and amount, then authorize payment. - [Pay Receipt](https://docs.payunifi.com/webapp/pay_receipt.md): Read payment status, transfer details, blockchain reference, and finality. - [Request Pay](https://docs.payunifi.com/webapp/pay_request.md): Create and share a FliQR request for an exact stablecoin payment. - [Pay History](https://docs.payunifi.com/webapp/pay_history.md): Search, filter, open, and share payment receipts across assets and networks. - [API Key, Quota](https://docs.payunifi.com/webapp/api_key.md): Manage API credentials and inspect the active plan's credits and request quota. - [API Plans](https://docs.payunifi.com/webapp/api_plan.md): Compare API credits, request rates, operational features, and billing periods. - [Overview](https://docs.payunifi.com/falcon/overview.md): Use an AI-assisted agent to prepare and automate on-chain stablecoin payments. - [Product](https://docs.payunifi.com/falcon/product.md): View product screenshots - [Payment gateway](https://docs.payunifi.com/payment-gateway/overview.md): Add UniFi stablecoin payments to an existing merchant checkout. - [Quickstart](https://docs.payunifi.com/payment-gateway/quickstart.md): Install the UniFi Pay widget and complete a first end-to-end checkout. - [React integration](https://docs.payunifi.com/payment-gateway/react.md): Use the complete UniFi widget or compose its checkout components. - [Headless TypeScript](https://docs.payunifi.com/payment-gateway/headless.md): Build custom payment UI with UniFi sessions, status checks, and receipt URLs. - [Server proxy](https://docs.payunifi.com/payment-gateway/server-proxy.md): Keep the UniFi API key server-side behind narrow session and receipt-status routes. - [Lifecycle and production readiness](https://docs.payunifi.com/payment-gateway/lifecycle.md): Persist orders, reconcile receipts, handle failures, and separate payment detection from chain finality. - [FliQ Market example](https://docs.payunifi.com/payment-gateway/fliq-market.md): Walk through a working UniFi merchant checkout integration. - [Overview](https://docs.payunifi.com/cli/overview.md): Manage payments, wallets, and APIs directly from the command line. - [CLI quickstart](https://docs.payunifi.com/cli/quickstart.md): Set up the UniFi CLI and start in minutes. - [Usage](https://docs.payunifi.com/cli/usage.md): Learn about the commands - [CLI changelog](https://docs.payunifi.com/cli/changelog.md): Track all updates, improvements, fixes, and new features for the UniFi CLI. - [Introduction](https://docs.payunifi.com/api-reference/introduction.md): Use the production UniFi API for deposit, wallet, payments, history & more. - [Authentication](https://docs.payunifi.com/api-reference/authentication.md): Use bearer API keys for accessing the endpoints. - [Errors and payment state](https://docs.payunifi.com/api-reference/errors.md): Handle HTTP failures, retries, receipt status, and idempotency safely. - [Check API process availability](https://docs.payunifi.com/api-reference/endpoints/health/check-api-process-availability.md): Lightweight liveness check. It does not test the database, blockchain RPCs, or every downstream dependency. - [Check API dependencies](https://docs.payunifi.com/api-reference/endpoints/health/check-api-dependencies.md): Runs the deeper service health check, including production dependencies. This operation consumes protected API capacity. - [Get a wallet address for a chain](https://docs.payunifi.com/api-reference/endpoints/deposit/get-a-wallet-address-for-a-chain.md): Resolves the user's wallet address for the requested chain. - [Get wallet addresses by protocol](https://docs.payunifi.com/api-reference/endpoints/deposit/get-wallet-addresses-by-protocol.md): Returns the user's wallet address for every supported chain protocol. - [Get a stablecoin balance](https://docs.payunifi.com/api-reference/endpoints/wallet/get-a-stablecoin-balance.md): Returns the formatted net balance for one user, chain, and stablecoin. - [Get all stablecoin balances on a chain](https://docs.payunifi.com/api-reference/endpoints/wallet/get-all-stablecoin-balances-on-a-chain.md): Returns formatted balances for every supported stablecoin on the requested chain. - [Get the complete wallet balance view](https://docs.payunifi.com/api-reference/endpoints/wallet/get-the-complete-wallet-balance-view.md): Returns all supported assets across all supported chains, ordered by total USD value. - [Get latest and finalized wallet balances for one pair](https://docs.payunifi.com/api-reference/endpoints/wallet/get-latest-and-finalized-wallet-balances-for-one-pair.md): Returns comparable latest-block and finalized-block net balances for one stablecoin-chain pair. Both use the same pay formula so finality_status and finality_delta describe only the exact block-finality difference. The balance field remains the two-decimal latest-block balance, while latest_value_us… - [Get wallet balances by chain](https://docs.payunifi.com/api-reference/endpoints/wallet/get-wallet-balances-by-chain.md): Returns each supported stablecoin balance and USD value for one chain. - [Get wallet balances by stablecoin](https://docs.payunifi.com/api-reference/endpoints/wallet/get-wallet-balances-by-stablecoin.md): Returns the selected stablecoin's balance and USD value across supported chains. - [Get spendable payment balance](https://docs.payunifi.com/api-reference/endpoints/preflight/get-spendable-payment-balance.md): Returns the user's formatted net balance before creating a payment. - [Estimate the payment fee](https://docs.payunifi.com/api-reference/endpoints/preflight/estimate-the-payment-fee.md): Returns the formatted estimated total stablecoin fee for the selected route. - [Get payment balance and fee](https://docs.payunifi.com/api-reference/endpoints/preflight/get-payment-balance-and-fee.md): Combines spendable balance, estimated fee, and allowance state for the selected route. - [Get custodial bulk-payment inputs](https://docs.payunifi.com/api-reference/endpoints/preflight/get-custodial-bulk-payment-inputs.md): Returns balances, BundlePay allowances, gas data, and prices for the selected stablecoins on one chain. - [Prepare a self-custodial payment](https://docs.payunifi.com/api-reference/endpoints/preflight/prepare-a-self-custodial-payment.md): Checks the sender balance and Permit2 allowance, then estimates the payment fee for one self-custodial payment. - [Prepare self-custodial bulk payments](https://docs.payunifi.com/api-reference/endpoints/preflight/prepare-self-custodial-bulk-payments.md): Checks balances and Permit2 allowances by coin, then estimates the total fee for a self-custodial bulk payment. - [Get self-custodial fee inputs](https://docs.payunifi.com/api-reference/endpoints/preflight/get-self-custodial-fee-inputs.md): Returns raw allowance, balance, gas, and price inputs for client-side self-custodial payment calculations. - [Get self-custodial bulk fee inputs](https://docs.payunifi.com/api-reference/endpoints/preflight/get-self-custodial-bulk-fee-inputs.md): Returns raw Permit2 allowances, balances, gas data, and prices for the selected stablecoins on one chain. - [Create a stablecoin payment](https://docs.payunifi.com/api-reference/endpoints/pay/create-a-stablecoin-payment.md): Submits a payment from a UniFi-managed wallet. The response is a receipt ID; query the receipt endpoint for settlement progress. - [Create managed-wallet bulk payments](https://docs.payunifi.com/api-reference/endpoints/pay/create-managed-wallet-bulk-payments.md): Submits two or more same-chain payments from a UniFi-managed wallet. UniFi handles controlled-wallet approval and signing and returns one durable bulk payment ID plus one receipt ID per recipient. - [Create a managed-wallet merchant payment](https://docs.payunifi.com/api-reference/endpoints/pay/create-a-managed-wallet-merchant-payment.md): Submits a merchant payment from a UniFi-managed wallet and associates its receipt with the supplied payment session. A session accepts only one payment; an already-paid or currently-processing session returns 409 Conflict. - [Create a self-custodial payment permit](https://docs.payunifi.com/api-reference/endpoints/pay/create-a-self-custodial-payment-permit.md): Builds the EIP-712 domain and Permit2 message that the sender signs before submitting one self-custodial payment. - [Create a self-custodial bulk-payment permit](https://docs.payunifi.com/api-reference/endpoints/pay/create-a-self-custodial-bulk-payment-permit.md): Builds the EIP-712 domain and Permit2 message that the sender signs before submitting a self-custodial bulk payment. - [Create a self-custodial payment](https://docs.payunifi.com/api-reference/endpoints/pay/create-a-self-custodial-payment.md): Submits one payment with the sender's Permit2 nonce and signature. The response is a receipt ID; query the receipt endpoint for settlement progress. - [Create self-custodial bulk payments](https://docs.payunifi.com/api-reference/endpoints/pay/create-self-custodial-bulk-payments.md): Submits a signed Permit2 batch and returns one durable bulk payment ID plus the receipt IDs created for its individual payments. - [Create a self-custodial merchant payment](https://docs.payunifi.com/api-reference/endpoints/pay/create-a-self-custodial-merchant-payment.md): Submits a signed self-custodial merchant payment and associates its receipt with the supplied payment session. A session accepts only one payment; an already-paid or currently-processing session returns 409 Conflict. - [Get a merchant payment session status](https://docs.payunifi.com/api-reference/endpoints/history/get-a-merchant-payment-session-status.md): Returns the receipt ID associated with a merchant payment session. An empty data string means that no receipt has been attached yet. - [Get a payment receipt](https://docs.payunifi.com/api-reference/endpoints/history/get-a-payment-receipt.md): Returns the latest known state of one stablecoin payment. - [Get a bulk payment](https://docs.payunifi.com/api-reference/endpoints/history/get-a-bulk-payment.md): Returns the ordered individual receipts created by one managed-wallet or self-custodial bulk-payment submission. - [Get payment history](https://docs.payunifi.com/api-reference/endpoints/history/get-payment-history.md): Returns a page of receipts sent or received by the user. pending=true matches Processing and Confirmed receipts; pending=false excludes both. Do not combine pending with status. For a continuation request, set next_or_previous and pass the receipt ID at the current page edge as cursor: the last rece… ## OpenAPI Specs - [openapi](/api-reference/openapi.json) This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.