POST api/POS/DeletePOS

Request Information

URI Parameters

None.

Body Parameters

POSModel
NameDescriptionTypeAdditional 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:57.4865301+07:00",
        "UpdateBy": 1,
        "UpdateTime": "2025-12-11T21:26:57.4865301+07:00",
        "IsActive": true,
        "IsDelete": true
      },
      "ID": "f1c966c0-fe20-4607-b57f-914b47f12cd2",
      "ProductID": 2,
      "Amount": 3,
      "Price": 4.0,
      "Total": 5.0,
      "CreateBy": 6,
      "CreateTime": "2025-12-11T21:26:57.4865301+07:00",
      "UpdateBy": 1,
      "UpdateTime": "2025-12-11T21:26:57.4865301+07:00",
      "IsDelete": true,
      "POS_ID": "7b6e8d9b-191e-46e4-8a74-ed5c467be235"
    },
    {
      "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:57.4865301+07:00",
        "UpdateBy": 1,
        "UpdateTime": "2025-12-11T21:26:57.4865301+07:00",
        "IsActive": true,
        "IsDelete": true
      },
      "ID": "f1c966c0-fe20-4607-b57f-914b47f12cd2",
      "ProductID": 2,
      "Amount": 3,
      "Price": 4.0,
      "Total": 5.0,
      "CreateBy": 6,
      "CreateTime": "2025-12-11T21:26:57.4865301+07:00",
      "UpdateBy": 1,
      "UpdateTime": "2025-12-11T21:26:57.4865301+07:00",
      "IsDelete": true,
      "POS_ID": "7b6e8d9b-191e-46e4-8a74-ed5c467be235"
    }
  ],
  "ID": "c9982d6d-9fe8-4307-94ff-a84143a6ee25",
  "DocNo": "sample string 2",
  "PlaceID": 3,
  "OrderRef": "309db97c-5a38-4eb4-8c24-4cfb267b3db9",
  "Total": 4.0,
  "CreateBy": 5,
  "CreateTime": "2025-12-11T21:26:57.4865301+07:00",
  "UpdateBy": 1,
  "UpdateTime": "2025-12-11T21:26:57.4865301+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:57.4865301+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">c9982d6d-9fe8-4307-94ff-a84143a6ee25</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">309db97c-5a38-4eb4-8c24-4cfb267b3db9</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:57.4865301+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:57.4865301+07:00</CreateTime>
      <ID xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">f1c966c0-fe20-4607-b57f-914b47f12cd2</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">7b6e8d9b-191e-46e4-8a74-ed5c467be235</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:57.4865301+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:57.4865301+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:57.4865301+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:57.4865301+07:00</CreateTime>
      <ID xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">f1c966c0-fe20-4607-b57f-914b47f12cd2</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">7b6e8d9b-191e-46e4-8a74-ed5c467be235</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:57.4865301+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:57.4865301+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:57.4865301+07:00</d4p1:UpdateTime>
      </Product>
    </POSDetailModel>
  </Products>
</POSModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.