API Docs | ProductSubCategory | Tajima Software Solutions Inc.

With the /productSubCategory endpoints user can manage the Product Sub Categories.

GET /api/ProductSubCategory/GetProductSubCategories Get product sub categories information.
Request Example
    /api/ProductSubCategory/GetProductSubCategories?language=English
            language parameter is optional
                
Response Example
    Returns a list of product sub categories for the specified language if given, else all
    [
      {
        "Name": "string",
        "Language": "string",
        "GroupingBinSizeFactor": 0,
        "ProductCategoryTypeName": "string",
        "CompanyId": 0,
        "Id": 0
      }
    ]
                
POST /api/ProductSubCategory/Create
Model Request Example
    {
      "Name": "string",
      "Language": "string",
      "GroupingBinSizeFactor": 0,
      "ProductCategoryTypeName": "string"    [this, if provided, will set the category type only if one exists with that name on the database]
    }   
                
Response Example
    If the operation is successful the response will be empty with status code 201
    Otherwise an error with code and message will be returned with status code 409
                
PUT /api/ProductSubCategory/Update Update a product sub category
Request Example
    /api/ProductSubCategory/Update?Name=ProductCategoryName
            Name parameter is required in order to specify the Product Sub Category to update
                
Model Request Example
    Only provided non null attributes will be updated
    {
      "Name": "string",
      "Language": "string",
      "GroupingBinSizeFactor": 0,
      "ProductCategoryTypeName": "string"    [this, if provided, will set the category type only if one exists with that name on the database]
    }
                
Response Example
    If the operation is successful the response will be empty with status code 200
    Otherwise an error with code and message will be returned with status code 409
                
DELETE /api/ProductSubCategory/Delete Remove a product sub category
Request Example
    /api/ProductSubCategory/Delete?Name=ProductCategoryName
            Name parameter is required in order to specify the Product Sub Category to delete
                
Response Example
    If the operation is successful the response will be empty with status code 200
    Otherwise an error with code and message will be returned with status code 409