GET api/InventoryItem/GetInventoryItemsTopSale?companyCode={companyCode}&branchID={branchID}

Action xử lý lấy danh sách thực đơn bán chạy

Request Information

URI Parameters

NameDescriptionTypeAdditional information
companyCode

Mã nhà hàng

string

Required

branchID

ID chi nhánh

globally unique identifier

None.

Body Parameters

None.

Response Information

Resource Description

Action xử lý lấy danh sách thực đơn bán chạy

APIOrderOnlineResultOfListOfOrderOnline_InventoryItem
NameDescriptionTypeAdditional information
Data

Collection of OrderOnline_InventoryItem

None.

Success

boolean

None.

ErrorMessage

string

None.

ErrorType

OrderOnlineAPIErrorType

None.

Total

integer

None.

Message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Data": [
    {
      "InventoryItemID": "c8eeeaa1-c13a-40c0-b1b0-b895cf847ac0",
      "ParentID": "a43802df-cbec-47dd-a1d7-066c707d86e1",
      "ParentName": "sample string 2",
      "CartItemID": "bf84be2f-d5b5-4888-b4d7-a41746342d6b",
      "InventoryItemCode": "sample string 4",
      "InventoryItemType": 0,
      "InventoryItemName": "sample string 5",
      "InventoryItemCategoryID": "5a96ce43-99b7-4756-a28d-9c9009c1f335",
      "InventoryItemCategoryName": "sample string 6",
      "UnitPrice": 7.0,
      "UnitPriceAddtion": 8.0,
      "UnitPriceDelivery": 9.0,
      "Inactive": true,
      "UnitID": "f95859a6-d353-4902-b814-e6a6adf70329",
      "UnitName": "sample string 11",
      "Description": "sample string 12",
      "IsCustomCombo": true,
      "SaleQuantity": 14.0,
      "FileResourceID": "3ce868be-b08c-4031-872f-abcc3527358e",
      "BuyQuantity": 15.0,
      "Note": "sample string 16",
      "IsOutOfStock": true,
      "IsDiscount": true,
      "DiscountPrice": 19.0,
      "DiscountRate": 20.0,
      "DiscountType": 21,
      "SalePrice_TA": 22.0,
      "DiscountPrice_TA": 23.0,
      "IsDiscount_TA": true,
      "DiscountAmount_TA": 25.0,
      "DiscountRate_TA": 26.0,
      "DiscountType_TA": 27,
      "UnitPriceDelivery_TA": 28.0,
      "IsApplyPLTTax": true,
      "PLTTaxRate": 30.0,
      "InventoryItemValid": true,
      "ListOption": "sample string 32",
      "IsUseItemCount": true,
      "ItemCount": 34.0,
      "ItemCountApplyType": 0,
      "IsItemWithVariant": true
    },
    {
      "InventoryItemID": "c8eeeaa1-c13a-40c0-b1b0-b895cf847ac0",
      "ParentID": "a43802df-cbec-47dd-a1d7-066c707d86e1",
      "ParentName": "sample string 2",
      "CartItemID": "bf84be2f-d5b5-4888-b4d7-a41746342d6b",
      "InventoryItemCode": "sample string 4",
      "InventoryItemType": 0,
      "InventoryItemName": "sample string 5",
      "InventoryItemCategoryID": "5a96ce43-99b7-4756-a28d-9c9009c1f335",
      "InventoryItemCategoryName": "sample string 6",
      "UnitPrice": 7.0,
      "UnitPriceAddtion": 8.0,
      "UnitPriceDelivery": 9.0,
      "Inactive": true,
      "UnitID": "f95859a6-d353-4902-b814-e6a6adf70329",
      "UnitName": "sample string 11",
      "Description": "sample string 12",
      "IsCustomCombo": true,
      "SaleQuantity": 14.0,
      "FileResourceID": "3ce868be-b08c-4031-872f-abcc3527358e",
      "BuyQuantity": 15.0,
      "Note": "sample string 16",
      "IsOutOfStock": true,
      "IsDiscount": true,
      "DiscountPrice": 19.0,
      "DiscountRate": 20.0,
      "DiscountType": 21,
      "SalePrice_TA": 22.0,
      "DiscountPrice_TA": 23.0,
      "IsDiscount_TA": true,
      "DiscountAmount_TA": 25.0,
      "DiscountRate_TA": 26.0,
      "DiscountType_TA": 27,
      "UnitPriceDelivery_TA": 28.0,
      "IsApplyPLTTax": true,
      "PLTTaxRate": 30.0,
      "InventoryItemValid": true,
      "ListOption": "sample string 32",
      "IsUseItemCount": true,
      "ItemCount": 34.0,
      "ItemCountApplyType": 0,
      "IsItemWithVariant": true
    }
  ],
  "Success": true,
  "ErrorMessage": "sample string 2",
  "ErrorType": 0,
  "Total": 3,
  "Message": "sample string 4"
}

application/xml, text/xml

Sample:
<APIOrderOnlineResultOfArrayOfOrderOnline_InventoryItemHwd4PmMc xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MISA.QLNH.BE.BO">
  <Data>
    <OrderOnline_InventoryItem>
      <_BuyQuantity>15</_BuyQuantity>
      <_CartItemID>bf84be2f-d5b5-4888-b4d7-a41746342d6b</_CartItemID>
      <_Description>sample string 12</_Description>
      <_DiscountAmount_TA>25</_DiscountAmount_TA>
      <_DiscountPrice>19</_DiscountPrice>
      <_DiscountPrice_TA>23</_DiscountPrice_TA>
      <_DiscountRate>20</_DiscountRate>
      <_DiscountRate_TA>26</_DiscountRate_TA>
      <_DiscountType>21</_DiscountType>
      <_DiscountType_TA>27</_DiscountType_TA>
      <_FileResourceID>3ce868be-b08c-4031-872f-abcc3527358e</_FileResourceID>
      <_Inactive>true</_Inactive>
      <_InventoryItemCategoryID>5a96ce43-99b7-4756-a28d-9c9009c1f335</_InventoryItemCategoryID>
      <_InventoryItemCategoryName>sample string 6</_InventoryItemCategoryName>
      <_InventoryItemCode>sample string 4</_InventoryItemCode>
      <_InventoryItemID>c8eeeaa1-c13a-40c0-b1b0-b895cf847ac0</_InventoryItemID>
      <_InventoryItemName>sample string 5</_InventoryItemName>
      <_InventoryItemType>AllFood</_InventoryItemType>
      <_InventoryItemValid>true</_InventoryItemValid>
      <_IsApplyPLTTax>true</_IsApplyPLTTax>
      <_IsCustomCombo>true</_IsCustomCombo>
      <_IsDiscount>true</_IsDiscount>
      <_IsDiscount_TA>true</_IsDiscount_TA>
      <_IsItemWithVariant>true</_IsItemWithVariant>
      <_IsOutOfStock>true</_IsOutOfStock>
      <_IsUseItemCount>true</_IsUseItemCount>
      <_ItemCount>34</_ItemCount>
      <_ItemCountApplyType>Manual</_ItemCountApplyType>
      <_ListOption>sample string 32</_ListOption>
      <_Note>sample string 16</_Note>
      <_PLTTaxRate>30</_PLTTaxRate>
      <_ParentID>a43802df-cbec-47dd-a1d7-066c707d86e1</_ParentID>
      <_ParentName>sample string 2</_ParentName>
      <_SalePrice_TA>22</_SalePrice_TA>
      <_SaleQuantity>14</_SaleQuantity>
      <_UnitID>f95859a6-d353-4902-b814-e6a6adf70329</_UnitID>
      <_UnitName>sample string 11</_UnitName>
      <_UnitPrice>7</_UnitPrice>
      <_UnitPriceAddtion>8</_UnitPriceAddtion>
      <_UnitPriceDelivery>9</_UnitPriceDelivery>
      <_UnitPriceDelivery_TA>28</_UnitPriceDelivery_TA>
    </OrderOnline_InventoryItem>
    <OrderOnline_InventoryItem>
      <_BuyQuantity>15</_BuyQuantity>
      <_CartItemID>bf84be2f-d5b5-4888-b4d7-a41746342d6b</_CartItemID>
      <_Description>sample string 12</_Description>
      <_DiscountAmount_TA>25</_DiscountAmount_TA>
      <_DiscountPrice>19</_DiscountPrice>
      <_DiscountPrice_TA>23</_DiscountPrice_TA>
      <_DiscountRate>20</_DiscountRate>
      <_DiscountRate_TA>26</_DiscountRate_TA>
      <_DiscountType>21</_DiscountType>
      <_DiscountType_TA>27</_DiscountType_TA>
      <_FileResourceID>3ce868be-b08c-4031-872f-abcc3527358e</_FileResourceID>
      <_Inactive>true</_Inactive>
      <_InventoryItemCategoryID>5a96ce43-99b7-4756-a28d-9c9009c1f335</_InventoryItemCategoryID>
      <_InventoryItemCategoryName>sample string 6</_InventoryItemCategoryName>
      <_InventoryItemCode>sample string 4</_InventoryItemCode>
      <_InventoryItemID>c8eeeaa1-c13a-40c0-b1b0-b895cf847ac0</_InventoryItemID>
      <_InventoryItemName>sample string 5</_InventoryItemName>
      <_InventoryItemType>AllFood</_InventoryItemType>
      <_InventoryItemValid>true</_InventoryItemValid>
      <_IsApplyPLTTax>true</_IsApplyPLTTax>
      <_IsCustomCombo>true</_IsCustomCombo>
      <_IsDiscount>true</_IsDiscount>
      <_IsDiscount_TA>true</_IsDiscount_TA>
      <_IsItemWithVariant>true</_IsItemWithVariant>
      <_IsOutOfStock>true</_IsOutOfStock>
      <_IsUseItemCount>true</_IsUseItemCount>
      <_ItemCount>34</_ItemCount>
      <_ItemCountApplyType>Manual</_ItemCountApplyType>
      <_ListOption>sample string 32</_ListOption>
      <_Note>sample string 16</_Note>
      <_PLTTaxRate>30</_PLTTaxRate>
      <_ParentID>a43802df-cbec-47dd-a1d7-066c707d86e1</_ParentID>
      <_ParentName>sample string 2</_ParentName>
      <_SalePrice_TA>22</_SalePrice_TA>
      <_SaleQuantity>14</_SaleQuantity>
      <_UnitID>f95859a6-d353-4902-b814-e6a6adf70329</_UnitID>
      <_UnitName>sample string 11</_UnitName>
      <_UnitPrice>7</_UnitPrice>
      <_UnitPriceAddtion>8</_UnitPriceAddtion>
      <_UnitPriceDelivery>9</_UnitPriceDelivery>
      <_UnitPriceDelivery_TA>28</_UnitPriceDelivery_TA>
    </OrderOnline_InventoryItem>
  </Data>
  <ErrorMessage>sample string 2</ErrorMessage>
  <ErrorType>None</ErrorType>
  <Message>sample string 4</Message>
  <Success>true</Success>
  <Total>3</Total>
</APIOrderOnlineResultOfArrayOfOrderOnline_InventoryItemHwd4PmMc>