Subscription Plans
Bulk add products or variants to an existing subscription group
Adds multiple products and/or product variants to an existing subscription group (selling plan group) using a JSON request body. This endpoint is ideal for adding large numbers of products/variants that would exceed URL length limits in the query parameter version.
Advantages over query parameter endpoint:
- No URL length restrictions
- Cleaner syntax for large lists
- Better for programmatic integrations
- Supports the same functionality with improved scalability
Behavior:
- Identical to the query parameter endpoint in functionality
- Adds products/variants to existing assignments
- Preserves product order
- Updates synchronously and returns the updated group
Authentication: Requires valid X-API-Key header
POST
Headers
API Key for authentication
Path Parameters
Subscription group ID (numeric ID)
Query Parameters
API Key (Deprecated - Use X-API-Key header instead)
Body
application/json
Product and variant IDs to add to the subscription group
Response
Products/variants successfully added
The response is of type object.