POST api/Sales/ProcessSale
Update an existing Product based on the PLU or creates a new Product if not found.
Request Information
URI Parameters
None.
Body Parameters
The sale object to be processed.
APISale| Name | Description | Type | Additional information |
|---|---|---|---|
| PaymentMethod | string |
None. |
|
| SaleDate | date |
None. |
|
| SaleBranchId | integer |
None. |
|
| VisitBranchId | integer |
None. |
|
| TillNo | string |
None. |
|
| Customer | APICustomer |
None. |
|
| SaleLineList | Collection of Object |
None. |
Request Formats
application/json, text/json
Sample:
{"PaymentMethod":"Cash","SaleDate":"2026-02-18T18:22:22.5776531+00:00","SaleBranchId":60,"VisitBranchId":0,"TillNo":"01","Customer":null,"SaleLineList":[{"PLU":"10000001","Quantity":1,"Price":2.5,"IsShippingLine":false,"RefundSaleLineID":0,"DiscountSaleLine":null},{"PLU":"10000002","Quantity":2,"Price":5.00,"IsShippingLine":false,"RefundSaleLineID":0,"DiscountSaleLine":null}]}
application/xml, text/xml
Sample:
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |
Response Formats
application/json, text/json
Sample:
{"Result":"Sale Successful","Message":"Sale was successful processed under sale ID 12345678 for total amount 12.50"}
application/xml, text/xml
Sample:
<?xml version="1.0" encoding="utf-16"?> <InformationResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <Result>Sale Successful</Result> <Message>Sale was successful processed under sale ID 12345678 for total amount 12.50</Message> </InformationResponse>