Getting Started
Next Commerce is an ecommerce platform for DTC merchants. It includes a full storefront, checkout, payments, and order management — plus a headless campaigns layer for building custom checkout funnels. Use this guide to find the right starting point for what you're building.
Platform Overview
Campaigns and storefronts are the customer-facing layer — both produce orders in your Next Commerce store. The Admin API gives you programmatic access to all store data. Apps are how you package and distribute integrations across multiple stores.
Campaigns
Build campaign funnels and custom checkout experiences with the Campaign Cart SDK or Campaigns API.
Admin API
Manage store data programmatically — orders, subscriptions, products, customers, and fulfillment.
Storefront
Customize your storefront theme, templates, and checkout flow using Theme Kit and the Storefront API.
Apps
Package and distribute integrations across multiple stores with OAuth-based install flows.
Webhooks
Subscribe to store events and trigger real-time workflows in your integrations.
What Are You Building?
Build a Campaign Funnel
Use campaigns to build external checkout experiences that run outside the storefront — landing pages, checkout, upsell flows, and receipt pages.
Choose your approach
| Approach | Best for | Description |
|---|---|---|
| Campaign Cart SDK | Fastest path | HTML/JS SDK using data-next-* attributes — no custom JavaScript required |
| Campaigns API | Full control | Headless JS API for custom checkout implementations |
Get started
- In your dashboard, install the Campaigns App and create a campaign
- Add packages linked to product variants in your catalog
- Get your API Key from the campaign's Integration tab
- Clone the Campaign Cart Starter Template — a pre-built landing page, checkout, upsell, and receipt flow ready to customize
Resources
- Campaigns overview — campaign structure and funnel flow
- Campaign Cart SDK — data attributes, JS API, and utilities
- Campaigns API — REST API reference
- Analytics — session tracking, custom events, and third-party integrations
Customize a Storefront Theme
Use themes to control the appearance and behavior of your storefront — product pages, catalog, cart, and storefront checkout flow. Themes use HTML, CSS, JavaScript, and a liquid-like template language with access to storefront objects and a GraphQL API.
Get started
- Install Theme Kit, the CLI for local theme development
- Start from Intro Bootstrap starter theme
- Run
theme pullto sync files locally, make changes, thentheme pushto deploy
Resources
- Themes overview — theme structure and Theme Kit
- Template reference — tags, objects, filters, and URL routing
- Theme guides — custom page templates, product templates, and variants
- Storefront GraphQL API — fetch products, cart data, and more
- Event tracking — track storefront events and conversions
Integrate with the Admin API
Use the Admin API to manage store data and build backend integrations — orders, subscriptions, products, customers, and fulfillment. All requests authenticate with OAuth 2.
Get started
- In your dashboard, go to Settings > API Access and create an OAuth App
- Select the permissions your integration needs to get an Access Token
Resources
- Admin API overview — authentication, versioning, and rate limits
- API reference — full endpoint reference
- Order management — create and manage orders
- Subscription management — recurring billing
- Payment integrations — Apple Pay, Google Pay, PayPal, Klarna, and more
Build an App
Use apps to package an integration as an installable unit that works across multiple stores. An app can combine the Admin API, Webhooks, and storefront extensions, with an OAuth-based install flow that merchants complete in one click.
When to build an app vs. a direct integration
- You're distributing your integration to multiple merchants
- Your integration spans both backend logic (Admin API, Webhooks) and storefront UI (snippets, event tracking)
- You need per-store OAuth tokens that merchants can grant and revoke
Get started
- Review the example apps to understand the full pattern before writing any code
- Define your App Manifest
- Implement the OAuth install flow
Example apps
| App | What it covers |
|---|---|
| Example S2S App | OAuth flow, session tokens, remote settings, webhooks |
| Google Analytics 4 | Snippets and event tracking in storefronts |
| Fulfillment Service | OAuth flow and fulfillment API integration |
Resources