POS365.VN APIs

<back to all web services

BookingGet

Requires Authentication
The following routes are available for this service:
GET/api/bookings/{Id}
BookingGet Parameters:
NameParameterData TypeRequiredDescription
IdpathlongNo
Includesquerystring[]No
Booking Parameters:
NameParameterData TypeRequiredDescription
IdformlongNo
CodeformstringNo
DescriptionformstringNo
RetailerIdformintNo
BranchIdformintNo
CreatedByformlongNo
CreatedDateformDateTimeNo
ModifiedByformlong?No
ModifiedDateformDateTime?No
BookingDateformDateTimeNo
HoursformintNo
RoomIdformlong?No
AccountIdformint?No
PartnerIdformlong?No
Depositformdecimal?No
ChildCustomerNumberformintNo
StateformintNo
StatusformintNo
CancelReasonformstringNo
OrderDetailsformstringNo
CustomerNumberformintNo
PhoneformstringNo
RoomformRoomNo
AccountformAccountNo
PartnerformPartnerNo
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
Account Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
NameformstringNo
DescriptionformstringNo
RetailerIdformintNo
CreatedByformlongNo
CreatedDateformDateTimeNo
ModifiedByformlong?No
ModifiedDateformDateTime?No
Partner Parameters:
NameParameterData TypeRequiredDescription
PlainPasswordformstringNo
IdformlongNo
CodeformstringNo
NameformstringNo
AddressformstringNo
PhoneformstringNo
DOBformDateTime?No
EmailformstringNo
TypeformbyteNo
GenderformbyteNo
TaxCodeformstringNo
TotalDebtformdecimalNo
LoyaltyformdecimalNo
DescriptionformstringNo
CreatedByformlongNo
CreatedDateformDateTimeNo
ModifiedByformlong?No
ModifiedDateformDateTime?No
RetailerIdformintNo
ImageformstringNo
IdentifyNoformstringNo
LeadOwnerIdformlong?No
CompanyformstringNo
DepartmentformstringNo
PasswordformstringNo
ProvinceformstringNo
PointformlongNo
ShippingAddressformstringNo
Phone2formstringNo
MemberJoinDateformDateTime?No
TransactionvalueformdecimalNo
LeadOwnerformUserNo
PartnerGroupMembersformICollection<PartnerGroupMember>No
User Parameters:
NameParameterData TypeRequiredDescription
PlainPasswordformstringNo
IdformlongNo
EmailformstringNo
UserNameformstringNo
PasswordformstringNo
NameformstringNo
DOBformDateTime?No
AddressformstringNo
PhoneformstringNo
CreatedDateformDateTimeNo
IsActiveformboolNo
IsAdminformboolNo
RetailerIdformintNo
CreatedByformlongNo
AdminGroupformbyteNo
ManagedByformlong?No
IdentityCardNumberformstringNo
ManagedByNavigationformUserNo
PartnerGroupMember Parameters:
NameParameterData TypeRequiredDescription
IdformlongNo
PartnerIdformlongNo
GroupIdformlongNo

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.

GET /api/bookings/{Id} HTTP/1.1 
Host: api.pos365.vn 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<Booking xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/POS.Data">
  <Account>
    <AccountingTransactions i:nil="true" />
    <CreatedBy>0</CreatedBy>
    <CreatedDate>0001-01-01T00:00:00</CreatedDate>
    <Description>String</Description>
    <Id>0</Id>
    <ModifiedBy>0</ModifiedBy>
    <ModifiedDate>0001-01-01T00:00:00</ModifiedDate>
    <Name>String</Name>
    <Orders i:nil="true" />
    <PurchaseOrderReturns i:nil="true" />
    <PurchaseOrders i:nil="true" />
    <RetailerId>0</RetailerId>
    <Returns i:nil="true" />
  </Account>
  <AccountId>0</AccountId>
  <BookingDate>0001-01-01T00:00:00</BookingDate>
  <BranchId>0</BranchId>
  <CancelReason>String</CancelReason>
  <ChildCustomerNumber>0</ChildCustomerNumber>
  <Code>String</Code>
  <CreatedBy>0</CreatedBy>
  <CreatedDate>0001-01-01T00:00:00</CreatedDate>
  <CustomerNumber>0</CustomerNumber>
  <Deposit>0</Deposit>
  <Description>String</Description>
  <Hours>0</Hours>
  <Id>0</Id>
  <ModifiedBy>0</ModifiedBy>
  <ModifiedDate>0001-01-01T00:00:00</ModifiedDate>
  <OrderDetails>String</OrderDetails>
  <Partner>
    <AccountingTransactions i:nil="true" />
    <Address>String</Address>
    <Code>String</Code>
    <Company>String</Company>
    <CreatedBy>0</CreatedBy>
    <CreatedDate>0001-01-01T00:00:00</CreatedDate>
    <DOB>0001-01-01T00:00:00</DOB>
    <DeliveryOrderDeliveryByNavigations i:nil="true" />
    <DeliveryOrderPartners i:nil="true" />
    <Department>String</Department>
    <Description>String</Description>
    <Email>String</Email>
    <Gender>0</Gender>
    <Id>0</Id>
    <IdentifyNo>String</IdentifyNo>
    <Image>String</Image>
    <LeadOwner>
      <AccountingTransactions i:nil="true" />
      <Address>String</Address>
      <AdminGroup>0</AdminGroup>
      <CdKeys i:nil="true" />
      <CreatedBy>0</CreatedBy>
      <CreatedDate>0001-01-01T00:00:00</CreatedDate>
      <DOB>0001-01-01T00:00:00</DOB>
      <Email>String</Email>
      <Id>0</Id>
      <IdentityCardNumber>String</IdentityCardNumber>
      <InverseManagedByNavigation i:nil="true" />
      <IsActive>false</IsActive>
      <IsAdmin>false</IsAdmin>
      <ManagedBy>0</ManagedBy>
      <ManagedByNavigation>
        <AccountingTransactions i:nil="true" />
        <Address>String</Address>
        <AdminGroup>0</AdminGroup>
        <CdKeys i:nil="true" />
        <CreatedBy>0</CreatedBy>
        <CreatedDate>0001-01-01T00:00:00</CreatedDate>
        <DOB>0001-01-01T00:00:00</DOB>
        <Email>String</Email>
        <Id>0</Id>
        <IdentityCardNumber>String</IdentityCardNumber>
        <InverseManagedByNavigation i:nil="true" />
        <IsActive>false</IsActive>
        <IsAdmin>false</IsAdmin>
        <ManagedBy>0</ManagedBy>
        <ManagedByNavigation>
          <AccountingTransactions i:nil="true" />
          <Address>String</Address>
          <AdminGroup>0</AdminGroup>
          <CdKeys i:nil="true" />
          <CreatedBy>0</CreatedBy>
          <CreatedDate>0001-01-01T00:00:00</CreatedDate>
          <DOB>0001-01-01T00:00:00</DOB>
          <Email>String</Email>
          <Id>0</Id>
          <IdentityCardNumber>String</IdentityCardNumber>
          <InverseManagedByNavigation i:nil="true" />
          <IsActive>false</IsActive>
          <IsAdmin>false</IsAdmin>
          <ManagedBy>0</ManagedBy>
          <ManagedByNavigation i:nil="true" />
          <Name>String</Name>
          <ObjectAccesses i:nil="true" />
          <Partners i:nil="true" />
          <Password>String</Password>
          <Phone>String</Phone>
          <PlainPassword>String</PlainPassword>
          <RetailerId>0</RetailerId>
          <UserName>String</UserName>
        </ManagedByNavigation>
        <Name>String</Name>
        <ObjectAccesses i:nil="true" />
        <Partners i:nil="true" />
        <Password>String</Password>
        <Phone>String</Phone>
        <PlainPassword>String</PlainPassword>
        <RetailerId>0</RetailerId>
        <UserName>String</UserName>
      </ManagedByNavigation>
      <Name>String</Name>
      <ObjectAccesses i:nil="true" />
      <Partners i:nil="true" />
      <Password>String</Password>
      <Phone>String</Phone>
      <PlainPassword>String</PlainPassword>
      <RetailerId>0</RetailerId>
      <UserName>String</UserName>
    </LeadOwner>
    <LeadOwnerId>0</LeadOwnerId>
    <Loyalty>0</Loyalty>
    <MemberJoinDate>0001-01-01T00:00:00</MemberJoinDate>
    <ModifiedBy>0</ModifiedBy>
    <ModifiedDate>0001-01-01T00:00:00</ModifiedDate>
    <Name>String</Name>
    <Orders i:nil="true" />
    <PartnerBranches i:nil="true" />
    <PartnerGroupMembers i:nil="true" />
    <Password>String</Password>
    <Phone>String</Phone>
    <Phone2>String</Phone2>
    <PlainPassword>String</PlainPassword>
    <Point>0</Point>
    <PointUses i:nil="true" />
    <ProductPartners i:nil="true" />
    <Province>String</Province>
    <PurchaseOrderReturns i:nil="true" />
    <PurchaseOrders i:nil="true" />
    <RetailerId>0</RetailerId>
    <Returns i:nil="true" />
    <ShippingAddress>String</ShippingAddress>
    <TaxCode>String</TaxCode>
    <TotalDebt>0</TotalDebt>
    <Transactionvalue>0</Transactionvalue>
    <Type>0</Type>
  </Partner>
  <PartnerId>0</PartnerId>
  <Phone>String</Phone>
  <RetailerId>0</RetailerId>
  <Room>
    <BranchId>0</BranchId>
    <Config>String</Config>
    <CreatedBy>0</CreatedBy>
    <CreatedDate>0001-01-01T00:00:00</CreatedDate>
    <Description>String</Description>
    <Id>0</Id>
    <ModifiedBy>0</ModifiedBy>
    <ModifiedDate>0001-01-01T00:00:00</ModifiedDate>
    <Name>String</Name>
    <Orders i:nil="true" />
    <Position>0</Position>
    <Printer>String</Printer>
    <Product>
      <AttributesName>String</AttributesName>
      <BlockOfTimeToUseService>0</BlockOfTimeToUseService>
      <BonusPoint>0</BonusPoint>
      <BonusPointForAssistant>0</BonusPointForAssistant>
      <BonusPointForAssistant2>0</BonusPointForAssistant2>
      <BonusPointForAssistant3>0</BonusPointForAssistant3>
      <Category>
        <CreatedBy>0</CreatedBy>
        <CreatedDate>0001-01-01T00:00:00</CreatedDate>
        <Description>String</Description>
        <Id>0</Id>
        <ImageURL>String</ImageURL>
        <InverseParent i:nil="true" />
        <ModifiedBy>0</ModifiedBy>
        <ModifiedDate>0001-01-01T00:00:00</ModifiedDate>
        <Name>String</Name>
        <Parent>
          <CreatedBy>0</CreatedBy>
          <CreatedDate>0001-01-01T00:00:00</CreatedDate>
          <Description>String</Description>
          <Id>0</Id>
          <ImageURL>String</ImageURL>
          <InverseParent i:nil="true" />
          <ModifiedBy>0</ModifiedBy>
          <ModifiedDate>0001-01-01T00:00:00</ModifiedDate>
          <Name>String</Name>
          <Parent>
            <CreatedBy>0</CreatedBy>
            <CreatedDate>0001-01-01T00:00:00</CreatedDate>
            <Description>String</Description>
            <Id>0</Id>
            <ImageURL>String</ImageURL>
            <InverseParent i:nil="true" />
            <ModifiedBy>0</ModifiedBy>
            <ModifiedDate>0001-01-01T00:00:00</ModifiedDate>
            <Name>String</Name>
            <Parent i:nil="true" />
            <ParentId>0</ParentId>
            <Position>0</Position>
            <Products i:nil="true" />
            <RetailerId>0</RetailerId>
            <ShowOnBranchId>String</ShowOnBranchId>
          </Parent>
          <ParentId>0</ParentId>
          <Position>0</Position>
          <Products i:nil="true" />
          <RetailerId>0</RetailerId>
          <ShowOnBranchId>String</ShowOnBranchId>
        </Parent>
        <ParentId>0</ParentId>
        <Position>0</Position>
        <Products i:nil="true" />
        <RetailerId>0</RetailerId>
        <ShowOnBranchId>String</ShowOnBranchId>
      </Category>
      <CategoryId>0</CategoryId>
      <Code>String</Code>
      <Code2>String</Code2>
      <Code3>String</Code3>
      <Code4>String</Code4>
      <Code5>String</Code5>
      <Coefficient>0</Coefficient>
      <CompositeItemItems i:nil="true" />
      <CompositeItemProducts i:nil="true" />
      <ConversionValue>0</ConversionValue>
      <CreatedBy>0</CreatedBy>
      <CreatedDate>0001-01-01T00:00:00</CreatedDate>
      <DeliveryOrderDetails i:nil="true" />
      <Description>String</Description>
      <Formular>String</Formular>
      <Hidden>false</Hidden>
      <Id>0</Id>
      <InventoryCountDetails i:nil="true" />
      <IsPercentageOfTotalOrder>false</IsPercentageOfTotalOrder>
      <IsPriceForBlock>false</IsPriceForBlock>
      <IsSerialNumberTracking>false</IsSerialNumberTracking>
      <IsTimer>false</IsTimer>
      <LargeUnit>String</LargeUnit>
      <LargeUnitCode>String</LargeUnitCode>
      <ManufacturingDetails i:nil="true" />
      <ManufacturingMaterials i:nil="true" />
      <ModifiedBy>0</ModifiedBy>
      <ModifiedDate>0001-01-01T00:00:00</ModifiedDate>
      <Name>String</Name>
      <NotebookDetails i:nil="true" />
      <OrderDetails i:nil="true" />
      <OrderQuickNotes>String</OrderQuickNotes>
      <OtherTransactionDetails i:nil="true" />
      <Position>0</Position>
      <Price>0</Price>
      <PriceBookDetails i:nil="true" />
      <PriceConfig>String</PriceConfig>
      <PriceLargeUnit>0</PriceLargeUnit>
      <Printer>String</Printer>
      <ProductAttributes i:nil="true" />
      <ProductBranches i:nil="true" />
      <ProductExtras i:nil="true" />
      <ProductImages i:nil="true" />
      <ProductItemPromotions i:nil="true" />
      <ProductPartners i:nil="true" />
      <ProductPromotions i:nil="true" />
      <ProductSerials i:nil="true" />
      <ProductType>0</ProductType>
      <PurchaseOrderDetails i:nil="true" />
      <PurchaseOrderReturnDetails i:nil="true" />
      <RetailerId>0</RetailerId>
      <ReturnDetails i:nil="true" />
      <RoomHistories i:nil="true" />
      <Rooms i:nil="true" />
      <ShowOnBranchId>String</ShowOnBranchId>
      <SplitForSalesOrder>false</SplitForSalesOrder>
      <TransferDetails i:nil="true" />
      <Unit>String</Unit>
    </Product>
    <ProductId>0</ProductId>
    <QRCode>String</QRCode>
    <RetailerId>0</RetailerId>
    <RoomGroup>
      <BranchId>0</BranchId>
      <CreatedBy>0</CreatedBy>
      <CreatedDate>0001-01-01T00:00:00</CreatedDate>
      <Id>0</Id>
      <ModifiedBy>0</ModifiedBy>
      <ModifiedDate>0001-01-01T00:00:00</ModifiedDate>
      <Name>String</Name>
      <RetailerId>0</RetailerId>
      <Rooms i:nil="true" />
    </RoomGroup>
    <RoomGroupId>0</RoomGroupId>
    <RoomHistories i:nil="true" />
  </Room>
  <RoomId>0</RoomId>
  <State>0</State>
  <Status>0</Status>
</Booking>