Removes specified products and/or variants from an existing subscription group (selling plan group). This endpoint allows selective removal of products without affecting the group’s configuration or other product assignments.
Key Features:
Collection Removal:
Important Notes:
Authentication: Requires valid X-API-Key header
curl --request PUT \
--url https://subscription-admin.appstle.com/api/external/v2/subscription-groups/{id}/remove-products \
--header 'X-API-Key: <x-api-key>'{
"id": 123456789,
"groupName": "Monthly Coffee Subscription",
"productCount": 5,
"productVariantCount": 15,
"productIds": "[{\"id\":987654322,\"title\":\"Organic Dark Roast\"},{\"id\":987654323,\"title\":\"Colombian Single Origin\"}]",
"variantIds": "[{\"id\":123456790,\"title\":\"500g Bag\"}]",
"subscriptionPlans": [
{
"id": "gid://shopify/SellingPlan/111111",
"frequencyName": "Delivered Monthly",
"frequencyDescription": "Get fresh coffee delivered to your door every month",
"frequencyCount": 1,
"frequencyInterval": "MONTH",
"discountEnabled": true,
"discountType": "PERCENTAGE",
"discountOffer": 10
}
]
}Documentation Index
Fetch the complete documentation index at: https://appstleinc-aeca3e0a.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
API Key for authentication
Subscription group ID (numeric ID)
Comma-separated list of product IDs to remove. Use numeric IDs without gid:// prefix.
^\d+(,\d+)*$Comma-separated list of variant IDs to remove. Use numeric IDs without gid:// prefix.
^\d+(,\d+)*$Shopify collection ID. When provided, removes all products from this collection (up to 5000 products). This is in addition to any explicitly specified productIds/variantIds.
Set to true to delete all products and their variants. Defaults to false.
API Key (Deprecated - Use X-API-Key header instead)
Products/variants successfully removed from subscription group
Show child attributes
Show child attributes
Show child attributes
curl --request PUT \
--url https://subscription-admin.appstle.com/api/external/v2/subscription-groups/{id}/remove-products \
--header 'X-API-Key: <x-api-key>'{
"id": 123456789,
"groupName": "Monthly Coffee Subscription",
"productCount": 5,
"productVariantCount": 15,
"productIds": "[{\"id\":987654322,\"title\":\"Organic Dark Roast\"},{\"id\":987654323,\"title\":\"Colombian Single Origin\"}]",
"variantIds": "[{\"id\":123456790,\"title\":\"500g Bag\"}]",
"subscriptionPlans": [
{
"id": "gid://shopify/SellingPlan/111111",
"frequencyName": "Delivered Monthly",
"frequencyDescription": "Get fresh coffee delivered to your door every month",
"frequencyCount": 1,
"frequencyInterval": "MONTH",
"discountEnabled": true,
"discountType": "PERCENTAGE",
"discountOffer": 10
}
]
}