Request Body
| Field | Type | Required | Description |
|---|---|---|---|
storeId | string | Yes | Store ID (STO_xxx format) |
name | string | Yes | Group name (unique per store + environment) |
description | string | No | Group description |
rules | object | No | Group rules ({ sharedTrial: boolean }) |
productIds | string[] | No | Subscription product IDs (PROD_xxx format) to include |
Example Request
Success Response (200)
Errors
Retry policy: Never retry 4xx — fix the request and resubmit. Retry 5xx with exponential backoff (start 5s, max 3 attempts).
| Status | errors[0].message | What it means | Recommended handling |
|---|---|---|---|
| 400 | Missing or invalid header: x-context-environment | Environment header missing or not test / prod | Fix the header, resubmit |
| 400 | Missing required fields: storeId, name | A required body field was omitted | Add the missing field, resubmit |
| 400 | Expected format: STO_xxx, got "..." / Expected format: PROD_xxx, got "..." | storeId or a productIds entry could not be decoded as a Short ID | Fix the ID, resubmit |
| 500 | Internal server error | Internal error or transient downstream failure | Retry with exponential backoff (start 5s, max 3 attempts) |