Product Catalog
List discount rules applicable to bundles
GET
/
subscriptions
/
cp
/
api
/
bundle-discount-rules
List discount rules applicable to bundles
curl --request GET \
--url https://www.myshop.com/apps/subscriptions/cp/api/bundle-discount-rulesimport requests
url = "https://www.myshop.com/apps/subscriptions/cp/api/bundle-discount-rules"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://www.myshop.com/apps/subscriptions/cp/api/bundle-discount-rules', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const url = 'https://www.myshop.com/apps/subscriptions/cp/api/bundle-discount-rules';
const options = {method: 'GET'};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://www.myshop.com/apps/subscriptions/cp/api/bundle-discount-rules",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://www.myshop.com/apps/subscriptions/cp/api/bundle-discount-rules"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}require 'uri'
require 'net/http'
url = URI("https://www.myshop.com/apps/subscriptions/cp/api/bundle-discount-rules")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body[
{
"allowedCountries": "<string>",
"allowedTags": "<string>",
"announcementBarMessage": "<string>",
"appliesOn": "PRODUCT",
"automaticDiscountNodeId": "<string>",
"automaticShippingDiscountNodeId": "<string>",
"averageOrderValue": 123,
"badgesBackgroundColor": "<string>",
"badgesStyles": "TRIANGLES",
"badgesTextColor": "<string>",
"blockTitleColor": "<string>",
"blockTitleFontSize": 123,
"blockTitleFontStyle": "<string>",
"borderRadius": 123,
"bundleHtml": "<string>",
"bundlePageBackgroundColor": "<string>",
"bundleProductId": 123,
"bundleRedirect": "CART",
"bundleSubType": "BUY_X_GET_Y",
"bundleType": "MIX_AND_MATCH",
"bundleVariantId": "<string>",
"buttonBackgroundColor": "<string>",
"cardBackgroundColor": "<string>",
"cardBorderColor": "<string>",
"cardGap": 123,
"cardHoverColor": "<string>",
"clearCart": "DEFAULT",
"collectionData": "<string>",
"combinedWithOrderDiscount": true,
"combinedWithProductDiscount": true,
"combinedWithShippingDiscount": true,
"combos": "<string>",
"conversionRate": 123,
"countrySelectionType": "ALL_COUNTRY",
"customRedirectURL": "<string>",
"customerIncludeTags": "<string>",
"dedicatedSubscriptionLayout": "LAYOUT_ONE",
"description": "<string>",
"disabledTextColor": "<string>",
"discountAppliesOn": "PER_QUANTITY",
"discountApplyApproach": "SHOPIFY_DISCOUNT_FUNCTION",
"discountId": "<string>",
"discountName": "<string>",
"discountTargetType": "PRODUCT",
"discountType": "PERCENTAGE",
"discountValue": 123,
"discountedProductChooseType": "CHOOSE_ALL",
"discountedVariantSelectionLimit": 123,
"discountedVariants": "<string>",
"enableAnnouncementBar": true,
"enableSequentialProductLoading": true,
"enableSubscription": true,
"enableVolumeDiscountUpsell": true,
"excludeSubscriptionPlans": "<string>",
"externalBuildABoxId": 123,
"fieldDisabledBackgroundColor": "<string>",
"freeShipping": true,
"getYAppliesOn": "PRODUCT",
"hasOptionChanges": true,
"hasProductChanges": true,
"headingTextColor": "<string>",
"hideOneTimePurchase": true,
"hideSubscriptionPurchase": true,
"id": 123,
"includedSubscriptionPlans": "<string>",
"internalName": "<string>",
"labels": "<string>",
"layoutType": "LAYOUT_ONE",
"limitToUsePerCustomer": 123,
"maxOrderAmount": 123,
"maxPrice": 123,
"maxProductCount": 123,
"minOrderAmount": 123,
"minPrice": 123,
"minProductCount": 123,
"name": "<string>",
"numberOfProducts": 123,
"oneTimeSubtitle": "<string>",
"oneTimeTitle": "<string>",
"otherProductsButtonBackgroundColor": "<string>",
"otherProductsButtonTextColor": "<string>",
"otherProductsImageSize": 123,
"otherProductsModalButtonBackgroundColor": "<string>",
"otherProductsModalButtonTextColor": "<string>",
"otherProductsModalFullPriceColor": "<string>",
"otherProductsModalHeadingLabelColor": "<string>",
"otherProductsModalImageSize": 123,
"otherProductsModalOverlayColor": "<string>",
"otherProductsModalPriceColor": "<string>",
"otherProductsModalProductPriceTextSize": 123,
"otherProductsModalProductTitleColor": "<string>",
"otherProductsModalProductTitleTextSize": 123,
"otherProductsModalSubtitleLabel": "<string>",
"otherProductsProductTitleColor": "<string>",
"otherProductsProductTitleSize": 123,
"perRowItem": "TWO",
"price": 123,
"primaryColor": "<string>",
"primaryDisabledColor": "<string>",
"primaryDisabledTextColor": "<string>",
"primaryHoverColor": "<string>",
"primaryTextColor": "<string>",
"productCardBackgroundColor": "<string>",
"productChooseType": "CHOOSE_ALL",
"productDiscountType": "SELECTED_PRODUCT",
"productHandle": "<string>",
"productSelectionType": "PRODUCT",
"productViewStyle": "QUICK_ADD",
"products": "<string>",
"purchaseRequirement": "MINIMUM_AMOUNT",
"recurringCycleLimit": 123,
"restrictTags": "<string>",
"saveBadgeBackgroundColor": "<string>",
"saveBadgeFontSize": 123,
"saveBadgeFontStyle": "<string>",
"saveBadgeTextColor": "<string>",
"scheduledBundleRule": true,
"secondaryTextColor": "<string>",
"sections": "<string>",
"selectedCardBackgroundColor": "<string>",
"selectedCardBorderColor": "<string>",
"selectionType": "FIXED",
"sellingPlanType": "BUNDLE_LEVEL",
"sequenceNo": 123,
"sequentialProductsPerBatch": 123,
"settings": "<string>",
"shop": "<string>",
"showBundleInProductPage": true,
"showClassicBundleWidgetInChildProduct": true,
"showPriceOfChosenProductsOnly": true,
"showPriceWithSubscriptionPrice": true,
"showPricesWithoutDecimal": true,
"showUnitPrice": true,
"singleProductSettings": "<string>",
"status": "ACTIVE",
"style": "<string>",
"subTitle": "<string>",
"subscribeSubtitle": "<string>",
"subscribeTitle": "<string>",
"subscriptionBundleLink": "<string>",
"subscriptionBundlingEnabled": true,
"subscriptionId": 123,
"subscriptionPreselected": true,
"subscriptionSubTitleFontSize": 123,
"subscriptionSubTitleTextColor": "<string>",
"subscriptionTitleFontSize": 123,
"subscriptionTitleTextColor": "<string>",
"subscriptionWidgetPosition": "ABOVE",
"tag": "<string>",
"themeType": "THEME_ONE",
"tierFreeGiftBackgroundColor": "<string>",
"tierFreeGiftPriceFontSize": 123,
"tierFreeGiftPriceFontStyle": "<string>",
"tierFreeGiftTextColor": "<string>",
"tierFreeGiftTitleFontSize": 123,
"tierFreeGiftTitleFontStyle": "<string>",
"tierFullPriceColor": "<string>",
"tierFullPriceFontSize": 123,
"tierFullPriceFontStyle": "<string>",
"tierPriceColor": "<string>",
"tierPriceFontSize": 123,
"tierPriceFontStyle": "<string>",
"tierSubTitleColor": "<string>",
"tierSubTitleFontSize": 123,
"tierSubTitleFontStyle": "<string>",
"tierTitleColor": "<string>",
"tierTitleFontSize": 123,
"tierTitleFontStyle": "<string>",
"tierUnitLabelFontSize": 123,
"tierUnitLabelFontStyle": "<string>",
"tieredDiscount": "<string>",
"topBarDiscountRequiredAmountMessage": "<string>",
"topBarDiscountRequiredQuantityMessage": "<string>",
"topBarDiscountUnlockTitlePrefix": "<string>",
"topBarFixedDiscountMessage": "<string>",
"topBarFreeShippingMessage": "<string>",
"topBarPercentDiscountMessage": "<string>",
"totalOrderValue": 123,
"totalVisitor": 123,
"trackInventory": true,
"uniqueRef": "<string>",
"unitLabel": "<string>",
"upsells": "<string>",
"variantSelectionLimit": 123,
"variantVisibilityType": "SHOW_VARIANTS_AS_INDIVIDUAL",
"variants": "<string>"
}
]Response
200 - */*
OK
Available options:
PRODUCT, COLLECTION, BOTH, ONE_TIME, SUBSCRIPTION Available options:
TRIANGLES, NORMAL Available options:
CART, CART_DRAWER, CHECKOUT, CUSTOM, NONE Available options:
BUY_X_GET_Y, FIXED_BUNDLE Available options:
MIX_AND_MATCH, CLASSIC, INFINITE, CUSTOMIZE_BUNDLE, CLASSIC_BUILD_A_BOX, SINGLE_PRODUCT_BUILD_A_BOX, VOLUME_DISCOUNT, DISCOUNTED_PRICING, SHIPPING_DISCOUNT, BUY_X_GET_Y, SECTIONED_BUNDLE, COMBO_BUNDLE Available options:
DEFAULT, ENABLED, DISABLED Available options:
ALL_COUNTRY, SELECTED_COUNTRY Available options:
LAYOUT_ONE, LAYOUT_TWO, LAYOUT_THREE Available options:
PER_QUANTITY, PER_ORDER, PER_LINE_ITEM Available options:
SHOPIFY_DISCOUNT_FUNCTION, SHOPIFY_DISCOUNT_API Available options:
PRODUCT, VARIANT, ANY Available options:
PERCENTAGE, FIXED_AMOUNT, FIXED_BUNDLE_AMOUNT, TIERED_DISCOUNT, NO_DISCOUNT, FREE_GIFT Available options:
CHOOSE_ALL, CHOOSE_ONE, CHOOSE_SPECIFIC Available options:
PRODUCT, COLLECTION, BOTH, ONE_TIME, SUBSCRIPTION Available options:
LAYOUT_ONE, LAYOUT_TWO, LAYOUT_THREE, LAYOUT_FOUR Available options:
TWO, THREE Available options:
CHOOSE_ALL, CHOOSE_ONE, CHOOSE_SPECIFIC Available options:
SELECTED_PRODUCT, EACH_PRODUCT Available options:
PRODUCT, COLLECTION Available options:
QUICK_ADD, VIEW_DETAILS Available options:
MINIMUM_AMOUNT, MINIMUM_QUANTITY, NO_REQUIREMENT Available options:
FIXED, FLEXIBLE Available options:
BUNDLE_LEVEL, PRODUCT_LEVEL Available options:
ACTIVE, PAUSED, DRAFT Available options:
ABOVE, BELOW Available options:
THEME_ONE, THEME_TWO Available options:
SHOW_VARIANTS_AS_INDIVIDUAL, SHOW_VARIANTS_AS_OPTIONS ⌘I
List discount rules applicable to bundles
curl --request GET \
--url https://www.myshop.com/apps/subscriptions/cp/api/bundle-discount-rulesimport requests
url = "https://www.myshop.com/apps/subscriptions/cp/api/bundle-discount-rules"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://www.myshop.com/apps/subscriptions/cp/api/bundle-discount-rules', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const url = 'https://www.myshop.com/apps/subscriptions/cp/api/bundle-discount-rules';
const options = {method: 'GET'};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://www.myshop.com/apps/subscriptions/cp/api/bundle-discount-rules",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://www.myshop.com/apps/subscriptions/cp/api/bundle-discount-rules"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}require 'uri'
require 'net/http'
url = URI("https://www.myshop.com/apps/subscriptions/cp/api/bundle-discount-rules")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body[
{
"allowedCountries": "<string>",
"allowedTags": "<string>",
"announcementBarMessage": "<string>",
"appliesOn": "PRODUCT",
"automaticDiscountNodeId": "<string>",
"automaticShippingDiscountNodeId": "<string>",
"averageOrderValue": 123,
"badgesBackgroundColor": "<string>",
"badgesStyles": "TRIANGLES",
"badgesTextColor": "<string>",
"blockTitleColor": "<string>",
"blockTitleFontSize": 123,
"blockTitleFontStyle": "<string>",
"borderRadius": 123,
"bundleHtml": "<string>",
"bundlePageBackgroundColor": "<string>",
"bundleProductId": 123,
"bundleRedirect": "CART",
"bundleSubType": "BUY_X_GET_Y",
"bundleType": "MIX_AND_MATCH",
"bundleVariantId": "<string>",
"buttonBackgroundColor": "<string>",
"cardBackgroundColor": "<string>",
"cardBorderColor": "<string>",
"cardGap": 123,
"cardHoverColor": "<string>",
"clearCart": "DEFAULT",
"collectionData": "<string>",
"combinedWithOrderDiscount": true,
"combinedWithProductDiscount": true,
"combinedWithShippingDiscount": true,
"combos": "<string>",
"conversionRate": 123,
"countrySelectionType": "ALL_COUNTRY",
"customRedirectURL": "<string>",
"customerIncludeTags": "<string>",
"dedicatedSubscriptionLayout": "LAYOUT_ONE",
"description": "<string>",
"disabledTextColor": "<string>",
"discountAppliesOn": "PER_QUANTITY",
"discountApplyApproach": "SHOPIFY_DISCOUNT_FUNCTION",
"discountId": "<string>",
"discountName": "<string>",
"discountTargetType": "PRODUCT",
"discountType": "PERCENTAGE",
"discountValue": 123,
"discountedProductChooseType": "CHOOSE_ALL",
"discountedVariantSelectionLimit": 123,
"discountedVariants": "<string>",
"enableAnnouncementBar": true,
"enableSequentialProductLoading": true,
"enableSubscription": true,
"enableVolumeDiscountUpsell": true,
"excludeSubscriptionPlans": "<string>",
"externalBuildABoxId": 123,
"fieldDisabledBackgroundColor": "<string>",
"freeShipping": true,
"getYAppliesOn": "PRODUCT",
"hasOptionChanges": true,
"hasProductChanges": true,
"headingTextColor": "<string>",
"hideOneTimePurchase": true,
"hideSubscriptionPurchase": true,
"id": 123,
"includedSubscriptionPlans": "<string>",
"internalName": "<string>",
"labels": "<string>",
"layoutType": "LAYOUT_ONE",
"limitToUsePerCustomer": 123,
"maxOrderAmount": 123,
"maxPrice": 123,
"maxProductCount": 123,
"minOrderAmount": 123,
"minPrice": 123,
"minProductCount": 123,
"name": "<string>",
"numberOfProducts": 123,
"oneTimeSubtitle": "<string>",
"oneTimeTitle": "<string>",
"otherProductsButtonBackgroundColor": "<string>",
"otherProductsButtonTextColor": "<string>",
"otherProductsImageSize": 123,
"otherProductsModalButtonBackgroundColor": "<string>",
"otherProductsModalButtonTextColor": "<string>",
"otherProductsModalFullPriceColor": "<string>",
"otherProductsModalHeadingLabelColor": "<string>",
"otherProductsModalImageSize": 123,
"otherProductsModalOverlayColor": "<string>",
"otherProductsModalPriceColor": "<string>",
"otherProductsModalProductPriceTextSize": 123,
"otherProductsModalProductTitleColor": "<string>",
"otherProductsModalProductTitleTextSize": 123,
"otherProductsModalSubtitleLabel": "<string>",
"otherProductsProductTitleColor": "<string>",
"otherProductsProductTitleSize": 123,
"perRowItem": "TWO",
"price": 123,
"primaryColor": "<string>",
"primaryDisabledColor": "<string>",
"primaryDisabledTextColor": "<string>",
"primaryHoverColor": "<string>",
"primaryTextColor": "<string>",
"productCardBackgroundColor": "<string>",
"productChooseType": "CHOOSE_ALL",
"productDiscountType": "SELECTED_PRODUCT",
"productHandle": "<string>",
"productSelectionType": "PRODUCT",
"productViewStyle": "QUICK_ADD",
"products": "<string>",
"purchaseRequirement": "MINIMUM_AMOUNT",
"recurringCycleLimit": 123,
"restrictTags": "<string>",
"saveBadgeBackgroundColor": "<string>",
"saveBadgeFontSize": 123,
"saveBadgeFontStyle": "<string>",
"saveBadgeTextColor": "<string>",
"scheduledBundleRule": true,
"secondaryTextColor": "<string>",
"sections": "<string>",
"selectedCardBackgroundColor": "<string>",
"selectedCardBorderColor": "<string>",
"selectionType": "FIXED",
"sellingPlanType": "BUNDLE_LEVEL",
"sequenceNo": 123,
"sequentialProductsPerBatch": 123,
"settings": "<string>",
"shop": "<string>",
"showBundleInProductPage": true,
"showClassicBundleWidgetInChildProduct": true,
"showPriceOfChosenProductsOnly": true,
"showPriceWithSubscriptionPrice": true,
"showPricesWithoutDecimal": true,
"showUnitPrice": true,
"singleProductSettings": "<string>",
"status": "ACTIVE",
"style": "<string>",
"subTitle": "<string>",
"subscribeSubtitle": "<string>",
"subscribeTitle": "<string>",
"subscriptionBundleLink": "<string>",
"subscriptionBundlingEnabled": true,
"subscriptionId": 123,
"subscriptionPreselected": true,
"subscriptionSubTitleFontSize": 123,
"subscriptionSubTitleTextColor": "<string>",
"subscriptionTitleFontSize": 123,
"subscriptionTitleTextColor": "<string>",
"subscriptionWidgetPosition": "ABOVE",
"tag": "<string>",
"themeType": "THEME_ONE",
"tierFreeGiftBackgroundColor": "<string>",
"tierFreeGiftPriceFontSize": 123,
"tierFreeGiftPriceFontStyle": "<string>",
"tierFreeGiftTextColor": "<string>",
"tierFreeGiftTitleFontSize": 123,
"tierFreeGiftTitleFontStyle": "<string>",
"tierFullPriceColor": "<string>",
"tierFullPriceFontSize": 123,
"tierFullPriceFontStyle": "<string>",
"tierPriceColor": "<string>",
"tierPriceFontSize": 123,
"tierPriceFontStyle": "<string>",
"tierSubTitleColor": "<string>",
"tierSubTitleFontSize": 123,
"tierSubTitleFontStyle": "<string>",
"tierTitleColor": "<string>",
"tierTitleFontSize": 123,
"tierTitleFontStyle": "<string>",
"tierUnitLabelFontSize": 123,
"tierUnitLabelFontStyle": "<string>",
"tieredDiscount": "<string>",
"topBarDiscountRequiredAmountMessage": "<string>",
"topBarDiscountRequiredQuantityMessage": "<string>",
"topBarDiscountUnlockTitlePrefix": "<string>",
"topBarFixedDiscountMessage": "<string>",
"topBarFreeShippingMessage": "<string>",
"topBarPercentDiscountMessage": "<string>",
"totalOrderValue": 123,
"totalVisitor": 123,
"trackInventory": true,
"uniqueRef": "<string>",
"unitLabel": "<string>",
"upsells": "<string>",
"variantSelectionLimit": 123,
"variantVisibilityType": "SHOW_VARIANTS_AS_INDIVIDUAL",
"variants": "<string>"
}
]