POS365.VN APIs

<back to all web services

ProductGetByCategoryToCart

Requires Authentication
Required permission:Product_Read
The following routes are available for this service:
GET/api/products/getbycategory
ProductGetByCategoryToCart Parameters:
NameParameterData TypeRequiredDescription
CategoryIdquerylongNo
ExcludeSerialqueryboolNo
ExcludeServicequeryboolNo
ExcludeCompositequeryboolNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /api/products/getbycategory HTTP/1.1 
Host: api.pos365.vn 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

[{"OnHand":0,"TotalOnHand":0,"RecentPurchasePrice":0,"RecentPurchasePriceLargeUnit":0,"OnOrder":0,"MinQuantity":0,"MaxQuantity":0,"Cost":0,"PriceByBranch":0,"PriceByBranchLargeUnit":0,"CompareMinQuantity":0,"CompareMaxQuantity":0,"SerialNumber":"String","ExpiryDate":"0001-01-01T00:00:00.0000000Z","ExpireIn":0,"Id":0,"Code":"String","Name":"String","AttributesName":"String","CategoryId":0,"Description":"String","Price":0,"PriceLargeUnit":0,"ProductType":0,"ConversionValue":0,"Unit":"String","LargeUnit":"String","IsSerialNumberTracking":false,"CreatedDate":"0001-01-01T00:00:00.0000000Z","CreatedBy":0,"ModifiedDate":"0001-01-01T00:00:00.0000000Z","ModifiedBy":0,"RetailerId":0,"IsPercentageOfTotalOrder":false,"SplitForSalesOrder":false,"OrderQuickNotes":"String","Printer":"String","Hidden":false,"IsTimer":false,"Coefficient":0,"BonusPoint":0,"ShowOnBranchId":"String","BonusPointForAssistant":0,"BonusPointForAssistant2":0,"BonusPointForAssistant3":0,"PriceConfig":"String","BlockOfTimeToUseService":0,"IsPriceForBlock":false,"Formular":"String","Position":0,"LargeUnitCode":"String","Code2":"String","Code3":"String","Code4":"String","Code5":"String","Category":{"Id":0,"Name":"String","ImageURL":"String","Description":"String","ParentId":0,"RetailerId":0,"CreatedDate":"0001-01-01T00:00:00.0000000Z","CreatedBy":0,"ModifiedDate":"0001-01-01T00:00:00.0000000Z","ModifiedBy":0,"ShowOnBranchId":"String","Position":0,"Parent":{"Id":0,"Name":"String","ImageURL":"String","Description":"String","ParentId":0,"RetailerId":0,"CreatedDate":"0001-01-01T00:00:00.0000000Z","CreatedBy":0,"ModifiedDate":"0001-01-01T00:00:00.0000000Z","ModifiedBy":0,"ShowOnBranchId":"String","Position":0,"Parent":}}}]