Skip to main content
PUT
/
api
/
external
/
v2
/
subscription-groups
/
{id}
/
remove-products
Remove products or variants from a subscription group
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://developers.appstle.com/llms.txt

Use this file to discover all available pages before exploring further.

Headers

X-API-Key
string
required

API Key for authentication

Path Parameters

id
integer<int64>
required

Subscription group ID (numeric ID)

Query Parameters

productIds
string

Comma-separated list of product IDs to remove. Use numeric IDs without gid:// prefix.

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

Comma-separated list of variant IDs to remove. Use numeric IDs without gid:// prefix.

Pattern: ^\d+(,\d+)*$
collectionId
integer<int64>

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.

deleteAllProductsAndVariants
boolean

Set to true to delete all products and their variants. Defaults to false.

api_key
string

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

Response

Products/variants successfully removed from subscription group

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