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.
- Get subscription group by ID
External APIs (0.0.1)
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": [ { … } ] }
Request
Retrieves a flattened list of all selling plans from all subscription groups in the store. This endpoint provides a consolidated view of every subscription plan available, regardless of which group it belongs to.
Response includes:
- All selling plans with their configurations
- Group information for each plan (groupId and groupName)
- Complete discount and pricing details
- Delivery and billing frequencies
- Member restrictions and settings
- Free trial configurations
Use Cases:
- Build a unified subscription selector
- Compare all available subscription options
- Analyze pricing across all plans
- Find specific plan configurations
- Generate reports on subscription offerings
Differences from /subscription-groups endpoint:
- Returns plans as a flat list, not grouped
- Each plan includes its parent group information
- Easier to search/filter across all plans
- Does not include product/variant assignments
Authentication: Requires valid X-API-Key header
- https://subscription-admin.appstle.com/api/external/v2/subscription-groups/all-selling-plans
- 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/all-selling-plans?api_key=string' \
-H 'X-API-Key: sk_live_1234567890abcdef'[ { "id": "gid://shopify/SellingPlan/111111", "frequencyName": "Delivered Monthly", "frequencyDescription": "Save 10% on monthly deliveries", "frequencyCount": 1, "frequencyInterval": "MONTH", "billingFrequencyCount": 1, "billingFrequencyInterval": "MONTH", "planType": "PAY_AS_YOU_GO", "discountEnabled": true, "discountType": "PERCENTAGE", "discountOffer": 10, "afterCycle1": 0, "minCycles": 3, "maxCycles": null, "groupId": 123456789, "groupName": "Monthly Coffee Subscription", "inventoryPolicyReserve": "ON_SALE", "memberOnly": false, "frequencyType": "ON_PURCHASE_DAY", "upcomingOrderEmailBuffer": 3 }, { "id": "gid://shopify/SellingPlan/222222", "frequencyName": "Weekly Tea Box", "frequencyDescription": "Fresh tea every week with 15% savings", "frequencyCount": 1, "frequencyInterval": "WEEK", "billingFrequencyCount": 1, "billingFrequencyInterval": "WEEK", "planType": "PAY_AS_YOU_GO", "discountEnabled": true, "discountType": "PERCENTAGE", "discountOffer": 15, "afterCycle1": 0, "groupId": 123456790, "groupName": "Premium Tea Collection" }, { "id": "gid://shopify/SellingPlan/333333", "frequencyName": "3-Month Prepaid Coffee", "frequencyDescription": "Pay upfront for 3 months and save 25%", "frequencyCount": 1, "frequencyInterval": "MONTH", "billingFrequencyCount": 3, "billingFrequencyInterval": "MONTH", "planType": "PAY_AS_YOU_GO_PREPAID", "payAsYouGoPrepaidBillingFrequencyCount": 3, "discountEnabled": true, "discountType": "PERCENTAGE", "discountOffer": 25, "afterCycle1": 0, "maxCycles": 12, "groupId": 123456789, "groupName": "Monthly Coffee Subscription", "repeatingCycle": true, "repeatingNumberOfCycle": 12 } ]