Get a list of Product Grades
Use this method to get a list of grades from existing product categories in Komet Sales.
Valid Tokens: Company.
Related Articles
-
Delete a Prebook 1.0 (API)
-
-
-
Add Inventory (API)
-
Komet Network Codes (Knowledge Base)
Request
URL: https://api.kometsales.com/api/v2/product/grades
Method: GET
Content-Type: URL Parameters
Header
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/grades?categoryId={1313}&categoryName=DK' \
-H 'key: authenticationToken' \
-H 'value: u0j3ij91k2r58g6s0grbi02dor' \
-H 'type: text'
Response
grades (array)
An array containing the category and grade information.
categoryId (integer:20)
Komet Sales internal product category ID.
categoryName (string:100)
Product category name.
grade (string:50)
Product grade.
{
"grades": [
{
"categoryId": 7409,
"categoryName": "Carnation",
"grade": "6st"
},
{
"categoryId": 7409,
"categoryName": "Carnation",
"grade": "DoranDirect"
},
{
"categoryId": 7409,
"categoryName": "Carnation",
"grade": "Fancy"
},
{
"categoryId": 7409,
"categoryName": "Carnation",
"grade": "Select"
},
{
"categoryId": 7409,
"categoryName": "Carnation",
"grade": "Standard"
},
{
"categoryId": 7410,
"categoryName": "Alstro",
"grade": "60cm"
},
{
"categoryId": 7410,
"categoryName": "Alstro",
"grade": "70cm"
}
]
}
Peacock