Build-a-Box & Bundles
Get public Build-a-Box bundle details by handle (v3)
GET
/
subscriptions
/
cp
/
api
/
v3
/
subscription-bundlings
/
external
/
get-bundle
/
{handle}
Get public Build-a-Box bundle details by handle (v3)
curl --request GET \
--url https://www.myshop.com/apps/subscriptions/cp/api/v3/subscription-bundlings/external/get-bundle/{handle}import requests
url = "https://www.myshop.com/apps/subscriptions/cp/api/v3/subscription-bundlings/external/get-bundle/{handle}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://www.myshop.com/apps/subscriptions/cp/api/v3/subscription-bundlings/external/get-bundle/{handle}', 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/v3/subscription-bundlings/external/get-bundle/{handle}';
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/v3/subscription-bundlings/external/get-bundle/{handle}",
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/v3/subscription-bundlings/external/get-bundle/{handle}"
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/v3/subscription-bundlings/external/get-bundle/{handle}")
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{
"bundle": {
"shop": "<string>",
"allowOneTimePurchase": true,
"bundleBottomHtml": "<string>",
"bundleTopHtml": "<string>",
"chooseProductsText": "<string>",
"collectionData": "<string>",
"customRedirectURL": "<string>",
"discount": 123,
"discountedVariants": "<string>",
"id": 123,
"maxProductCount": 123,
"minOrderAmount": 123,
"minProductCount": 123,
"minUniqueProductCheck": true,
"name": "<string>",
"proceedToCheckoutButtonText": "<string>",
"sections": "<string>",
"sellingPlanIds": "<string>",
"singleProductSettings": "<string>",
"subscriptionBundlingEnabled": true,
"subscriptionGroup": "<string>",
"subscriptionId": 123,
"thirdPartyRule": true,
"tieredDiscount": "<string>",
"trackInventory": true,
"uniqueRef": "<string>",
"variants": "<string>"
},
"products": [
{
"shop": "<string>",
"id": 123,
"productHandle": "<string>",
"productId": 123,
"productTitle": "<string>"
}
],
"subscription": {
"shop": "<string>",
"groupName": "<string>",
"id": 123,
"infoJson": "<string>",
"productCount": 123,
"productIds": "<string>",
"productVariantCount": 123,
"subscriptionId": 123,
"translations": "<string>",
"variantIds": "<string>",
"variantProductIds": "<string>"
},
"subscriptionGroupPlans": [
{
"shop": "<string>",
"groupName": "<string>",
"id": 123,
"infoJson": "<string>",
"productCount": 123,
"productIds": "<string>",
"productVariantCount": 123,
"subscriptionId": 123,
"translations": "<string>",
"variantIds": "<string>",
"variantProductIds": "<string>"
}
],
"subscriptionPlanProductInfoMap": {},
"subscriptionPlanVariantMap": {},
"variants": [
"<string>"
]
}Path Parameters
Customer Handle
Response
200 - */*
OK
List single-product Build-a-Box bundlings for the shop
Previous
Replace product variants in a subscription contract
Next
⌘I
Get public Build-a-Box bundle details by handle (v3)
curl --request GET \
--url https://www.myshop.com/apps/subscriptions/cp/api/v3/subscription-bundlings/external/get-bundle/{handle}import requests
url = "https://www.myshop.com/apps/subscriptions/cp/api/v3/subscription-bundlings/external/get-bundle/{handle}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://www.myshop.com/apps/subscriptions/cp/api/v3/subscription-bundlings/external/get-bundle/{handle}', 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/v3/subscription-bundlings/external/get-bundle/{handle}';
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/v3/subscription-bundlings/external/get-bundle/{handle}",
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/v3/subscription-bundlings/external/get-bundle/{handle}"
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/v3/subscription-bundlings/external/get-bundle/{handle}")
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{
"bundle": {
"shop": "<string>",
"allowOneTimePurchase": true,
"bundleBottomHtml": "<string>",
"bundleTopHtml": "<string>",
"chooseProductsText": "<string>",
"collectionData": "<string>",
"customRedirectURL": "<string>",
"discount": 123,
"discountedVariants": "<string>",
"id": 123,
"maxProductCount": 123,
"minOrderAmount": 123,
"minProductCount": 123,
"minUniqueProductCheck": true,
"name": "<string>",
"proceedToCheckoutButtonText": "<string>",
"sections": "<string>",
"sellingPlanIds": "<string>",
"singleProductSettings": "<string>",
"subscriptionBundlingEnabled": true,
"subscriptionGroup": "<string>",
"subscriptionId": 123,
"thirdPartyRule": true,
"tieredDiscount": "<string>",
"trackInventory": true,
"uniqueRef": "<string>",
"variants": "<string>"
},
"products": [
{
"shop": "<string>",
"id": 123,
"productHandle": "<string>",
"productId": 123,
"productTitle": "<string>"
}
],
"subscription": {
"shop": "<string>",
"groupName": "<string>",
"id": 123,
"infoJson": "<string>",
"productCount": 123,
"productIds": "<string>",
"productVariantCount": 123,
"subscriptionId": 123,
"translations": "<string>",
"variantIds": "<string>",
"variantProductIds": "<string>"
},
"subscriptionGroupPlans": [
{
"shop": "<string>",
"groupName": "<string>",
"id": 123,
"infoJson": "<string>",
"productCount": 123,
"productIds": "<string>",
"productVariantCount": 123,
"subscriptionId": 123,
"translations": "<string>",
"variantIds": "<string>",
"variantProductIds": "<string>"
}
],
"subscriptionPlanProductInfoMap": {},
"subscriptionPlanVariantMap": {},
"variants": [
"<string>"
]
}