POS365.VN APIs

<back to all web services

RoomSave

Requires Authentication
Requires any of the permissions:Room_Update, Room_Create
The following routes are available for this service:
POST/api/rooms
RoomSave Parameters:
NameParameterData TypeRequiredDescription
RoombodyRoomNo
Room Parameters:
NameParameterData TypeRequiredDescription
IdformlongNo
NameformstringNo
PositionformintNo
BranchIdformintNo
RetailerIdformintNo
CreatedDateformDateTimeNo
CreatedByformlongNo
ModifiedByformlong?No
ModifiedDateformDateTime?No
DescriptionformstringNo
ProductIdformlong?No
RoomGroupIdformlong?No
PrinterformstringNo
QRCodeformstringNo
ConfigformstringNo
ProductformProductNo
RoomGroupformRoomGroupNo
Product Parameters:
NameParameterData TypeRequiredDescription
IdformlongNo
CodeformstringNo
NameformstringNo
AttributesNameformstringNo
CategoryIdformlong?No
DescriptionformstringNo
PriceformdecimalNo
PriceLargeUnitformdecimalNo
ProductTypeformbyteNo
ConversionValueformdoubleNo
UnitformstringNo
LargeUnitformstringNo
IsSerialNumberTrackingformboolNo
CreatedDateformDateTimeNo
CreatedByformlongNo
ModifiedDateformDateTime?No
ModifiedByformlong?No
RetailerIdformintNo
IsPercentageOfTotalOrderformboolNo
SplitForSalesOrderformboolNo
OrderQuickNotesformstringNo
PrinterformstringNo
Hiddenformbool?No
IsTimerformbool?No
Coefficientformdouble?No
BonusPointformdoubleNo
ShowOnBranchIdformstringNo
BonusPointForAssistantformdoubleNo
BonusPointForAssistant2formdoubleNo
BonusPointForAssistant3formdoubleNo
PriceConfigformstringNo
BlockOfTimeToUseServiceformintNo
IsPriceForBlockformboolNo
FormularformstringNo
PositionformlongNo
LargeUnitCodeformstringNo
Code2formstringNo
Code3formstringNo
Code4formstringNo
Code5formstringNo
CategoryformCategoryNo
CompositeItemProductsformICollection<CompositeItem>No
ProductAttributesformICollection<ProductAttribute>No
ProductImagesformICollection<ProductImage>No
Category Parameters:
NameParameterData TypeRequiredDescription
IdformlongNo
NameformstringNo
ImageURLformstringNo
DescriptionformstringNo
ParentIdformlong?No
RetailerIdformintNo
CreatedDateformDateTimeNo
CreatedByformlongNo
ModifiedDateformDateTime?No
ModifiedByformlong?No
ShowOnBranchIdformstringNo
PositionformlongNo
ParentformCategoryNo
CompositeItem Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
ProductIdformlongNo
ItemIdformlongNo
QuantityformdoubleNo
RetailerIdformintNo
QuantityLargeUnitformdoubleNo
ItemformProductNo
ProductAttribute Parameters:
NameParameterData TypeRequiredDescription
IdformlongNo
ProductIdformlongNo
AttributeNameformstringNo
AttributeValueformstringNo
RetailerIdformintNo
ProductImage Parameters:
NameParameterData TypeRequiredDescription
IdformlongNo
ProductIdformlongNo
ImageURLformstringNo
ThumbnailUrlformstringNo
IsDefaultformboolNo
RoomGroup Parameters:
NameParameterData TypeRequiredDescription
IdformlongNo
NameformstringNo
CreatedDateformDateTimeNo
CreatedByformlongNo
ModifiedDateformDateTime?No
ModifiedByformlong?No
BranchIdformintNo
RetailerIdformintNo

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/rooms HTTP/1.1 
Host: api.pos365.vn 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"Room":{"Id":0,"Name":"String","Position":0,"BranchId":0,"RetailerId":0,"CreatedDate":"0001-01-01T00:00:00.0000000Z","CreatedBy":0,"ModifiedBy":0,"ModifiedDate":"0001-01-01T00:00:00.0000000Z","Description":"String","ProductId":0,"RoomGroupId":0,"Printer":"String","QRCode":"String","Config":"String","Product":{"Id":0,"Code":"String","Name":"String","AttributesName":"String","CategoryId":0,"Description":"String","Price":0,"PriceLargeUnit":0,"ProductType":0,"ConversionValue":0,"Unit":"String","LargeUnit":"String","IsSerialNumberTracking":false,"CreatedDate":"0001-01-01T00:00:00.0000000Z","CreatedBy":0,"ModifiedDate":"0001-01-01T00:00:00.0000000Z","ModifiedBy":0,"RetailerId":0,"IsPercentageOfTotalOrder":false,"SplitForSalesOrder":false,"OrderQuickNotes":"String","Printer":"String","Hidden":false,"IsTimer":false,"Coefficient":0,"BonusPoint":0,"ShowOnBranchId":"String","BonusPointForAssistant":0,"BonusPointForAssistant2":0,"BonusPointForAssistant3":0,"PriceConfig":"String","BlockOfTimeToUseService":0,"IsPriceForBlock":false,"Formular":"String","Position":0,"LargeUnitCode":"String","Code2":"String","Code3":"String","Code4":"String","Code5":"String","Category":{"Id":0,"Name":"String","ImageURL":"String","Description":"String","ParentId":0,"RetailerId":0,"CreatedDate":"0001-01-01T00:00:00.0000000Z","CreatedBy":0,"ModifiedDate":"0001-01-01T00:00:00.0000000Z","ModifiedBy":0,"ShowOnBranchId":"String","Position":0,"Parent":{"Id":0,"Name":"String","ImageURL":"String","Description":"String","ParentId":0,"RetailerId":0,"CreatedDate":"0001-01-01T00:00:00.0000000Z","CreatedBy":0,"ModifiedDate":"0001-01-01T00:00:00.0000000Z","ModifiedBy":0,"ShowOnBranchId":"String","Position":0,"Parent":{"Id":0,"Name":"String","ImageURL":"String","Description":"String","ParentId":0,"RetailerId":0,"CreatedDate":"0001-01-01T00:00:00.0000000Z","CreatedBy":0,"ModifiedDate":"0001-01-01T00:00:00.0000000Z","ModifiedBy":0,"ShowOnBranchId":"String","Position":0}}}},"RoomGroup":{"Id":0,"Name":"String","CreatedDate":"0001-01-01T00:00:00.0000000Z","CreatedBy":0,"ModifiedDate":"0001-01-01T00:00:00.0000000Z","ModifiedBy":0,"BranchId":0,"RetailerId":0}}}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{}