Get a list of Product Colors

Use this method to get a list of colors from existing product categories in Komet Sales.

Valid Tokens: Company.


Related Articles

Request


Method: GET

URL: https://api.kometsales.com/api/v2/product/colors

Content-Type: URL Parameters


authenticationToken (required)(string:50)

Komet Sales security token.


Input parameters

categoryId (optional)(integer:20)

Komet Sales internal product category ID.


categoryName (optional)(string:100)

Product category name.


curl -X 'GET' \ 'https://api.kometsales.com/api/v2/product/colors?categoryId={1313}&categoryName=DK' \ -H 'key: authenticationToken' \ -H 'value: u0j3ij91k2r58g6s0grbi02dor' \ -H 'type: text'

Response


colors (array)

An array containing colors.


color (string:20)

Unique identifier of the product color category.


{ "colors": [ { "color": "." }, { "color": "10in" }, { "color": "10in Green" }, { "color": "10in Mix" }, { "color": "10in Red" }, { "color": "10in White" }, { "color": "12in" }, { "color": "13in" }, { "color": "14in" }, { "color": "2.5in" } ] }

 

 

Peacock