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 .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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/json
Content-Type: application/json
Content-Length: length

{"ServeEntities":[{"RowKey":"00000000000000000000000000000000","PartitionKey":"String","RoomId":0,"RoomName":"String","Position":"String","ProductId":0,"Name":"String","Quantity":0,"Serveby":0,"ServebyName":"String","Description":"String","Printer":"String","SecondPrinter":"String","Printer3":"String","Printer4":"String","Printer5":"String","Topping":"String","TotalTopping":0,"CreatedDate":"0001-01-01T00:00:00.0000000Z","Approved":false,"IsLargeUnit":false,"PrintOnly":false,"OrderCode":"String","ItemLineId":"String","Unit":"String","LargeUnit":"String","Price":0,"Printed":false,"IsQrOrderPayFirst":false}]}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{}