Documentation

Resources & Documentation

Everything you need to integrate the Quotonom SDK — quick start guides, hook references, and integration patterns for your stack.

Getting Started

Up and running in 5 minutes

Three steps to your first working CPQ experience.

01

Install the SDK

One package, all hooks included. No peer dependency headaches.

terminal
npm install @autonom/sdk
02

Wrap your app with AutonomProvider

Add your API key and tenant ID. The provider handles session management, caching, and Salesforce auth behind the scenes.

app.tsx
import { AutonomProvider } from '@autonom/sdk';

export default function App() {
  return (
    <AutonomProvider apiKey="ak_live_..." tenantId="your-tenant">
      <YourApp />
    </AutonomProvider>
  );
}
03

Use your first hook

Call useConfigurator() with a Salesforce product ID. Attributes, options, and live pricing — all reactive.

ProductPage.tsx
import { useConfigurator, usePricing } from '@autonom/sdk';

function ProductPage({ productId }: { productId: string }) {
  const { structure, updateAttribute } = useConfigurator(productId);
  const { summary } = usePricing();

  return (
    <div>
      <h1>{structure?.name}</h1>
      {structure?.attributes.map((attr) => (
        <select
          key={attr.id}
          value={attr.value ?? ''}
          onChange={(e) => updateAttribute(attr.id, e.target.value)}
        >
          {attr.options.map((opt) => (
            <option key={opt.value} value={opt.value}>{opt.displayValue}</option>
          ))}
        </select>
      ))}
      <p className="text-xl font-bold">{summary?.totalFormatted}</p>
    </div>
  );
}
SDK Reference

Available hooks

Every hook is fully typed. Pass a product ID, get reactive state — no boilerplate.

useSession()

Create and manage quoting sessions. Handles session lifecycle, expiry, and multi-product context.

useConfigurator()

Configure products, read structure. Navigate product attributes, options, and validation rules.

usePricing()

Real-time pricing updates as configuration changes. Access summary totals and detailed line items.

useCart()

Multi-product cart management. Add, remove, update quantities, and apply discounts.

useCheckout()

Quote to Order finalization. Submit quotes, handle approvals, and convert to Salesforce orders.

useCatalog()

Browse the product catalog. Search, filter, and paginate through available products and bundles.

MCP Server

Coming soon

Let AI agents configure and quote products autonomously. The @autonom/mcp-quoter package exposes a Model Context Protocol server that Claude, Copilot, and other agents can use to browse your product catalog, configure bundles, and generate quotes — without any human interaction.

Claude DesktopClaude CodeGitHub CopilotCursor
Integration Guides

Works with your stack

Step-by-step guides for the most popular React frameworks.

Popular

Next.js

App Router, RSC-compatible setup with client boundary patterns.

View guide
Coming soon

Vite

Minimal setup with HMR. Perfect for SPAs and demo apps.

View guide
Coming soon

Remix

Full-stack patterns — loaders, actions, and server-side context.

View guide
Coming soon

API Reference

Coming soon

Full REST API documentation — endpoints, parameters, response schemas, and error codes. Includes the proxy API, metering API, and admin endpoints.

Ready to build?

Start with 10,000 free API calls. No credit card required.