Comprehensive API documentation for managing subscriptions, payments, and related operations. These APIs allow you to programmatically manage subscription lifecycles, handle payments, configure products, and integrate subscription functionality into your applications.
- Bulk add products or variants to an existing subscription group
External APIs (0.0.1)
Request
Removes specified products and/or variants from ALL subscription groups in the store. This is a powerful bulk operation that affects every subscription group simultaneously.
⚠️ WARNING: This operation:
- Affects ALL subscription groups in your store
- Cannot be easily undone
- Processes synchronously (may timeout for stores with many groups)
- Does NOT affect existing active subscriptions
Use Cases:
- Discontinuing products from all subscription offerings
- Removing seasonal items from all groups
- Cleaning up deleted products from subscription groups
- Compliance-driven product removals
Important Considerations:
- Each group is updated individually
- If any group update fails, previous groups remain updated
- Large operations may take significant time
- Consider using individual group removal for better control
Authentication: Requires valid X-API-Key header
- https://subscription-admin.appstle.com/api/external/v2/subscription-groups/remove-products
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
'https://subscription-admin.appstle.com/api/external/v2/subscription-groups/remove-products?productIds=987654321%2C987654322&variantIds=123456789%2C123456790&api_key=string' \
-H 'X-API-Key: sk_live_1234567890abcdef'"Product Deleted Successfully"
Request
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
Product and variant IDs to add to the subscription group
- https://subscription-admin.appstle.com/api/external/v2/subscription-groups/{id}/bulk-add-products
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'https://subscription-admin.appstle.com/api/external/v2/subscription-groups/123456789/bulk-add-products?api_key=string' \
-H 'Content-Type: application/json' \
-H 'X-API-Key: sk_live_1234567890abcdef' \
-d '{
"productIds": [
987654321,
987654322,
987654323,
987654324,
987654325
],
"variantIds": []
}'Request
Retrieves detailed information about a specific subscription group (selling plan group) by its ID. This endpoint provides complete configuration details for a single subscription group.
Response includes:
- Group name and configuration
- All selling plans with complete details
- Product and variant assignments
- Discount tiers and configurations
- Free trial settings
- Member restrictions
- Delivery and billing frequencies
Use Cases:
- Display detailed subscription options for editing
- Verify configuration before updates
- Debug subscription issues
- Integration with external systems
Authentication: Requires valid X-API-Key header
- https://subscription-admin.appstle.com/api/external/v2/subscription-groups/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://subscription-admin.appstle.com/api/external/v2/subscription-groups/123456789?api_key=string' \
-H 'X-API-Key: sk_live_1234567890abcdef'{ "id": 123456789, "groupName": "Monthly Coffee Subscription", "productCount": 10, "productVariantCount": 35, "productIds": "[{\"id\":987654321,\"title\":\"Premium Coffee Blend\",\"status\":\"ACTIVE\",\"handle\":\"premium-coffee-blend\",\"imageSrc\":\"https://cdn.shopify.com/...\",\"vendor\":\"Coffee Co\",\"tags\":\"coffee,subscription\",\"productType\":\"Coffee\",\"price\":\"19.99\"}]", "variantIds": "[{\"id\":123456789,\"title\":\"250g Bag\",\"status\":\"ACTIVE\"}]", "subscriptionPlans": [ { … } ] }