# SolvaPay Documentation - [SolvaPay documentation](https://docs.solvapay.com/index.md): Documentation for adding authentication, identity, payments, and billing with Managed MCP or the TypeScript SDK. - [Choose your path](https://docs.solvapay.com/get-started/choose-your-path.md): Choose between the CLI-first TypeScript SDK and Console-based Managed MCP. - [Create your account](https://docs.solvapay.com/get-started/create-account.md): Get started with SolvaPay by creating your provider account. - [Create a product](https://docs.solvapay.com/get-started/create-product.md): Create a product to monetize your API, MCP server, or AI-powered service. - [Test in sandbox](https://docs.solvapay.com/get-started/test-in-sandbox.md): Use sandbox mode to test your integration before or after live activation. - [Go live](https://docs.solvapay.com/get-started/go-live.md): Once you've tested your integration in sandbox, you're ready to switch to production and start accepting real payments. - [Use the SolvaPay agent skill](https://docs.solvapay.com/guides/use-agent-skill.md): Install the SolvaPay skill with one command in any compatible AI coding tool. - [Monetize an MCP server without code](https://docs.solvapay.com/guides/monetize-mcp-server-no-code.md): Use Managed MCP to monetize your MCP server without changing server code. - [Monetize an MCP server with SDK integration](https://docs.solvapay.com/guides/monetize-mcp-server-with-sdk.md): Use the SolvaPay TypeScript SDK to monetize an MCP server with full control over auth, paywall behavior, and tool access. - [Add a paywall to an API or app](https://docs.solvapay.com/guides/add-paywall-to-api-or-app.md): Use the SolvaPay TypeScript SDK to add paywall checks to APIs, apps, and MCP tools with full customization. - [Add inline chat checkout with React](https://docs.solvapay.com/guides/add-inline-chat-checkout-react.md): Build inline checkout for agents and apps with SolvaPay React components. - [Manage your account with the admin MCP Server](https://docs.solvapay.com/guides/manage-account-with-admin-mcp.md): Use the SolvaPay admin MCP Server to manage your provider account and create checkout sessions from your AI assistant. - [Handle SolvaPay webhooks safely](https://docs.solvapay.com/guides/handle-webhooks.md): Implement secure webhook verification and event handling for SolvaPay purchases and payments. - [Test MCP server auth and paywall](https://docs.solvapay.com/mcp-server/testing-auth-and-paywall.md): Validate OAuth authentication and paywall behavior in Claude or Cursor with one shared live-testing flow. - [Managed MCP overview](https://docs.solvapay.com/no-code-mcp/overview.md): Managed MCP is SolvaPay's managed auth and monetization path for MCP servers. - [Managed MCP quick start](https://docs.solvapay.com/no-code-mcp/quick-start.md): Set up Managed MCP for your MCP server. - [Create a Managed MCP product](https://docs.solvapay.com/no-code-mcp/create-no-code-mcp-product.md): Use this flow when you want the managed path: SolvaPay hosts authentication, identity, billing, and payment. No code required. - [Authentication](https://docs.solvapay.com/no-code-mcp/authentication.md): Managed MCP includes a full OAuth 2.0 server with PKCE support, enabling MCP clients like Cursor, Claude Desktop, and other AI tools to securely connect to your paywalled MCP servers. - [Hosted pages](https://docs.solvapay.com/no-code-mcp/hosted-pages.md): Managed MCP provides fully hosted pages for the complete customer journey—sign-up, checkout, and account management. - [Best practices](https://docs.solvapay.com/no-code-mcp/best-practices.md): This guide covers recommended patterns for configuring your Managed MCP servers, structuring plans, and handling common scenarios. - [Plans](https://docs.solvapay.com/plans/overview.md): Plans are pricing composed from options. Recurring, usage-based, hybrid, and one-time are derived labels, not stored types. - [Billing](https://docs.solvapay.com/plans/billing.md): How SolvaPay bills from plan options: cycles, usage, trials, and renewals. - [Plans and billing glossary](https://docs.solvapay.com/plans/glossary.md): What a credit is, how meters name usage, and the difference between included allowance and wallet coverage. - [Webhooks](https://docs.solvapay.com/webhooks.md): Receive real-time notifications when important business events happen in your SolvaPay account. - [Admin MCP Server getting started](https://docs.solvapay.com/mcp-server/getting-started.md): Connect the SolvaPay admin MCP Server to your AI assistant to manage your provider account and generate checkout sessions. - [Installation](https://docs.solvapay.com/mcp-server/installation.md): Connect the SolvaPay MCP Server to your AI assistant. - [Tools](https://docs.solvapay.com/mcp-server/tools.md): Complete reference for the 31 tools exposed by the SolvaPay MCP Server, organised across 7 domains. - [Examples](https://docs.solvapay.com/mcp-server/examples.md): Real-world examples of managing SolvaPay through your AI assistant. - [FAQ](https://docs.solvapay.com/mcp-server/faq.md): Frequently asked questions about the SolvaPay MCP Server. - [September 2026](https://docs.solvapay.com/changelog/2026-09-01.md): The prepaid plan option is removed. Minimum top-up moves to provider settings and is enforced on every top-up path. - [August 2026 release](https://docs.solvapay.com/changelog/2026-08-19.md): Composable plan options, Stripe Tax on live accounts, MCP on the official TypeScript SDK v2, MCP authorization conformance, and the AI plan builder. - [July 17, 2026 release](https://docs.solvapay.com/changelog/2026-07-17.md): Auto-recharge goes GA with a monthly spend cap, @solvapay/server 2.0.0, business checkout for SDK integrators, and the customer.credit.auto_topup_failed webhook. - [July 11, 2026 release](https://docs.solvapay.com/changelog/2026-07-11.md): Business checkout with Stripe Tax and seller VAT, confirmed-payment success gating, hidden enterprise plans, PAYG visibility fixes, product-status API removal, and Console refinements. - [July 1, 2026 release](https://docs.solvapay.com/changelog/2026-07-01.md): Automatic credit top-up, unified provider onboarding and go-live, and console visibility for credit history and active plans. - [June 15, 2026 release](https://docs.solvapay.com/changelog/2026-06-15.md): Multi-currency plans, provider credit grants, external identity linking, checkout and plan access fixes, and MCP tool metadata. - [June 2026 release](https://docs.solvapay.com/changelog/2026-06-09.md): OAuth consent for MCP customers, webhook subscriptions, receipts, plan updates, and SDK 1.2.0. - [April 2026 release](https://docs.solvapay.com/changelog/2026-04-14.md): Abstract credits, sandbox-first onboarding, Go-Live, usage-based plans, 2FA, cookie consent, and Console improvements. - [TypeScript SDK](https://docs.solvapay.com/sdks/typescript/intro.md): SolvaPay SDK is a modern TypeScript SDK for monetizing APIs, AI agents, and MCP (Model Context Protocol) servers with paywall protection and purchase management. - [CLI setup](https://docs.solvapay.com/sdks/typescript/setup/cli.md): Set up SolvaPay SDK in an existing project, or scaffold a new one from a template. - [Installation](https://docs.solvapay.com/sdks/typescript/setup/installation.md): Manual setup for SolvaPay SDK packages and environment variables. - [Quick start](https://docs.solvapay.com/sdks/typescript/setup/quick-start.md): Set up with CLI and protect your first endpoint in minutes. - [Core concepts](https://docs.solvapay.com/sdks/typescript/setup/core-concepts.md): Understand products, plans, customers, paywall checks, and usage tracking. - [Express.js Integration Guide](https://docs.solvapay.com/sdks/typescript/guides/express.md): This guide shows you how to integrate SolvaPay SDK with Express.js to protect your API endpoints with paywall protection and purchase management. - [Next.js Integration Guide](https://docs.solvapay.com/sdks/typescript/guides/nextjs.md): This guide shows you how to integrate SolvaPay SDK with Next.js App Router to protect your API routes and add payment flows to your application. - [React Integration Guide](https://docs.solvapay.com/sdks/typescript/guides/react.md): This guide shows you how to integrate SolvaPay React components and hooks into your React application to build payment flows and purchase management UIs. - [Supabase Edge Functions Guide](https://docs.solvapay.com/sdks/typescript/guides/supabase-edge.md): Deploy SolvaPay payment endpoints as Supabase Edge Functions using @solvapay/server/fetch. Each function is a one-liner. - [MCP Server Integration Guide](https://docs.solvapay.com/sdks/typescript/guides/mcp.md): Protect Model Context Protocol (MCP) tools with SolvaPay using createSolvaPayMcpServer and registerPayable — the recommended factory that wires the transport, intent tools, paywall, and UI resource for you. - [MCP App integration guide](https://docs.solvapay.com/sdks/typescript/guides/mcp-app.md): Render SolvaPay checkout and account management inside an MCP host iframe using @solvapay/react and the MCP App adapter. - [Custom Authentication Adapters Guide](https://docs.solvapay.com/sdks/typescript/guides/custom-auth.md): This guide shows you how to create custom authentication adapters for SolvaPay SDK to integrate with your authentication system. - [Customer linkage (bring your own client and IdP)](https://docs.solvapay.com/sdks/typescript/guides/customer-linkage.md): Map your authenticated users to SolvaPay customers with ensureCustomer(externalRef) from any backend — no SolvaPay-hosted login or device handoff required. - [Usage events](https://docs.solvapay.com/sdks/typescript/guides/usage-events.md): Record metered customer usage, debit credits, grant credits, and read balances from your application. - [Purchase lifecycle management](https://docs.solvapay.com/sdks/typescript/guides/purchase-management.md): Cancel, reactivate, activate plans, and switch between plans using the TypeScript SDK. - [Auto-recharge](https://docs.solvapay.com/sdks/typescript/guides/auto-recharge.md): Keep customer credit balances topped up automatically with a balance threshold, a fixed top-up amount, and an optional monthly spend cap. - [Business checkout (B2B)](https://docs.solvapay.com/sdks/typescript/guides/business-checkout.md): Collect company name, country, and tax ID at checkout, calculate tax with Stripe Tax, and show the seller's VAT number on receipts. - [Webhook Handling](https://docs.solvapay.com/sdks/typescript/guides/webhooks.md): Handle SolvaPay webhooks in your TypeScript application. - [Examples](https://docs.solvapay.com/sdks/typescript/guides/examples.md): Choose the right SolvaPay SDK example project and run it locally. - [Activate a plan for a customer](https://docs.solvapay.com/api-reference/activation/activate-a-plan-for-a-customer.md): Activates a specific plan on a product for a customer. Usage-based (PAYG) plans are topup-first: a zero-balance customer receives `topup_required` and only activates after a successful top-up, while free plans activate immediately and paid recurring / hybrid plans return `payment_required`. - [Get auto-recharge config for a customer](https://docs.solvapay.com/api-reference/auto-recharge/get-auto-recharge-config-for-a-customer.md): Returns the stored auto-recharge configuration (and display block) for the given customer, or a null config when none is set. - [Set or update auto-recharge config for a customer](https://docs.solvapay.com/api-reference/auto-recharge/set-or-update-auto-recharge-config-for-a-customer.md): Persists the auto-recharge configuration for a customer. When no reusable card is on file, a Stripe SetupIntent client secret is returned so the caller can collect one. - [Disable auto-recharge for a customer](https://docs.solvapay.com/api-reference/auto-recharge/disable-auto-recharge-for-a-customer.md): Disables auto-recharge for the given customer. Idempotent. - [Create a checkout session](https://docs.solvapay.com/api-reference/checkout-sessions/create-a-checkout-session.md): Creates a hosted checkout session for a customer to purchase a product plan, or to top up credits (`purpose: "credit_topup"`, which skips `productRef`). Returns a session ID and checkout URL for redirect. - [Get customer by reference, externalRef, or email](https://docs.solvapay.com/api-reference/customers/get-customer-by-reference-externalref-or-email.md): Retrieves a customer's details using their unique reference ID, externalRef, or email. Use query parameter 'reference' to look up by customer reference, 'externalRef' for external auth ID, or 'email' for customer email. Exactly one parameter must be provided. Returns the customer's name, email, and… - [Create a new customer](https://docs.solvapay.com/api-reference/customers/create-a-new-customer.md): Creates a new customer record for the authenticated provider. Customers represent end-users who will purchase your products. Email is required and must be unique per provider. The name field is optional but recommended for better tracking. - [Get customer by reference](https://docs.solvapay.com/api-reference/customers/get-customer-by-reference.md): Retrieves a customer's details using their unique reference ID. Returns the customer's name, email, and active purchases. Only customers owned by the authenticated provider can be accessed. - [Update a customer](https://docs.solvapay.com/api-reference/customers/update-a-customer.md): Updates an existing customer identified by reference. Use this to backfill or change fields such as `externalRef`, `name`, or `email`. Only the fields supplied in the body are modified. - [Get customer credit balance](https://docs.solvapay.com/api-reference/customers/get-customer-credit-balance.md): Returns the credit balance for a customer identified by reference. - [Grant credits to a customer](https://docs.solvapay.com/api-reference/customers/grant-credits-to-a-customer.md): Adds credits to a customer balance. Use Idempotency-Key to make grants safe to retry. - [Create a customer session](https://docs.solvapay.com/api-reference/customers/create-a-customer-session.md): Creates a customer session URL that can be used to redirect customers to the customer page. Returns the customer URL and session ID. The session is short-lived (15 minutes) for security reasons. - [Get customer session by sessionId](https://docs.solvapay.com/api-reference/customers/get-customer-session-by-sessionid.md): Retrieves a customer session by its sessionId with all data hydrated including customer details and purchases. The session must belong to the authenticated provider. - [Check usage limits for a customer and product](https://docs.solvapay.com/api-reference/limits/check-usage-limits-for-a-customer-and-product.md): Checks whether a customer has an active purchase for a product and is within their usage limits. Returns a checkout URL if payment is required. - [Get merchant identity for the authenticated provider](https://docs.solvapay.com/api-reference/merchant/get-merchant-identity-for-the-authenticated-provider.md): Returns the subset of provider data safe to render in a customer-facing checkout: display name, legal name, support contact, terms and privacy URLs, and logo. Used by SDK components like MandateText and CheckoutSummary. - [Record a meter event](https://docs.solvapay.com/api-reference/meter-events/record-a-meter-event.md): Records a single usage event against a named meter. When the customer is on a metered plan, credits are also debited for the event (the debit is not surfaced in the response). - [Record meter events in bulk](https://docs.solvapay.com/api-reference/meter-events/record-meter-events-in-bulk.md): Persists the events with bulkRecordUsage (which records each event like the single POST), after shared meter/customer checks. - [List payment intents for the provider](https://docs.solvapay.com/api-reference/payment-intents/list-payment-intents-for-the-provider.md): Retrieves a paginated list of all payment intents created by the authenticated provider. Supports pagination through limit and offset query parameters. - [Create a payment intent](https://docs.solvapay.com/api-reference/payment-intents/create-a-payment-intent.md): Creates a new payment intent for a customer to purchase a plan, top up credits (`purpose: "credit_topup"`), or bill usage (`purpose: "usage_billing"`) with an explicit `amount`/`currency`. Requires an idempotency key to prevent duplicate charges. Returns client secret and publishable key needed for… - [Attach business tax details to a payment intent](https://docs.solvapay.com/api-reference/payment-intents/attach-business-tax-details-to-a-payment-intent.md): Applies business or consumer tax location to a payment intent and returns the calculated tax breakdown. - [Process payment intent after client-side confirmation](https://docs.solvapay.com/api-reference/payment-intents/process-payment-intent-after-client-side-confirmation.md): Processes a payment intent that has been confirmed on the client side. Polls the database for payment intent status to become succeeded. Returns the current status of the payment intent; on success, the response is enriched with the Purchase row created by the webhook handler. - [Get a specific payment intent](https://docs.solvapay.com/api-reference/payment-intents/get-a-specific-payment-intent.md): Retrieves detailed information about a specific payment intent including amount, currency, and client secret. - [Get the default payment method for a customer](https://docs.solvapay.com/api-reference/payment-methods/get-the-default-payment-method-for-a-customer.md): Returns the customer's default card for the authenticated provider. Sourced from stored payment-method records (no Stripe round-trip). Returns `{ kind: 'none' }` when no card is on file. - [Get environment-aware platform config for the authenticated provider](https://docs.solvapay.com/api-reference/platform-config/get-environment-aware-platform-config-for-the-authenticated-provider.md): Returns browser-safe platform values resolved against the provider environment. Today: the SolvaPay platform Stripe publishable key. This endpoint is the canonical home for future platform-wide, environment-gated SDK config (API version hints, feature flags, public hosted URLs) — additions land here… - [List products](https://docs.solvapay.com/api-reference/products/list-products.md): Retrieves a paginated list of products for the authenticated provider. Supports filtering by status, search term, and Managed MCP integration flag. - [Create a product](https://docs.solvapay.com/api-reference/products/create-a-product.md): Creates a new product for the authenticated provider. - [Get a product by reference](https://docs.solvapay.com/api-reference/products/get-a-product-by-reference.md): Retrieves a product by its reference or ID, including embedded plans. - [Update a product](https://docs.solvapay.com/api-reference/products/update-a-product.md): Updates an existing product. Only provided fields are updated. - [Delete a product](https://docs.solvapay.com/api-reference/products/delete-a-product.md): Deletes a product permanently in sandbox. In live mode, soft-deletes (preserves data but hides from listings). If the product has purchases in live mode, deactivates instead. - [Clone a product](https://docs.solvapay.com/api-reference/products/clone-a-product.md): Deep-copies a product including all its plans. Generates new references for the clone. - [Configure MCP plans on an MCP product](https://docs.solvapay.com/api-reference/products/configure-mcp-plans-on-an-mcp-product.md): Configures plans and optional tool-to-plan mappings for an MCP product. - [Bootstrap MCP product integration](https://docs.solvapay.com/api-reference/products/bootstrap-mcp-product-integration.md): Creates an MCP-enabled product with a unified plans array, configures origin URL, and maps tools to plans in one request. - [List plans for a product](https://docs.solvapay.com/api-reference/plans/list-plans-for-a-product.md): Retrieves the plans belonging to a product, paginated in-memory. Returns SDK-shaped plans with option money serialized to integer minor units; hidden plans are excluded. The `type` field is derived from each plan's composable options. - [Create a plan for a product](https://docs.solvapay.com/api-reference/plans/create-a-plan-for-a-product.md): Creates a plan under the product from its composable pricing `options[]` (charges, billing cycle, tiers, limits, entitlements, trials, discounts, rollovers). Options are validated for cross-option coherence and rejected with 400 if invalid; money fields are integer minor units. - [Get a plan for a product](https://docs.solvapay.com/api-reference/plans/get-a-plan-for-a-product.md): Retrieves a single plan by reference or ID within the given product. - [Update a plan for a product](https://docs.solvapay.com/api-reference/plans/update-a-plan-for-a-product.md): Updates a plan under the product. Provided `options[]` replace the plan pricing and are validated for cross-option coherence (400 if invalid); money fields are integer minor units. - [Delete a plan from a product](https://docs.solvapay.com/api-reference/plans/delete-a-plan-from-a-product.md): Removes a plan from the product. - [List purchases for provider](https://docs.solvapay.com/api-reference/purchases/list-purchases-for-provider.md): Retrieves all purchases for the authenticated provider with optional filtering by status, product, or customer. - [Get a purchase by reference](https://docs.solvapay.com/api-reference/purchases/get-a-purchase-by-reference.md): Retrieves a single purchase including plan snapshot, usage, and billing details. - [Cancel a purchase](https://docs.solvapay.com/api-reference/purchases/cancel-a-purchase.md): Cancels an active purchase. For recurring purchases, cancellation takes effect at the end of the current billing period. - [Reactivate a cancelled purchase](https://docs.solvapay.com/api-reference/purchases/reactivate-a-cancelled-purchase.md): Reactivates a purchase that was cancelled but has not yet reached its end date. Restores auto-renewal and clears cancellation fields. - [Get purchases for a customer](https://docs.solvapay.com/api-reference/purchases/get-purchases-for-a-customer.md): Retrieves all purchases for a specific customer. Useful for billing history and access checks. - [Get purchases for a product](https://docs.solvapay.com/api-reference/purchases/get-purchases-for-a-product.md): Retrieves all purchases for a specific product. Each billing period creates a new purchase document. - [Record a usage event](https://docs.solvapay.com/api-reference/usage/record-a-usage-event.md): Records a usage event into the Usage timeseries collection. - [Record bulk usage events](https://docs.solvapay.com/api-reference/usage/record-bulk-usage-events.md): Same persistence rules as POST /sdk/usages for each item: validate batch first, then one insert per event. - [Get user info and purchase status](https://docs.solvapay.com/api-reference/user-info/get-user-info-and-purchase-status.md): Returns customer profile, active purchase details including usage and plan info, and a customer portal URL. - [Get the webhook event envelope schema](https://docs.solvapay.com/api-reference/webhooks/get-the-webhook-event-envelope-schema.md): Returns a representative example of the signed webhook payload every endpoint receives. Useful when building and type-checking a webhook handler; the live `type` will be one of the values from `event-types`. - [List webhook event types](https://docs.solvapay.com/api-reference/webhooks/list-webhook-event-types.md): Returns the catalog of webhook event types you can subscribe to, grouped by category. Use these `type` values when configuring an endpoint’s `enabledEvents`. ## OpenAPI Specs - [openapi](/api-reference/openapi.json)