Billing Periods
| Period | Frequency |
|---|---|
weekly | Every 7 days |
monthly | Every calendar month |
quarterly | Every 3 months |
yearly | Every 12 months |
Group Object
Product groups organize related subscription products (e.g., Free, Pro, Enterprise plans) and enable shared trial management across products within a group. Each group exists per environment — one row for test and one for production.Group IDs are in UUID format, not Short ID format. This is the only entity in the API that uses raw UUIDs.
| Field | Type | Description |
|---|---|---|
id | string | Group ID (UUID format) |
storeId | string | Store ID (STO_xxx format) |
name | string | Group name (unique per store + environment) |
description | string | null | Group description |
rules | object | Group rules (see below) |
productIds | string[] | List of product IDs (PROD_xxx format) |
environment | string | test or prod |
createdAt | string | ISO 8601 timestamp |
updatedAt | string | ISO 8601 timestamp |
Rules
| Field | Type | Default | Description |
|---|---|---|---|
sharedTrial | boolean | false | When true, trial usage is shared across all products in the group. Prevents customers from signing up for repeated free trials by switching between products in the same group. |
Endpoints
Create Product
Create a subscription product with billing period and multi-currency pricing.
Update Product
Update a subscription product’s content. Creates a new immutable version if content changed.
Publish Product
Publish a subscription product from test to production (first-publish only).
Update Status
Activate or deactivate a subscription product.
Create Group
Create a product group to organize related subscription products.
Update Group
Update a product group’s name, description, rules, or product list.
Delete Group
Permanently delete a product group.
Publish Group
Publish a product group from test to production (supports repeated UPSERT).