Bundles
List Bundles
Section titled “List Bundles”Returns every bundle (a parent SKU sold as a kit) configured for your account, together with the child SKUs it’s composed of.
GET
/api/v1/bundlesExample Request
Section titled “Example Request”curl -X GET "https://api.prediko.io/api/v1/bundles" \ -H "Authorization: Bearer YOUR_API_KEY"import requests
response = requests.get( "https://api.prediko.io/api/v1/bundles", headers={"Authorization": "Bearer YOUR_API_KEY"})bundles = response.json()const response = await fetch( "https://api.prediko.io/api/v1/bundles", { headers: { "Authorization": "Bearer YOUR_API_KEY" } });const bundles = await response.json();Response
Section titled “Response”{ "data": [ { "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "name": "King's Fury Starter Kit", "contents": [ { "name": "King's Fury Beard Conditioner" }, { "name": "King's Fury Beard Oil" } ] } ], "total": 1}Response Fields
Section titled “Response Fields”| Field | Type | Description |
|---|---|---|
data | array | List of bundle objects |
total | integer | Total number of bundles |
Bundle Object
Section titled “Bundle Object”| Field | Type | Description |
|---|---|---|
id | string | Unique bundle identifier (the parent SKU’s product id) |
name | string | Bundle name |
contents | array | The child SKUs the bundle is made up of (see Bundle Content Object below) |
Bundle Content Object
Section titled “Bundle Content Object”| Field | Type | Description |
|---|---|---|
name | string | Name of the child SKU included in the bundle |
Error Responses
Section titled “Error Responses”| Status | Description |
|---|---|
| 401 | Invalid or missing API key |
| 500 | Internal server error |