POST api/POS/UpdatePOS
Request Information
URI Parameters
None.
Body Parameters
POSModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Products | Collection of POSDetailModel |
None. |
|
| ID | globally unique identifier |
None. |
|
| DocNo | string |
Required String length: inclusive between 0 and 10 |
|
| PlaceID | integer |
None. |
|
| OrderRef | globally unique identifier |
None. |
|
| Total | decimal number |
None. |
|
| CreateBy | integer |
None. |
|
| CreateTime | date |
None. |
|
| UpdateBy | integer |
None. |
|
| UpdateTime | date |
None. |
|
| IsDelete | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"Products": [
{
"Product": {
"ID": 1,
"Place_ID": 2,
"ProductType_ID": "sample string 3",
"Product_Name": "sample string 4",
"PaymentType": "sample string 5",
"Price": 6.0,
"CreateBy": 7,
"CreateTime": "2025-12-11T21:26:26.3677946+07:00",
"UpdateBy": 1,
"UpdateTime": "2025-12-11T21:26:26.3677946+07:00",
"IsActive": true,
"IsDelete": true
},
"ID": "23069d2e-02c5-4c6c-99d2-9dcc43b8573f",
"ProductID": 2,
"Amount": 3,
"Price": 4.0,
"Total": 5.0,
"CreateBy": 6,
"CreateTime": "2025-12-11T21:26:26.3677946+07:00",
"UpdateBy": 1,
"UpdateTime": "2025-12-11T21:26:26.3677946+07:00",
"IsDelete": true,
"POS_ID": "43193533-5886-406f-8d16-8af4fe426be2"
},
{
"Product": {
"ID": 1,
"Place_ID": 2,
"ProductType_ID": "sample string 3",
"Product_Name": "sample string 4",
"PaymentType": "sample string 5",
"Price": 6.0,
"CreateBy": 7,
"CreateTime": "2025-12-11T21:26:26.3677946+07:00",
"UpdateBy": 1,
"UpdateTime": "2025-12-11T21:26:26.3677946+07:00",
"IsActive": true,
"IsDelete": true
},
"ID": "23069d2e-02c5-4c6c-99d2-9dcc43b8573f",
"ProductID": 2,
"Amount": 3,
"Price": 4.0,
"Total": 5.0,
"CreateBy": 6,
"CreateTime": "2025-12-11T21:26:26.3677946+07:00",
"UpdateBy": 1,
"UpdateTime": "2025-12-11T21:26:26.3677946+07:00",
"IsDelete": true,
"POS_ID": "43193533-5886-406f-8d16-8af4fe426be2"
}
],
"ID": "9fd14f52-a7d2-4353-b41b-3e898e82f72a",
"DocNo": "sample string 2",
"PlaceID": 3,
"OrderRef": "7b3dc2f2-37ef-4fb2-b5cb-b332c57fcb6c",
"Total": 4.0,
"CreateBy": 5,
"CreateTime": "2025-12-11T21:26:26.3677946+07:00",
"UpdateBy": 1,
"UpdateTime": "2025-12-11T21:26:26.3677946+07:00",
"IsDelete": true
}
application/xml, text/xml
Sample:
<POSModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.CustomModel">
<CreateBy xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">5</CreateBy>
<CreateTime xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">2025-12-11T21:26:26.3677946+07:00</CreateTime>
<DocNo xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">sample string 2</DocNo>
<ID xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">9fd14f52-a7d2-4353-b41b-3e898e82f72a</ID>
<IsDelete xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">true</IsDelete>
<OrderRef xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">7b3dc2f2-37ef-4fb2-b5cb-b332c57fcb6c</OrderRef>
<PlaceID xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">3</PlaceID>
<Total xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">4</Total>
<UpdateBy xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">1</UpdateBy>
<UpdateTime xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">2025-12-11T21:26:26.3677946+07:00</UpdateTime>
<Products>
<POSDetailModel>
<Amount xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">3</Amount>
<CreateBy xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">6</CreateBy>
<CreateTime xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">2025-12-11T21:26:26.3677946+07:00</CreateTime>
<ID xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">23069d2e-02c5-4c6c-99d2-9dcc43b8573f</ID>
<IsDelete xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">true</IsDelete>
<POS_ID xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">43193533-5886-406f-8d16-8af4fe426be2</POS_ID>
<Price xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">4</Price>
<ProductID xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">2</ProductID>
<Total xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">5</Total>
<UpdateBy xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">1</UpdateBy>
<UpdateTime xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">2025-12-11T21:26:26.3677946+07:00</UpdateTime>
<Product xmlns:d4p1="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">
<d4p1:CreateBy>7</d4p1:CreateBy>
<d4p1:CreateTime>2025-12-11T21:26:26.3677946+07:00</d4p1:CreateTime>
<d4p1:ID>1</d4p1:ID>
<d4p1:IsActive>true</d4p1:IsActive>
<d4p1:IsDelete>true</d4p1:IsDelete>
<d4p1:PaymentType>sample string 5</d4p1:PaymentType>
<d4p1:Place_ID>2</d4p1:Place_ID>
<d4p1:Price>6</d4p1:Price>
<d4p1:ProductType_ID>sample string 3</d4p1:ProductType_ID>
<d4p1:Product_Name>sample string 4</d4p1:Product_Name>
<d4p1:UpdateBy>1</d4p1:UpdateBy>
<d4p1:UpdateTime>2025-12-11T21:26:26.3677946+07:00</d4p1:UpdateTime>
</Product>
</POSDetailModel>
<POSDetailModel>
<Amount xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">3</Amount>
<CreateBy xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">6</CreateBy>
<CreateTime xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">2025-12-11T21:26:26.3677946+07:00</CreateTime>
<ID xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">23069d2e-02c5-4c6c-99d2-9dcc43b8573f</ID>
<IsDelete xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">true</IsDelete>
<POS_ID xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">43193533-5886-406f-8d16-8af4fe426be2</POS_ID>
<Price xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">4</Price>
<ProductID xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">2</ProductID>
<Total xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">5</Total>
<UpdateBy xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">1</UpdateBy>
<UpdateTime xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">2025-12-11T21:26:26.3677946+07:00</UpdateTime>
<Product xmlns:d4p1="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">
<d4p1:CreateBy>7</d4p1:CreateBy>
<d4p1:CreateTime>2025-12-11T21:26:26.3677946+07:00</d4p1:CreateTime>
<d4p1:ID>1</d4p1:ID>
<d4p1:IsActive>true</d4p1:IsActive>
<d4p1:IsDelete>true</d4p1:IsDelete>
<d4p1:PaymentType>sample string 5</d4p1:PaymentType>
<d4p1:Place_ID>2</d4p1:Place_ID>
<d4p1:Price>6</d4p1:Price>
<d4p1:ProductType_ID>sample string 3</d4p1:ProductType_ID>
<d4p1:Product_Name>sample string 4</d4p1:Product_Name>
<d4p1:UpdateBy>1</d4p1:UpdateBy>
<d4p1:UpdateTime>2025-12-11T21:26:26.3677946+07:00</d4p1:UpdateTime>
</Product>
</POSDetailModel>
</Products>
</POSModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.