Authorization: Bearer ********************
{
"take": 0, //จำนวน Product
"status": [
1
] //สถานะของสินค้า [0 = inactive , 1 = activite]
}
curl --location --request POST 'https://api.gofive.co.th/v2/Products/GetProduct' \
--header 'Ocp-Apim-Subscription-Key: <Your-Subscription-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"take": 0, //จำนวน Product
"status": [
1
] //สถานะของสินค้า [0 = inactive , 1 = activite]
}'
{
"status": {
"code": "1000",
"description": "Success"
},
"data": [
{
"productCode": "123123",
"productBarcode": "",
"productName": "Phone 2GB",
"category": "Gorup Product",
"cost": 50,
"prices": [
{
"priceTierName": "Normal Price",
"regularPrice": 5000,
"salePrice": 2500,
"pricingTierId": 112,
"vatTaxValue": 7
}
],
"productUnitName": "เครื่อง",
"productTag": [],
"productImage": [],
"trackInventory": true,
"lowStockAlert": 0,
"useWarranty": false,
"timeWarrantyValue": 1,
"timeWarrantyUnit": "Y",
"visibility": true,
"active": true,
"productVariant": []
}
]
}