POST api/POS/SaveOrder

No documentation available.

Request Information

Parameters

NameDescriptionAdditional information
entity
No documentation available.

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Code": "sample string 2",
  "CustomerId": 1,
  "CreatedBy": 3,
  "CheckoutBy": 4,
  "DeliveredBy": 1,
  "Customer": "sample string 5",
  "OrderDate": "2021-10-27T05:59:46.0281802+02:00",
  "SubTotal": 7.1,
  "DiscountRate": 8.1,
  "DiscountValue": 9.1,
  "TaxRate": 10.1,
  "TaxValue": 11.1,
  "ServiceRate": 12.1,
  "ServiceValue": 13.1,
  "Total": 14.1,
  "PaymentValue": 15.1,
  "Remaining": 16.1,
  "PaymentType": 17,
  "Status": 18,
  "Notes": "sample string 19",
  "TableId": 1,
  "MenuId": 20,
  "Type": 21,
  "OrderDetails": [
    {
      "OrderId": 1,
      "ItemId": 2,
      "Quantity": 3.1,
      "UnitPrice": 4.1,
      "Total": 5.1,
      "ItemName": "sample string 6",
      "Id": 7
    },
    {
      "OrderId": 1,
      "ItemId": 2,
      "Quantity": 3.1,
      "UnitPrice": 4.1,
      "Total": 5.1,
      "ItemName": "sample string 6",
      "Id": 7
    },
    {
      "OrderId": 1,
      "ItemId": 2,
      "Quantity": 3.1,
      "UnitPrice": 4.1,
      "Total": 5.1,
      "ItemName": "sample string 6",
      "Id": 7
    }
  ],
  "EmpId": 22,
  "Direction": "sample string 23",
  "InCT": "sample string 24"
}

application/xml, text/xml

Sample:
<VM_POSOrders xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ERPPlus_MOdel">
  <CheckoutBy>4</CheckoutBy>
  <Code>sample string 2</Code>
  <CreatedBy>3</CreatedBy>
  <Customer>sample string 5</Customer>
  <CustomerId>1</CustomerId>
  <DeliveredBy>1</DeliveredBy>
  <Direction>sample string 23</Direction>
  <DiscountRate>8.1</DiscountRate>
  <DiscountValue>9.1</DiscountValue>
  <EmpId>22</EmpId>
  <Id>1</Id>
  <InCT>sample string 24</InCT>
  <MenuId>20</MenuId>
  <Notes>sample string 19</Notes>
  <OrderDate>2021-10-27T05:59:46.0281802+02:00</OrderDate>
  <OrderDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/ERPPlus_MOdel.Model">
    <d2p1:POS_OrderDetails>
      <d2p1:Id>7</d2p1:Id>
      <d2p1:ItemId>2</d2p1:ItemId>
      <d2p1:ItemName>sample string 6</d2p1:ItemName>
      <d2p1:OrderId>1</d2p1:OrderId>
      <d2p1:Quantity>3.1</d2p1:Quantity>
      <d2p1:Total>5.1</d2p1:Total>
      <d2p1:UnitPrice>4.1</d2p1:UnitPrice>
    </d2p1:POS_OrderDetails>
    <d2p1:POS_OrderDetails>
      <d2p1:Id>7</d2p1:Id>
      <d2p1:ItemId>2</d2p1:ItemId>
      <d2p1:ItemName>sample string 6</d2p1:ItemName>
      <d2p1:OrderId>1</d2p1:OrderId>
      <d2p1:Quantity>3.1</d2p1:Quantity>
      <d2p1:Total>5.1</d2p1:Total>
      <d2p1:UnitPrice>4.1</d2p1:UnitPrice>
    </d2p1:POS_OrderDetails>
    <d2p1:POS_OrderDetails>
      <d2p1:Id>7</d2p1:Id>
      <d2p1:ItemId>2</d2p1:ItemId>
      <d2p1:ItemName>sample string 6</d2p1:ItemName>
      <d2p1:OrderId>1</d2p1:OrderId>
      <d2p1:Quantity>3.1</d2p1:Quantity>
      <d2p1:Total>5.1</d2p1:Total>
      <d2p1:UnitPrice>4.1</d2p1:UnitPrice>
    </d2p1:POS_OrderDetails>
  </OrderDetails>
  <PaymentType>17</PaymentType>
  <PaymentValue>15.1</PaymentValue>
  <Remaining>16.1</Remaining>
  <ServiceRate>12.1</ServiceRate>
  <ServiceValue>13.1</ServiceValue>
  <Status>18</Status>
  <SubTotal>7.1</SubTotal>
  <TableId>1</TableId>
  <TaxRate>10.1</TaxRate>
  <TaxValue>11.1</TaxValue>
  <Total>14.1</Total>
  <Type>21</Type>
</VM_POSOrders>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'VM_POSOrders'.

Response Information

No documentation available.

Response body formats

application/json, text/json

Sample:
{
  "Result": true,
  "ErrorMessage": "sample string 2"
}

application/xml, text/xml

Sample:
<GeneralErrors xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ERP_Plus">
  <ErrorMessage>sample string 2</ErrorMessage>
  <Result>true</Result>
</GeneralErrors>