Get all Product Masters
Request
- Base URLhttps://openapi.flowaccount.com/v1
- Authnone declared. Required headers: Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
Query current page products item. <br> Example Pattern: <ex>/products?currentPage=1 </ex> <ex>/products?currentPage=1&pageSize=20</ex>
Query products list amount per page. <br>Example Pattern: <ex> /products?pageSize=20 </ex>
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>
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>
Query products name or code. <br>Example Pattern: <ex> /products?searchString=001 product </ex>
Headers
Response
200 response
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.