eCommerce
Protokol eCommerce is an integration for running your online store directly inside your Protokol project. It provides storefront configuration, custom domain management, and cart/product settings.
Warning
This integration is currently disabled and not available for installation. It will become available once the rollout criteria are met.
Overview
Key characteristics:
- Storefront configuration — manage product display, cart settings, pricing, i18n, and homepage layout
- Custom domains — add, validate, and remove custom domains for your storefront
- Onboarding flow — guided setup is required before use
- Environment-aware — separate
devandliveenvironment settings
Getting Integration Settings
Updating Storefront Settings
Custom Domain Management
Check Base Domain Availability
Add a Custom Domain
Validate Domain
Remove Domain
List Domains
Permissions
| Permission | Description |
|---|---|
settings |
Manage eCommerce storefront settings |
manage_domains |
Add, validate, and remove custom domains |
SDK Reference
The Ecommerce class is available via the SDK:
import { Ecommerce } from "@ptkl/sdk/beta"
// Or via the Integrations facade
import { Integrations } from "@ptkl/sdk/beta"
const integrations = new Integrations()
const ecommerce = integrations.getEcommerce()
| Method | Description |
|---|---|
ecommerce.get() |
Get current ecommerce settings |
ecommerce.update(settings) |
Update storefront settings |
ecommerce.checkBaseDomain(domain) |
Check domain availability |
ecommerce.addCustomDomain(domain) |
Add a custom domain |
ecommerce.validateCustomDomain(domain, token) |
Validate domain ownership |
ecommerce.removeCustomDomain(domain) |
Remove a custom domain |
ecommerce.getPendingDomains() |
List pending domain verifications |
ecommerce.getValidatedDomains() |
List validated custom domains |