POS365.VN APIs

<back to all web services

ServeAdd

Requires Authentication
The following routes are available for this service:
POST/api/serve
ServeAdd Parameters:
NameParameterData TypeRequiredDescription
ServeEntitiesbodyList<RoomOrder>No
RoomOrder Parameters:
NameParameterData TypeRequiredDescription
RowKeyformGuidNo
PartitionKeyformstringNo
RoomIdformlongNo
RoomNameformstringNo
PositionformstringNo
ProductIdformlongNo
NameformstringNo
QuantityformdoubleNo
Servebyformlong?No
ServebyNameformstringNo
DescriptionformstringNo
PrinterformstringNo
SecondPrinterformstringNo
Printer3formstringNo
Printer4formstringNo
Printer5formstringNo
ToppingformstringNo
TotalToppingformdouble?No
CreatedDateformDateTimeNo
ApprovedformboolNo
IsLargeUnitformbool?No
PrintOnlyformboolNo
OrderCodeformstringNo
ItemLineIdformstringNo
UnitformstringNo
LargeUnitformstringNo
PriceformdecimalNo
PrintedformboolNo
IsQrOrderPayFirstformboolNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /api/serve HTTP/1.1 
Host: api.pos365.vn 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<ServeAdd xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/POS.Services">
  <ServeEntities xmlns:d2p1="http://schemas.datacontract.org/2004/07/POS.Data">
    <d2p1:RoomOrder>
      <d2p1:Approved>false</d2p1:Approved>
      <d2p1:CreatedDate>0001-01-01T00:00:00</d2p1:CreatedDate>
      <d2p1:Description>String</d2p1:Description>
      <d2p1:IsLargeUnit>false</d2p1:IsLargeUnit>
      <d2p1:IsQrOrderPayFirst>false</d2p1:IsQrOrderPayFirst>
      <d2p1:ItemLineId>String</d2p1:ItemLineId>
      <d2p1:LargeUnit>String</d2p1:LargeUnit>
      <d2p1:Name>String</d2p1:Name>
      <d2p1:OrderCode>String</d2p1:OrderCode>
      <d2p1:PartitionKey>String</d2p1:PartitionKey>
      <d2p1:Position>String</d2p1:Position>
      <d2p1:Price>0</d2p1:Price>
      <d2p1:PrintOnly>false</d2p1:PrintOnly>
      <d2p1:Printed>false</d2p1:Printed>
      <d2p1:Printer>String</d2p1:Printer>
      <d2p1:Printer3>String</d2p1:Printer3>
      <d2p1:Printer4>String</d2p1:Printer4>
      <d2p1:Printer5>String</d2p1:Printer5>
      <d2p1:ProductId>0</d2p1:ProductId>
      <d2p1:Quantity>0</d2p1:Quantity>
      <d2p1:RoomId>0</d2p1:RoomId>
      <d2p1:RoomName>String</d2p1:RoomName>
      <d2p1:RowKey>00000000-0000-0000-0000-000000000000</d2p1:RowKey>
      <d2p1:SecondPrinter>String</d2p1:SecondPrinter>
      <d2p1:Serveby>0</d2p1:Serveby>
      <d2p1:ServebyName>String</d2p1:ServebyName>
      <d2p1:Topping>String</d2p1:Topping>
      <d2p1:TotalTopping>0</d2p1:TotalTopping>
      <d2p1:Unit>String</d2p1:Unit>
    </d2p1:RoomOrder>
  </ServeEntities>
</ServeAdd>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<z:anyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" />