Product Bundle GET

URI

https://{DATACENTER}.brightpearl.com/public-api/{ACCOUNT}
/product-service/product/{ID-SET}/bundle

Refer to our documentation on URI syntax for more information on how to construct URIs.

Description

This resource returns a list of the bundles that contain a given product, and recursively any bundles that contain those bundles. Thus, it provides a complete list of all bundles that contain a given product either directly or indirectly, in a tree structure that shows the bundle hierarchy, but not the full composition of the any bundle.

To find further details of the bundles including their complete composition, use the Product GET message; this will also supply full details of the composition of the bundle.

In common with many other Brightpearl APIs, a 404 Not Found response will be returned if the specified product ID is valid but is not a component of any bundle.

Example

Fetch the bundles that contain product 201. It is a component of two bundles, 303 and 391, and bundle 391 is itself a component of bundle 488.

Request URI

/product/201/bundle

Response

{
	"response": [
		{
			"id": 201,
			"bundles": [
				{
					"id": 303
				},
				{
					"id": 391,
					"bundles": [
						{
							"id": 488
						}
					]
				}
			]
		}
	]
}