POST api/POS/CreatePOS
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:30:02.8294203+07:00",
"UpdateBy": 1,
"UpdateTime": "2025-12-11T21:30:02.8294203+07:00",
"IsActive": true,
"IsDelete": true
},
"ID": "e01ef4e8-6f81-425a-9617-3b0f394518eb",
"ProductID": 2,
"Amount": 3,
"Price": 4.0,
"Total": 5.0,
"CreateBy": 6,
"CreateTime": "2025-12-11T21:30:02.8294203+07:00",
"UpdateBy": 1,
"UpdateTime": "2025-12-11T21:30:02.8294203+07:00",
"IsDelete": true,
"POS_ID": "297425b7-a274-4b32-8729-54e0f4fb75fc"
},
{
"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:30:02.8294203+07:00",
"UpdateBy": 1,
"UpdateTime": "2025-12-11T21:30:02.8294203+07:00",
"IsActive": true,
"IsDelete": true
},
"ID": "e01ef4e8-6f81-425a-9617-3b0f394518eb",
"ProductID": 2,
"Amount": 3,
"Price": 4.0,
"Total": 5.0,
"CreateBy": 6,
"CreateTime": "2025-12-11T21:30:02.8294203+07:00",
"UpdateBy": 1,
"UpdateTime": "2025-12-11T21:30:02.8294203+07:00",
"IsDelete": true,
"POS_ID": "297425b7-a274-4b32-8729-54e0f4fb75fc"
}
],
"ID": "aafa3042-cc2d-4bd4-9271-518927264ee5",
"DocNo": "sample string 2",
"PlaceID": 3,
"OrderRef": "bbe30907-045d-4cc1-a283-ea2a480da5b1",
"Total": 4.0,
"CreateBy": 5,
"CreateTime": "2025-12-11T21:30:02.8294203+07:00",
"UpdateBy": 1,
"UpdateTime": "2025-12-11T21:30:02.8294203+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:30:02.8294203+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">aafa3042-cc2d-4bd4-9271-518927264ee5</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">bbe30907-045d-4cc1-a283-ea2a480da5b1</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:30:02.8294203+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:30:02.8294203+07:00</CreateTime>
<ID xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">e01ef4e8-6f81-425a-9617-3b0f394518eb</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">297425b7-a274-4b32-8729-54e0f4fb75fc</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:30:02.8294203+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:30:02.8294203+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:30:02.8294203+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:30:02.8294203+07:00</CreateTime>
<ID xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">e01ef4e8-6f81-425a-9617-3b0f394518eb</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">297425b7-a274-4b32-8729-54e0f4fb75fc</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:30:02.8294203+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:30:02.8294203+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:30:02.8294203+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.