# ZendFi Documentation ## Docs - [API Keys](https://docs.zendfi.tech/api-reference/api-keys.md): Create, list, and rotate your merchant API keys. - [Customer Wallets](https://docs.zendfi.tech/api-reference/customer-wallets.md): Manage MPC-secured wallets for your customers. - [Disputes](https://docs.zendfi.tech/api-reference/disputes.md): Public dispute intake and merchant/admin dispute resolution APIs. - [Fraud Controls](https://docs.zendfi.tech/api-reference/fraud-controls.md): Endpoint-level fraud and sanctions behavior, status codes, and integration guidance. - [Installment Plans](https://docs.zendfi.tech/api-reference/installments.md): Split payments into scheduled installments with automatic tracking. - [Invoices](https://docs.zendfi.tech/api-reference/invoices.md): Create professional invoices with email delivery, onramp support, and payment tracking. - [API Overview](https://docs.zendfi.tech/api-reference/overview.md): Base URL, versioning, request format, error handling, and pagination for the ZendFi API. - [Payment Intents](https://docs.zendfi.tech/api-reference/payment-intents.md): Two-phase payment flow with create-then-confirm semantics, similar to Stripe PaymentIntents. - [Payment Links](https://docs.zendfi.tech/api-reference/payment-links.md): Create shareable checkout URLs with hosted pages. No frontend required. - [Payments](https://docs.zendfi.tech/api-reference/payments.md): Create, retrieve, and monitor payments on Solana. - [Refunds](https://docs.zendfi.tech/api-reference/refunds.md): Create and track voluntary refunds for confirmed payments. - [Session Keys](https://docs.zendfi.tech/api-reference/session-keys.md): Create time- and amount-limited keys for automated transactions. - [Payment Splits](https://docs.zendfi.tech/api-reference/splits.md): Distribute payments across multiple recipients (crypto wallets or bank accounts) automatically. - [Sub Accounts](https://docs.zendfi.tech/api-reference/sub-accounts.md): Manage merchant-controlled sub-accounts, delegation tokens, and scoped withdrawals. - [Subscriptions](https://docs.zendfi.tech/api-reference/subscriptions.md): Create subscription plans and manage recurring billing on Solana. - [Webhooks](https://docs.zendfi.tech/api-reference/webhooks.md): Receive real-time notifications for payment events via HTTP callbacks. - [Architecture](https://docs.zendfi.tech/architecture.md): How ZendFi processes payments on Solana -- from transaction creation to settlement. - [Authentication](https://docs.zendfi.tech/authentication.md): How to authenticate with the ZendFi API using Bearer tokens and API keys. - [Advanced Commands](https://docs.zendfi.tech/cli/advanced.md): Payment intents and Purchasing Power Parity pricing tools. - [Init and Create](https://docs.zendfi.tech/cli/init.md): Add ZendFi to existing projects with zendfi init or scaffold new projects with create-zendfi-app. - [API Keys](https://docs.zendfi.tech/cli/keys.md): List, create, and rotate API keys from the terminal. - [CLI Overview](https://docs.zendfi.tech/cli/overview.md): Install and use the ZendFi CLI to manage payments, API keys, webhooks, and more from your terminal. - [Payments](https://docs.zendfi.tech/cli/payments.md): Create test payments, check payment status, and watch the payment lifecycle from your terminal. - [Sub Accounts](https://docs.zendfi.tech/cli/sub-accounts.md): Manage sub-accounts and delegation tokens from the ZendFi CLI. - [Webhooks](https://docs.zendfi.tech/cli/webhooks.md): Test webhooks locally with automatic tunnel setup through ngrok or Cloudflare. - [Test & Live Modes](https://docs.zendfi.tech/environments.md): Understand how ZendFi separates development and production environments using API key prefixes. - [Embedded Checkout](https://docs.zendfi.tech/guides/embedded-checkout.md): Drop a complete payment experience directly into your page with ZendFi Embedded Checkout. - [Express Integration](https://docs.zendfi.tech/guides/express.md): Build a payment API with Express.js and the ZendFi SDK. - [Next.js Integration](https://docs.zendfi.tech/guides/nextjs.md): Complete guide to integrating ZendFi payments into a Next.js application with the App Router. - [Fiat On-Ramp](https://docs.zendfi.tech/guides/onramp.md): Let Nigerian customers pay with bank transfers via NIBSS through ZendFi's fiat on-ramp. - [Payment Splits](https://docs.zendfi.tech/guides/payment-splits.md): Build marketplace payment flows where funds are automatically distributed to multiple recipients. - [Subscription Billing](https://docs.zendfi.tech/guides/subscriptions.md): Build recurring payment flows with subscription plans, lifecycle management, and webhook-driven fulfillment. - [Introduction](https://docs.zendfi.tech/introduction.md): Accept crypto payments on Solana with seven lines of code. Built for developers who ship fast. - [Quickstart](https://docs.zendfi.tech/quickstart.md): Accept your first payment in under five minutes. No blockchain experience required. - [Client Reference](https://docs.zendfi.tech/sdk/client.md): Complete method reference for ZendFiClient. - [Configuration](https://docs.zendfi.tech/sdk/configuration.md): SDK configuration, environment variables, and auto-detection behavior. - [Embedded Checkout](https://docs.zendfi.tech/sdk/embedded-checkout.md): Drop-in payment UI for your website -- no redirects required. - [Error Handling](https://docs.zendfi.tech/sdk/errors.md): Error classes, codes, and patterns for handling ZendFi SDK errors. - [Helpers](https://docs.zendfi.tech/sdk/helpers.md): Optional utilities for wallet connection, transaction polling, and dev tools. - [Interceptors](https://docs.zendfi.tech/sdk/interceptors.md): Modify requests and responses with the interceptor pipeline. - [SDK Overview](https://docs.zendfi.tech/sdk/overview.md): Zero-config TypeScript SDK for ZendFi crypto payments. - [Sub Accounts](https://docs.zendfi.tech/sdk/sub-accounts.md): SDK methods for sub-account lifecycle, delegation tokens, and scoped transfers. - [Types](https://docs.zendfi.tech/sdk/types.md): Type definitions, branded IDs, and enums for the ZendFi SDK. - [Webhook Handlers](https://docs.zendfi.tech/sdk/webhook-handlers.md): Type-safe, framework-specific webhook handlers with deduplication. - [API Key Security](https://docs.zendfi.tech/security/api-keys.md): How API keys are protected, stored, and managed throughout their lifecycle. - [Best Practices](https://docs.zendfi.tech/security/best-practices.md): Production security checklist and operational guidelines for ZendFi integrations. - [Fraud and Compliance](https://docs.zendfi.tech/security/fraud-and-compliance.md): How ZendFi protects merchants and customers with fraud scoring, sanctions screening, and risk-based payment controls. - [Security Overview](https://docs.zendfi.tech/security/overview.md): How ZendFi protects your payments, keys, and data across every layer of the platform. - [Webhook Security](https://docs.zendfi.tech/security/webhooks.md): Verify webhook signatures, prevent replay attacks, and handle events securely. ## OpenAPI Specs - [openapi](https://docs.zendfi.tech/api-reference/openapi.json) ## Optional - [GitHub](https://github.com/zendfi) - [NPM](https://www.npmjs.com/package/@zendfi/sdk) - [Community](https://discord.gg/zendfi)