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/sdk02
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.
Integration Guides
Works with your stack
Step-by-step guides for the most popular React frameworks.