Product Type GET

URI

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

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

Description

Returns the id and name of a product type along with any associatedOptions.

Example 1

Requesting all Product Types. Note product type with id 2 has some associated options.

Request URI

/product-type/

Response

{
	"response": [
		{
			"id": 1,
			"name": "Default"
		},
		{
			"id": 2,
			"name": "Clothes",
			"associations": {
				"options": [
					{
						"id": 3,
						"name": "Color"
					},
					{
						"id": 4,
						"name": "Size"
					}
				]
			}
		},
		{
			"id": 3,
			"name": "Other"
		}
	]
}

Example 2

Requesting Product Types using an Id Set.

Request URI

/product-type/1,3

Response

{
	"response": [
		{
			"id": 1,
			"name": "Default"
		},
		{
			"id": 3,
			"name": "Other"
		}
	]
}