All Verbs | /api/autocomplete/products |
---|
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Keyword | query | string | No | |
ExcludeService | query | bool | No | |
ExcludeComposite | query | bool | No | |
ExcludeSerial | query | bool | No | |
IncludeInventory | query | bool | No | |
IncludeLatestPrice | query | bool | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /api/autocomplete/products HTTP/1.1
Host: api.pos365.vn
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<AutocompleteProducts xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/POS.Services">
<ExcludeComposite>false</ExcludeComposite>
<ExcludeSerial>false</ExcludeSerial>
<ExcludeService>false</ExcludeService>
<IncludeInventory>false</IncludeInventory>
<IncludeLatestPrice>false</IncludeLatestPrice>
<Keyword>String</Keyword>
</AutocompleteProducts>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <ArrayOfFullProductInformation xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/POS.Data"> <FullProductInformation> <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> <CompareMaxQuantity>0</CompareMaxQuantity> <CompareMinQuantity>0</CompareMinQuantity> <Cost>0</Cost> <ExpireIn>0</ExpireIn> <ExpiryDate>0001-01-01T00:00:00</ExpiryDate> <MaxQuantity>0</MaxQuantity> <MinQuantity>0</MinQuantity> <OnHand>0</OnHand> <OnOrder>0</OnOrder> <PriceByBranch>0</PriceByBranch> <PriceByBranchLargeUnit>0</PriceByBranchLargeUnit> <RecentPurchasePrice>0</RecentPurchasePrice> <RecentPurchasePriceLargeUnit>0</RecentPurchasePriceLargeUnit> <SerialNumber>String</SerialNumber> </FullProductInformation> </ArrayOfFullProductInformation>