Build-a-Box & Bundles
Get a subscription bundling configuration by token
GET
/
subscriptions
/
cp
/
api
/
subscription-bundlings
/
by-token
/
{token}
Get a subscription bundling configuration by token
curl --request GET \
--url https://www.myshop.com/apps/subscriptions/cp/api/subscription-bundlings/by-token/{token}import requests
url = "https://www.myshop.com/apps/subscriptions/cp/api/subscription-bundlings/by-token/{token}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://www.myshop.com/apps/subscriptions/cp/api/subscription-bundlings/by-token/{token}', 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/by-token/{token}';
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/by-token/{token}",
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/by-token/{token}"
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/by-token/{token}")
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,
"appliesOn": "PRODUCT",
"buildABoxType": "CLASSIC",
"bundleBottomHtml": "<string>",
"bundleRedirect": "CART",
"bundleTopHtml": "<string>",
"chooseProductsText": "<string>",
"collectionData": "<string>",
"customRedirectURL": "<string>",
"discount": 123,
"discountedVariants": "<string>",
"groupName": "<string>",
"id": 123,
"inventoryTrackingMode": "ADD_CHILD_PRODUCT_ON_ORDER",
"maxProductCount": 123,
"minOrderAmount": 123,
"minProductCount": 123,
"minUniqueProductCheck": true,
"name": "<string>",
"proceedToCheckoutButtonText": "<string>",
"productDiscountType": "SELECTED_PRODUCT",
"productSelectionType": "PRODUCT",
"productViewStyle": "QUICK_ADD",
"sections": "<string>",
"selectionType": "FIXED",
"sellingPlanIds": "<string>",
"singleProductSettings": "<string>",
"subscriptionBundleLink": "<string>",
"subscriptionBundlingEnabled": true,
"subscriptionGroup": "<string>",
"subscriptionId": 123,
"thirdPartyRule": true,
"tieredDiscount": "<string>",
"trackInventory": true,
"uniqueRef": "<string>",
"variants": "<string>"
}Path Parameters
Response
200 - */*
OK
Available options:
PRODUCT, COLLECTION, BOTH, ONE_TIME, SUBSCRIPTION 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 Available options:
CART, CART_DRAWER, CHECKOUT, CUSTOM, NONE Available options:
ADD_CHILD_PRODUCT_ON_ORDER, ADD_CHILD_PRODUCT_ON_CHECKOUT Available options:
SELECTED_PRODUCT, EACH_PRODUCT Available options:
PRODUCT, COLLECTION Available options:
QUICK_ADD, VIEW_DETAILS Available options:
FIXED, FLEXIBLE ⌘I
Get a subscription bundling configuration by token
curl --request GET \
--url https://www.myshop.com/apps/subscriptions/cp/api/subscription-bundlings/by-token/{token}import requests
url = "https://www.myshop.com/apps/subscriptions/cp/api/subscription-bundlings/by-token/{token}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://www.myshop.com/apps/subscriptions/cp/api/subscription-bundlings/by-token/{token}', 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/by-token/{token}';
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/by-token/{token}",
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/by-token/{token}"
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/by-token/{token}")
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,
"appliesOn": "PRODUCT",
"buildABoxType": "CLASSIC",
"bundleBottomHtml": "<string>",
"bundleRedirect": "CART",
"bundleTopHtml": "<string>",
"chooseProductsText": "<string>",
"collectionData": "<string>",
"customRedirectURL": "<string>",
"discount": 123,
"discountedVariants": "<string>",
"groupName": "<string>",
"id": 123,
"inventoryTrackingMode": "ADD_CHILD_PRODUCT_ON_ORDER",
"maxProductCount": 123,
"minOrderAmount": 123,
"minProductCount": 123,
"minUniqueProductCheck": true,
"name": "<string>",
"proceedToCheckoutButtonText": "<string>",
"productDiscountType": "SELECTED_PRODUCT",
"productSelectionType": "PRODUCT",
"productViewStyle": "QUICK_ADD",
"sections": "<string>",
"selectionType": "FIXED",
"sellingPlanIds": "<string>",
"singleProductSettings": "<string>",
"subscriptionBundleLink": "<string>",
"subscriptionBundlingEnabled": true,
"subscriptionGroup": "<string>",
"subscriptionId": 123,
"thirdPartyRule": true,
"tieredDiscount": "<string>",
"trackInventory": true,
"uniqueRef": "<string>",
"variants": "<string>"
}