Skip to main content
PUT
Add products or variants to an existing subscription group

Headers

X-API-Key
string
required

API Key for authentication

x-return-short-response
boolean
default:false

Header to indicate if response should return only added products ID information. Set to 'true' for minimal response, any other value or omitted for full response.

Path Parameters

id
integer<int64>
required

Subscription group ID (numeric ID)

Query Parameters

api_key
string

API Key (Deprecated - Use X-API-Key header instead)

productIds
string

Comma-separated list of Shopify product IDs to add. Adding a product makes all its variants eligible for subscription. Use numeric IDs only (e.g., '987654321,987654322,987654323')

Pattern: ^\d+(,\d+)*$
variantIds
string

Comma-separated list of Shopify variant IDs to add. Use this to enable subscription for specific variants only. Use numeric IDs only (e.g., '123456789,123456790,123456791')

Pattern: ^\d+(,\d+)*$

Response

Products/variants successfully added to subscription group

accessoryProductIds
string
deleteProducts
object
groupName
string
id
integer<int64>
productCount
integer<int64>
productId
string
productIds
string
productVariantCount
integer<int64>
subscriptionPlans
object[]
translations
string
updateProducts
object
variantIds
string