๐Subscription Plans
Fetches all selling plan groups from the database, with optional filtering based on name, category, merchant code, description, ID, and options.
Fuzzy search filter for the name of the selling plan group.
Exact match filter for the category of the selling plan group.
Fuzzy search filter for the merchant code associated with the selling plan group.
Fuzzy search filter for the description of the selling plan group.
Exact match filter for the ID of the selling plan group.
Fuzzy search filter for the options associated with the selling plan group.
Field name to sort the results by.
Order of sorting, ascending or descending. Default is ascending.
A list of selling plan groups matching the filters, if any.
Bad request, such as when there's an error in the query parameters.
GET /selling-plan-groups HTTP/1.1
Host: localhost:3002
Accept: */*
[
{
"shop": "text",
"id": "text",
"name": "text",
"description": "text",
"merchantCode": "text",
"productCount": 1,
"options": [
"text"
],
"sellingPlans": [
{
"shop": "text",
"id": "text",
"name": "text",
"description": "text",
"category": "text",
"position": 1,
"options": [
"text"
],
"billingAnchorActive": true,
"billingIntervalType": "text",
"billingIntervalValue": 1,
"billingAnchors": [
{
"cutoffDay": 1,
"day": 1,
"month": 1,
"type": "text"
}
],
"maxCycles": 1,
"minCycles": 1,
"deliveryAnchorActive": true,
"deliveryIntervalType": "text",
"deliveryIntervalValue": 1,
"deliveryAnchors": [
{
"cutoffDay": 1,
"day": 1,
"month": 1,
"type": "text"
}
],
"intent": "text",
"preAnchorBehavior": "text",
"inventoryPolicy": "text",
"fixedAdjustmentActive": true,
"fixedAdjustmentType": "text",
"fixedAdjustmentValue": 1,
"fixedAdjustmentValueType": "text",
"recurringAdjustmentActive": true,
"recurringAdjustmentType": "text",
"recurringAdjustmentValue": 1,
"recurringAdjustmentValueType": "text",
"recurringAfterCycleNumber": 1,
"metadata": {
"selected": true,
"needsToSave": true
}
}
]
}
]
Retrieves detailed information about a specific selling plan group, including its associated selling plans.
The unique identifier of the selling plan group.
Successfully retrieved the selling plan group.
Bad request, such as when the selling plan group ID is invalid or not found.
Server error, such as when an unexpected error occurs during the retrieval process.
GET /selling-plan-groups/{sellingPlanGroupId} HTTP/1.1
Host: localhost:3002
Accept: */*
{
"id": "text",
"shop": "text",
"name": "text",
"description": "text",
"merchantCode": "text",
"options": [
"text"
],
"productCount": 1,
"sellingPlans": [
{
"shop": "text",
"id": "text",
"name": "text",
"description": "text",
"category": "text",
"position": 1,
"options": [
"text"
],
"billingAnchorActive": true,
"billingIntervalType": "text",
"billingIntervalValue": 1,
"billingAnchors": [
{
"cutoffDay": 1,
"day": 1,
"month": 1,
"type": "text"
}
],
"maxCycles": 1,
"minCycles": 1,
"deliveryAnchorActive": true,
"deliveryIntervalType": "text",
"deliveryIntervalValue": 1,
"deliveryAnchors": [
{
"cutoffDay": 1,
"day": 1,
"month": 1,
"type": "text"
}
],
"intent": "text",
"preAnchorBehavior": "text",
"inventoryPolicy": "text",
"fixedAdjustmentActive": true,
"fixedAdjustmentType": "text",
"fixedAdjustmentValue": 1,
"fixedAdjustmentValueType": "text",
"recurringAdjustmentActive": true,
"recurringAdjustmentType": "text",
"recurringAdjustmentValue": 1,
"recurringAdjustmentValueType": "text",
"recurringAfterCycleNumber": 1,
"metadata": {
"selected": true,
"needsToSave": true
}
}
]
}
Retrieves products and their variants associated with a given selling plan group ID.
The unique identifier of the selling plan group.
Successfully retrieved the products from the selling plan group.
Bad request, such as when the selling plan group ID is invalid or not found.
Server error, such as when an unexpected error occurs during the retrieval process.
GET /selling-plan-groups/{sellingPlanGroupId}/products HTTP/1.1
Host: localhost:3002
Accept: */*
{
"success": true,
"data": [
{
"productId": "text",
"shop": "text",
"commerceType": "text",
"productCategoryName": "text",
"productCategoryId": "text",
"productCategoryisLeaf": true,
"productCategoryisRoot": true,
"excludeFromAddOns": true,
"minVariantPriceAmount": 1,
"minVariantPriceCurrency": "text",
"maxVariantPriceAmount": 1,
"maxVariantPriceCurrency": "text",
"totalVariants": 1,
"variants": [
{
"variantId": "text",
"createdAt": "text",
"barCode": "text",
"sellableOnlineQuantity": 1,
"taxable": true,
"title": "text",
"position": 1,
"displayName": "text",
"price": 1,
"imageUrl": "text",
"inventoryQuantity": 1,
"availableForSale": true,
"weight": 1,
"weightUnit": "text",
"inventoryPolicy": "text",
"sku": "text"
}
],
"vendor": "text",
"status": "text",
"tracksInventory": true,
"title": "text",
"tags": [
"text"
],
"createdAt": "text",
"descriptionHtml": "text",
"publishedAt": "text",
"sellingPlanGroupCount": 1,
"customProductType": "text",
"standardizedProductType": "text",
"onlineStoreUrl": "text",
"onlineStorePreviewUrl": "text",
"legacyResourceId": "text",
"productType": "text",
"handle": "text",
"featuredImageUrl": "text"
}
]
}
Last updated
Was this helpful?