Skip to main content
GET
/
subscriptions
/
cp
/
api
/
subscription-bundlings
/
single-product
List single-product Build-a-Box bundlings for the shop
curl --request GET \
  --url https://www.myshop.com/apps/subscriptions/cp/api/subscription-bundlings/single-product
import requests

url = "https://www.myshop.com/apps/subscriptions/cp/api/subscription-bundlings/single-product"

response = requests.get(url)

print(response.text)
const options = {method: 'GET'};

fetch('https://www.myshop.com/apps/subscriptions/cp/api/subscription-bundlings/single-product', 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/subscription-bundlings/single-product';
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/subscription-bundlings/single-product",
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/subscription-bundlings/single-product"

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/subscription-bundlings/single-product")

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
[
  {
    "shop": "<string>",
    "allowOneTimePurchase": true,
    "bundleBottomHtml": "<string>",
    "bundleTopHtml": "<string>",
    "chooseProductsText": "<string>",
    "collectionData": "<string>",
    "customRedirectURL": "<string>",
    "discount": 123,
    "discountedVariants": "<string>",
    "groupName": "<string>",
    "id": 123,
    "maxProductCount": 123,
    "minOrderAmount": 123,
    "minProductCount": 123,
    "minUniqueProductCheck": true,
    "name": "<string>",
    "proceedToCheckoutButtonText": "<string>",
    "sections": "<string>",
    "sellingPlanIds": "<string>",
    "singleProductSettings": "<string>",
    "subscriptionBundleLink": "<string>",
    "subscriptionBundlingEnabled": true,
    "subscriptionGroup": "<string>",
    "subscriptionId": 123,
    "thirdPartyRule": true,
    "tieredDiscount": "<string>",
    "trackInventory": true,
    "uniqueRef": "<string>",
    "variants": "<string>"
  }
]

Response

200 - */*

OK

shop
string
required
allowOneTimePurchase
boolean
appliesOn
enum<string>
Available options:
PRODUCT,
COLLECTION,
BOTH,
ONE_TIME,
SUBSCRIPTION
buildABoxType
enum<string>
Available options:
CLASSIC,
SINGLE_PRODUCT,
MIX_AND_MATCH,
INFINITE,
CUSTOMIZE_BUNDLE,
CLASSIC_BUILD_A_BOX,
SINGLE_PRODUCT_BUILD_A_BOX,
VOLUME_DISCOUNT,
DISCOUNTED_PRICING,
SHIPPING_DISCOUNT,
BUY_X_GET_Y,
SECTIONED_BUNDLE
bundleBottomHtml
string
bundleRedirect
enum<string>
Available options:
CART,
CHECKOUT,
CUSTOM,
NONE
bundleTopHtml
string
chooseProductsText
string
collectionData
string
customRedirectURL
string
discount
number<double>
discountedVariants
string
groupName
string
id
integer<int64>
maxProductCount
integer<int32>
minOrderAmount
number<double>
minProductCount
integer<int32>
minUniqueProductCheck
boolean
name
string
proceedToCheckoutButtonText
string
productDiscountType
enum<string>
Available options:
SELECTED_PRODUCT,
EACH_PRODUCT
productSelectionType
enum<string>
Available options:
PRODUCT,
COLLECTION
productViewStyle
enum<string>
Available options:
QUICK_ADD,
VIEW_DETAILS
sections
string
selectionType
enum<string>
Available options:
FIXED,
FLEXIBLE
sellingPlanIds
string
singleProductSettings
string
subscriptionBundlingEnabled
boolean
subscriptionGroup
string
subscriptionId
integer<int64>
thirdPartyRule
boolean
tieredDiscount
string
trackInventory
boolean
uniqueRef
string
variants
string