GET api/InventoryItem/GetPageInventoryItemsByMenuBookAndCategory?menuBookID={menuBookID}&pageIndex={pageIndex}&limit={limit}&categoryID={categoryID}&keySearch={keySearch}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| menuBookID | globally unique identifier |
Required |
|
| pageIndex | integer |
Required |
|
| limit | integer |
Required |
|
| categoryID | globally unique identifier |
None. |
|
| keySearch | string |
Default value is |
Body Parameters
None.
Response Information
Resource Description
APIOrderOnlineResultOfListOfQROrder_InventoryItem| Name | Description | Type | Additional information |
|---|---|---|---|
| Data | Collection of QROrder_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": "c25f8d9b-8499-440b-b418-bafa72052a9b",
"ParentID": "e7d6bcfa-6d82-464f-a2b3-d3c1f3da0c0e",
"ParentName": "sample string 2",
"CartItemID": "7e6f3f96-3b30-43fe-9732-e8b0a8169464",
"InventoryItemCode": "sample string 4",
"InventoryItemType": 0,
"InventoryItemName": "sample string 5",
"InventoryItemCategoryID": "ab86ec38-545f-4283-8cb6-b30dfc0e4d3d",
"InventoryItemCategoryName": "sample string 6",
"UnitPrice": 7.0,
"UnitPriceAddtion": 8.0,
"UnitPriceDelivery": 9.0,
"Inactive": true,
"UnitID": "eac556d1-313f-4acd-b085-a79e9db324b5",
"UnitName": "sample string 11",
"Description": "sample string 12",
"IsCustomCombo": true,
"SaleQuantity": 14.0,
"FileResourceID": "6084ba1e-682d-4e42-b91f-65d84ca8ffb3",
"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,
"DistributeID": "434f379f-469b-48de-aaea-d9d4e55426ef",
"IsEBT": true,
"IsMultiSelct": true,
"MinValue": 1,
"MaxValue": 1,
"IsRequired": true,
"IsNoMaxValue": true,
"IsDefault": true
},
{
"InventoryItemID": "c25f8d9b-8499-440b-b418-bafa72052a9b",
"ParentID": "e7d6bcfa-6d82-464f-a2b3-d3c1f3da0c0e",
"ParentName": "sample string 2",
"CartItemID": "7e6f3f96-3b30-43fe-9732-e8b0a8169464",
"InventoryItemCode": "sample string 4",
"InventoryItemType": 0,
"InventoryItemName": "sample string 5",
"InventoryItemCategoryID": "ab86ec38-545f-4283-8cb6-b30dfc0e4d3d",
"InventoryItemCategoryName": "sample string 6",
"UnitPrice": 7.0,
"UnitPriceAddtion": 8.0,
"UnitPriceDelivery": 9.0,
"Inactive": true,
"UnitID": "eac556d1-313f-4acd-b085-a79e9db324b5",
"UnitName": "sample string 11",
"Description": "sample string 12",
"IsCustomCombo": true,
"SaleQuantity": 14.0,
"FileResourceID": "6084ba1e-682d-4e42-b91f-65d84ca8ffb3",
"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,
"DistributeID": "434f379f-469b-48de-aaea-d9d4e55426ef",
"IsEBT": true,
"IsMultiSelct": true,
"MinValue": 1,
"MaxValue": 1,
"IsRequired": true,
"IsNoMaxValue": true,
"IsDefault": true
}
],
"Success": true,
"ErrorMessage": "sample string 2",
"ErrorType": 0,
"Total": 3,
"Message": "sample string 4"
}
application/xml, text/xml
Sample:
<APIOrderOnlineResultOfArrayOfQROrder_InventoryItemHwd4PmMc xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MISA.QLNH.BE.BO">
<Data>
<QROrder_InventoryItem>
<_BuyQuantity>15</_BuyQuantity>
<_CartItemID>7e6f3f96-3b30-43fe-9732-e8b0a8169464</_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>
<_DistributeID>434f379f-469b-48de-aaea-d9d4e55426ef</_DistributeID>
<_FileResourceID>6084ba1e-682d-4e42-b91f-65d84ca8ffb3</_FileResourceID>
<_Inactive>true</_Inactive>
<_InventoryItemCategoryID>ab86ec38-545f-4283-8cb6-b30dfc0e4d3d</_InventoryItemCategoryID>
<_InventoryItemCategoryName>sample string 6</_InventoryItemCategoryName>
<_InventoryItemCode>sample string 4</_InventoryItemCode>
<_InventoryItemID>c25f8d9b-8499-440b-b418-bafa72052a9b</_InventoryItemID>
<_InventoryItemName>sample string 5</_InventoryItemName>
<_InventoryItemType>AllFood</_InventoryItemType>
<_InventoryItemValid>true</_InventoryItemValid>
<_IsApplyPLTTax>true</_IsApplyPLTTax>
<_IsCustomCombo>true</_IsCustomCombo>
<_IsDefault>true</_IsDefault>
<_IsDiscount>true</_IsDiscount>
<_IsDiscount_TA>true</_IsDiscount_TA>
<_IsEBT>true</_IsEBT>
<_IsItemWithVariant>true</_IsItemWithVariant>
<_IsMultiSelct>true</_IsMultiSelct>
<_IsNoMaxValue>true</_IsNoMaxValue>
<_IsOutOfStock>true</_IsOutOfStock>
<_IsRequired>true</_IsRequired>
<_IsUseItemCount>true</_IsUseItemCount>
<_ItemCount>34</_ItemCount>
<_ItemCountApplyType>Manual</_ItemCountApplyType>
<_ListOption>sample string 32</_ListOption>
<_MaxValue>1</_MaxValue>
<_MinValue>1</_MinValue>
<_Note>sample string 16</_Note>
<_PLTTaxRate>30</_PLTTaxRate>
<_ParentID>e7d6bcfa-6d82-464f-a2b3-d3c1f3da0c0e</_ParentID>
<_ParentName>sample string 2</_ParentName>
<_SalePrice_TA>22</_SalePrice_TA>
<_SaleQuantity>14</_SaleQuantity>
<_UnitID>eac556d1-313f-4acd-b085-a79e9db324b5</_UnitID>
<_UnitName>sample string 11</_UnitName>
<_UnitPrice>7</_UnitPrice>
<_UnitPriceAddtion>8</_UnitPriceAddtion>
<_UnitPriceDelivery>9</_UnitPriceDelivery>
<_UnitPriceDelivery_TA>28</_UnitPriceDelivery_TA>
</QROrder_InventoryItem>
<QROrder_InventoryItem>
<_BuyQuantity>15</_BuyQuantity>
<_CartItemID>7e6f3f96-3b30-43fe-9732-e8b0a8169464</_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>
<_DistributeID>434f379f-469b-48de-aaea-d9d4e55426ef</_DistributeID>
<_FileResourceID>6084ba1e-682d-4e42-b91f-65d84ca8ffb3</_FileResourceID>
<_Inactive>true</_Inactive>
<_InventoryItemCategoryID>ab86ec38-545f-4283-8cb6-b30dfc0e4d3d</_InventoryItemCategoryID>
<_InventoryItemCategoryName>sample string 6</_InventoryItemCategoryName>
<_InventoryItemCode>sample string 4</_InventoryItemCode>
<_InventoryItemID>c25f8d9b-8499-440b-b418-bafa72052a9b</_InventoryItemID>
<_InventoryItemName>sample string 5</_InventoryItemName>
<_InventoryItemType>AllFood</_InventoryItemType>
<_InventoryItemValid>true</_InventoryItemValid>
<_IsApplyPLTTax>true</_IsApplyPLTTax>
<_IsCustomCombo>true</_IsCustomCombo>
<_IsDefault>true</_IsDefault>
<_IsDiscount>true</_IsDiscount>
<_IsDiscount_TA>true</_IsDiscount_TA>
<_IsEBT>true</_IsEBT>
<_IsItemWithVariant>true</_IsItemWithVariant>
<_IsMultiSelct>true</_IsMultiSelct>
<_IsNoMaxValue>true</_IsNoMaxValue>
<_IsOutOfStock>true</_IsOutOfStock>
<_IsRequired>true</_IsRequired>
<_IsUseItemCount>true</_IsUseItemCount>
<_ItemCount>34</_ItemCount>
<_ItemCountApplyType>Manual</_ItemCountApplyType>
<_ListOption>sample string 32</_ListOption>
<_MaxValue>1</_MaxValue>
<_MinValue>1</_MinValue>
<_Note>sample string 16</_Note>
<_PLTTaxRate>30</_PLTTaxRate>
<_ParentID>e7d6bcfa-6d82-464f-a2b3-d3c1f3da0c0e</_ParentID>
<_ParentName>sample string 2</_ParentName>
<_SalePrice_TA>22</_SalePrice_TA>
<_SaleQuantity>14</_SaleQuantity>
<_UnitID>eac556d1-313f-4acd-b085-a79e9db324b5</_UnitID>
<_UnitName>sample string 11</_UnitName>
<_UnitPrice>7</_UnitPrice>
<_UnitPriceAddtion>8</_UnitPriceAddtion>
<_UnitPriceDelivery>9</_UnitPriceDelivery>
<_UnitPriceDelivery_TA>28</_UnitPriceDelivery_TA>
</QROrder_InventoryItem>
</Data>
<ErrorMessage>sample string 2</ErrorMessage>
<ErrorType>None</ErrorType>
<Message>sample string 4</Message>
<Success>true</Success>
<Total>3</Total>
</APIOrderOnlineResultOfArrayOfQROrder_InventoryItemHwd4PmMc>