CDN (Recommended)
Fastest way to get started — one script tag, no build step. Use npm instead if you have a bundler and want TypeScript types.npm / yarn / pnpm
Install the SDK as a dependency:Initialization
After loading the SDK, initialize it with your store slug:Your store’s unique identifier. Find this in your Shoppex dashboard under Settings.
Default language for the SDK. Affects price formatting and checkout language.
Override the store’s default currency. Must be a valid ISO 4217 currency code.
Verify Installation
Check if the SDK is loaded and initialized:TypeScript Support
The SDK includes TypeScript definitions. Import types directly:Browser Support
The SDK supports all modern browsers:| Browser | Minimum Version |
|---|---|
| Chrome | 60+ |
| Firefox | 55+ |
| Safari | 12+ |
| Edge | 79+ |
Internet Explorer is not supported. The SDK uses modern JavaScript features like Promises, async/await, and ES6+ syntax.
Next Steps
Quick Start
Fetch products and build a cart in under 5 minutes.
Store API
Load store metadata, products, and groups.