Required permission: | CustomerPurchaseHistoryPOS-Enquiry.GET |
GET | /Customers/PurchaseHistoryPOS/{AcCustomerID} | Get purchase history records for a given Customer ID | Purchase history included all databases (if configured any) Cash Sales |
---|
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
AcCustomerID | path | string | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
CustomerPurchaseHistoryPOS | form | List<CustomerPurchaseHistoryPOS> | No | |
ResponseStatus | form | ResponseStatus | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
DocumentNo | form | string | No | Document Number |
AcLocationID | form | string | No | Location ID |
AcLocationDesc | form | string | No | Location Description |
AcSalesmanID | form | string | No | Salesman ID |
AcSalesmanName | form | string | No | Salesman Name |
AcSalesmanID_Item | form | string | No | Salesman ID (Item Level) |
AcSalesmanName_Item | form | string | No | Salesman Name (Item Level) |
DocumentDate | form | DateTime | No | Document Date |
AcStockID | form | string | No | Stock ID |
AcStockUOMID | form | string | No | Stock UOM ID |
ItemStockBarcode | form | string | No | Barcode |
ItemRemark1 | form | string | No | Item Remark 1 |
StockDescription1 | form | string | No | Stock Description 1 |
StockDescription2 | form | string | No | Stock Description 2 |
ItemQuantity | form | decimal | No | Quantity |
ItemUnitPrice | form | decimal | No | Unit Price |
ItemGrossTotal | form | decimal | No | Gross Total. Unit Price * Quantity |
ItemDiscountAmount | form | decimal | No | Item Discount Amount |
ItemTotalPrice | form | decimal | No | Item Total Price. Gross Total - Discount |
ItemPriceWithGST | form | decimal | No | Item Unit Price (with Tax) |
ItemDiscountAmountWithGST | form | decimal | No | Discount Amount (with Tax) |
ItemGSTAmount | form | decimal | No | Tax Amount |
CreateBy | form | string | No | Create By |
DocumentTime | form | DateTime | No | Document Time |
SourceDBName | form | string | No | Source DB Name for the transaction |
IsStockDiscontinued | form | string | No | Is Stock discontinued? Y/N |
StockDiscontinuedCreateBy | form | string | No | Stock discontinued create by. |
StockDiscontinuedCreateDate | form | DateTime | No | Stock discontinued create date. |
StockDiscontinuedAcLocationID | form | string | No | Stock discontinued location ID. |
StockDiscontinuedSourceDBName | form | string | No | Stock discontinued source DB name. |
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
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /Customers/PurchaseHistoryPOS/{AcCustomerID} HTTP/1.1 Host: snr2u.com Accept: application/json
HTTP/1.1 200 OK Content-Type: application/json Content-Length: length {"CustomerPurchaseHistoryPOS":[{"DocumentNo":"String","AcLocationID":"String","AcLocationDesc":"String","AcSalesmanID":"String","AcSalesmanName":"String","AcSalesmanID_Item":"String","AcSalesmanName_Item":"String","DocumentDate":"\/Date(-62135596800000-0000)\/","AcStockID":"String","AcStockUOMID":"String","ItemStockBarcode":"String","ItemRemark1":"String","StockDescription1":"String","StockDescription2":"String","ItemQuantity":0,"ItemUnitPrice":0,"ItemGrossTotal":0,"ItemDiscountAmount":0,"ItemTotalPrice":0,"ItemPriceWithGST":0,"ItemDiscountAmountWithGST":0,"ItemGSTAmount":0,"CreateBy":"String","DocumentTime":"\/Date(-62135596800000-0000)\/","SourceDBName":"String","IsStockDiscontinued":"String","StockDiscontinuedCreateBy":"String","StockDiscontinuedCreateDate":"\/Date(-62135596800000-0000)\/","StockDiscontinuedAcLocationID":"String","StockDiscontinuedSourceDBName":"String"}],"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}