Product Master

Get all Product Masters

get/product-masters

Request

Query parameters

currentPageinteger

Query current page products item. <br> Example Pattern: <ex>/products?currentPage=1 </ex> <ex>/products?currentPage=1&pageSize=20</ex>

pageSizeinteger

Query products list amount per page. <br>Example Pattern: <ex> /products?pageSize=20 </ex>

sortBystring

Product Sort By (Encode) <br> name: <br> name = Product master name <br> type = Product master type <br> productCode = Product master Code / SKU <br> categoryId = Product master category <br> sortOrder: <br> asc = Ascending <br> desc = Descending <br> Example Pattern: <ex> /products?sortBy=[{'name':'productCode','sortOrder':'asc'}]</ex>

filterstring

Product Filter (Encode) <br> columnName: <br> name = Product master name <br> type = Product master type <br> productCode = Product master Code / SKU <br> categoryId = Product master category <br> Example Pattern: <ex> /products?filter=[{'columnName':'categoryId','columnValue':'517727','columnPredicateOperator':'And'}]</ex>

searchStringstring

Query products name or code. <br>Example Pattern: <ex> /products?searchString=001 product </ex>

Headers

Authorizationstring required

Response

200 response

statusboolean

action success

messagestring

error message

codeinteger

error code

Example response

{
  "status": true,
  "data": {
    "total": 10,
    "currentPage": 1,
    "list": [
      {
        "id": 12345,
        "type": 1,
        "name": "Product Master Service",
        "categoryId": 10,
        "categoryName": "Description Product Master Service",
        "sellSettings": {
          "vatType": 1,
          "description": "Sell vat type settings description"
        },
        "buySettings": {
          "vatType": 7
        },
        "mainProductId": 456,
        "mainUnitId": 789,
        "mainUnitName": "ครั้ง",
        "productLists": [
          {
            "id": 456,
            "unitId": 789,
            "unitName": "ครั้ง",
            "isMainProduct": true,
            "sellPrice": 9345.794393,
            "sellPriceWithVat": 10000,
            "barcode": "SERVICE",
            "convertRatio": 1
          }
        ]
      }
    ]
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.