Skip to main content
GET
/
api
/
external
/
v2
/
subscription-bundlings
/
external
/
get-bundle
/
{handle}
Get bundle details by handle
curl --request GET \
  --url https://membership-admin.appstle.com/api/external/v2/subscription-bundlings/external/get-bundle/{handle}
import requests

url = "https://membership-admin.appstle.com/api/external/v2/subscription-bundlings/external/get-bundle/{handle}"

response = requests.get(url)

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

fetch('https://membership-admin.appstle.com/api/external/v2/subscription-bundlings/external/get-bundle/{handle}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
const url = 'https://membership-admin.appstle.com/api/external/v2/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://membership-admin.appstle.com/api/external/v2/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://membership-admin.appstle.com/api/external/v2/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://membership-admin.appstle.com/api/external/v2/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>",
    "discount": 123,
    "id": 123,
    "maxProductCount": 123,
    "minProductCount": 123,
    "subscriptionBundlingEnabled": true,
    "subscriptionId": 123,
    "uniqueRef": "<string>"
  },
  "products": [
    {
      "shop": "<string>",
      "id": 123,
      "productHandle": "<string>",
      "productId": 123,
      "productTitle": "<string>"
    }
  ],
  "subscription": {
    "shop": "<string>",
    "customerTag": "<string>",
    "formFieldsJson": "<string>",
    "groupName": "<string>",
    "id": 123,
    "infoJson": "<string>",
    "memberOrderTag": "<string>",
    "orderTag": "<string>",
    "planSequence": 123,
    "productCount": 123,
    "productIds": "<string>",
    "productVariantCount": 123,
    "rulesJson": "<string>",
    "savedSearchId": "<string>",
    "savedSegmentSearchId": "<string>",
    "subscriptionId": 123,
    "translations": "<string>",
    "variantIds": "<string>",
    "variantProductIds": "<string>"
  },
  "variants": [
    "<string>"
  ]
}
{
"bundle": {
"shop": "<string>",
"discount": 123,
"id": 123,
"maxProductCount": 123,
"minProductCount": 123,
"subscriptionBundlingEnabled": true,
"subscriptionId": 123,
"uniqueRef": "<string>"
},
"products": [
{
"shop": "<string>",
"id": 123,
"productHandle": "<string>",
"productId": 123,
"productTitle": "<string>"
}
],
"subscription": {
"shop": "<string>",
"customerTag": "<string>",
"formFieldsJson": "<string>",
"groupName": "<string>",
"id": 123,
"infoJson": "<string>",
"memberOrderTag": "<string>",
"orderTag": "<string>",
"planSequence": 123,
"productCount": 123,
"productIds": "<string>",
"productVariantCount": 123,
"rulesJson": "<string>",
"savedSearchId": "<string>",
"savedSegmentSearchId": "<string>",
"subscriptionId": 123,
"translations": "<string>",
"variantIds": "<string>",
"variantProductIds": "<string>"
},
"variants": [
"<string>"
]
}
{
"bundle": {
"shop": "<string>",
"discount": 123,
"id": 123,
"maxProductCount": 123,
"minProductCount": 123,
"subscriptionBundlingEnabled": true,
"subscriptionId": 123,
"uniqueRef": "<string>"
},
"products": [
{
"shop": "<string>",
"id": 123,
"productHandle": "<string>",
"productId": 123,
"productTitle": "<string>"
}
],
"subscription": {
"shop": "<string>",
"customerTag": "<string>",
"formFieldsJson": "<string>",
"groupName": "<string>",
"id": 123,
"infoJson": "<string>",
"memberOrderTag": "<string>",
"orderTag": "<string>",
"planSequence": 123,
"productCount": 123,
"productIds": "<string>",
"productVariantCount": 123,
"rulesJson": "<string>",
"savedSearchId": "<string>",
"savedSegmentSearchId": "<string>",
"subscriptionId": 123,
"translations": "<string>",
"variantIds": "<string>",
"variantProductIds": "<string>"
},
"variants": [
"<string>"
]
}

Headers

X-API-Key
string

Path Parameters

handle
string
required

Unique bundle identifier (handle/slug)

Query Parameters

api_key
string

API Key (Deprecated - Use Header X-API-Key instead)

Response

Bundle details successfully retrieved

bundle
object
products
object[]
subscription
object
variants
string[]