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-08-15T07:19:04.6574857+01: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:
<?xml version="1.0" encoding="utf-16"?>
<Sale xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<PaymentMethod>Cash</PaymentMethod>
<SaleDate>2026-08-15T07:19:04.6574857+01:00</SaleDate>
<SaleBranchId>60</SaleBranchId>
<VisitBranchId>0</VisitBranchId>
<TillNo>01</TillNo>
<SaleLineList>
<APISaleLine>
<PLU>10000001</PLU>
<Quantity>1</Quantity>
<Price>2.5</Price>
<IsShippingLine>false</IsShippingLine>
<RefundSaleLineID>0</RefundSaleLineID>
</APISaleLine>
<APISaleLine>
<PLU>10000002</PLU>
<Quantity>2</Quantity>
<Price>5.00</Price>
<IsShippingLine>false</IsShippingLine>
<RefundSaleLineID>0</RefundSaleLineID>
</APISaleLine>
</SaleLineList>
</Sale>
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>