請求サイクル
| 期間 | 頻度 |
|---|---|
weekly | 7日ごと |
monthly | 毎月 |
quarterly | 3か月ごと |
yearly | 12か月ごと |
グループオブジェクト
商品グループは関連するサブスクリプション商品(例:Free、Pro、Enterprise プラン)を整理し、グループ内の商品間で共有トライアル管理を可能にします。各グループは環境ごとに存在し、テスト用と本番用に1つずつあります。グループ ID は UUID 形式であり、Short ID 形式ではありません。これは API で生の UUID を使用する唯一のエンティティです。
| フィールド | 型 | 説明 |
|---|---|---|
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 |
ルール
| フィールド | 型 | デフォルト | 説明 |
|---|---|---|---|
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. |
エンドポイント
商品の作成
請求サイクルとマルチ通貨対応のサブスクリプション商品を作成します。
商品の更新
サブスクリプション商品のコンテンツを更新します。コンテンツが変更された場合、新しいイミュータブルバージョンが作成されます。
商品の公開
サブスクリプション商品をテストから本番に公開します(初回公開のみ)。
ステータスの更新
サブスクリプション商品を有効化または無効化します。
グループの作成
関連するサブスクリプション商品を整理するための商品グループを作成します。
グループの更新
商品グループの名前、説明、ルール、または商品リストを更新します。
グループの削除
商品グループを完全に削除します。
グループの公開
テストから本番に商品グループを公開します(繰り返しの UPSERT をサポート)。