Overview

This method returns a list of categories. 

Request

https://api.kometsales.com/api/category.list

  • Method: GET
  • Content-Type: URL Params.

Input parameters:

  • authenticationToken (required)(string:50): Komet Sales security token.

Sample
https://api.kometsales.com/api/category.list?authenticationToken=token_info_goes_here

Response

Output:

  • status (integer:1): transaction status. 1 for success or 0 for failure.
  • message (string:500): description of the status of the transaction.
  • categoryItems: array of categories.
    • categoryId (integer:20): Komet Sales internal category ID.
    • categoryName (string:200): name of the category.


{  
   "message":"success",
   "status":"1"   
   "categoryItems":[  
      {  
         "categoryId":8910,
         "categoryName":"Alstroemeria"       
      },
      {  
         "categoryId":8931,
         "categoryName":"Aster"     
      },
      {  
         "categoryId":19860,
         "categoryName":"Aster Lu"
      },
      {  
         "categoryId":8923,
         "categoryName":"Bells of Ireland"
      },
      {  
         "categoryId":8927,
         "categoryName":"Calla"
      },
      {  
         "categoryId":8909,
         "categoryName":"Carnation"
      },
      {  
         "categoryId":8911,
         "categoryName":"Disbuds"
      }
      {  
         "categoryId":8912,
         "categoryName":"Gerbera"
      },
      {  
         "categoryId":8932,
         "categoryName":"Gypsophila"
      },
      {  
         "categoryId":8930,
         "categoryName":"Hipericum"
      },
      {  
         "categoryId":34108,
         "categoryName":"Hydrangea"
      },
      {  
         "categoryId":8913,
         "categoryName":"Lilies"
      },
      {  
         "categoryId":8925,
         "categoryName":"Mini Calla"
      },
      {  
         "categoryId":8914,
         "categoryName":"Minicarn"
      },
      {  
         "categoryId":8915,
         "categoryName":"Pom Button"
      },
      {  
         "categoryId":8929,
         "categoryName":"Rose"
      }
   ]
}