Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Excerpt

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

Tip

Valid Tokens: Company.


Filter by label (Content by label)
showLabelsfalse
max5
titleRelated Articles
cqllabel in ( "company-token" , "komet-network-code" , "grades" )

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.


Code Block
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.


Code Block
{
    "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"
        }
    ]
}
We've encountered an issue exporting this macro. Please try exporting this page again later.