GET api/Product/GetProductByKeySearch?keySearch={keySearch}&isHomepage={isHomepage}&isSearchBuDon={isSearchBuDon}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| keySearch | string |
Required |
|
| isHomepage | boolean |
None. |
|
| isSearchBuDon | boolean |
None. |
Body Parameters
None.
Response Information
Resource Description
Collection of ProductDto| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | globally unique identifier |
None. |
|
| Color | string |
None. |
|
| Abbreviations | string |
None. |
|
| Barcode | string |
None. |
|
| BodyUsedId | integer |
None. |
|
| BodyUsedString | string |
None. |
|
| CategoryId | integer |
None. |
|
| CategoryString | string |
None. |
|
| Code | string |
None. |
|
| Description | string |
None. |
|
| HamLuong | string |
None. |
|
| HoatChat | string |
None. |
|
| InventoryMax | integer |
None. |
|
| InventoryMin | integer |
None. |
|
| Inventory | integer |
None. |
|
| QtyPurchaseOrder | integer |
None. |
|
| QtyOrder | integer |
None. |
|
| IsHomepage | boolean |
None. |
|
| ProductUnitId | integer |
None. |
|
| ProductUnitName | string |
None. |
|
| ManufacturerId | integer |
None. |
|
| ManufacturerString | string |
None. |
|
| NoteOrder | string |
None. |
|
| Packing | string |
None. |
|
| PositionId | integer |
None. |
|
| PositionString | string |
None. |
|
| PriceCost | integer |
None. |
|
| Price | integer |
None. |
|
| QuocGiaId | integer |
None. |
|
| QuocGiaString | string |
None. |
|
| RegistrationNumber | string |
None. |
|
| Title | string |
None. |
|
| Weight | integer |
None. |
|
| Type | ProductEnum |
None. |
|
| TypeString | string |
None. |
|
| InventoryQuantity | integer |
None. |
|
| OrderQuantity | integer |
None. |
|
| OutOfStockDays | integer |
None. |
|
| Status | ProductStatusEnum |
None. |
|
| StatusString | string |
None. |
|
| LstPrice | Collection of ProductPriceMappingResponse |
None. |
|
| IsOverInventory | boolean |
None. |
|
| FileId | globally unique identifier |
None. |
|
| Note | string |
None. |
|
| Quantity | integer |
None. |
|
| Discount | decimal number |
None. |
|
| DiscountType | integer |
None. |
|
| OrderTotal | decimal number |
None. |
|
| DiscountTypeActive | boolean |
None. |
|
| ProductPriceMappings | Collection of ProductPriceMapping |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"Id": "32f61853-72b1-4ed7-9220-21a91a91ed40",
"Color": "sample string 2",
"Abbreviations": "sample string 3",
"Barcode": "sample string 4",
"BodyUsedId": 5,
"BodyUsedString": "sample string 6",
"CategoryId": 7,
"CategoryString": "sample string 8",
"Code": "sample string 9",
"Description": "sample string 10",
"HamLuong": "sample string 11",
"HoatChat": "sample string 12",
"InventoryMax": 13,
"InventoryMin": 14,
"Inventory": 15,
"QtyPurchaseOrder": 16,
"QtyOrder": 17,
"IsHomepage": true,
"ProductUnitId": 19,
"ProductUnitName": "sample string 20",
"ManufacturerId": 1,
"ManufacturerString": "sample string 21",
"NoteOrder": "sample string 22",
"Packing": "sample string 23",
"PositionId": 24,
"PositionString": "sample string 25",
"PriceCost": 26,
"Price": 27,
"QuocGiaId": 28,
"QuocGiaString": "sample string 29",
"RegistrationNumber": "sample string 30",
"Title": "sample string 31",
"Weight": 32,
"Type": 0,
"TypeString": "Thuốc",
"InventoryQuantity": 33,
"OrderQuantity": 34,
"OutOfStockDays": 35,
"Status": 0,
"StatusString": "Cho phép kinh doanh",
"LstPrice": [
{
"Price": 1.0,
"Id": 2,
"Type": 3,
"ProductId": "813aea9f-7b4e-481a-b9ad-5222f6a76ee4",
"Quantity": 5,
"QuantityOrigin": 5,
"Date": "2025-10-26T13:11:32.9144314+07:00",
"SupplierId": 7,
"PurchaseOrderId": "fbb90a51-b08b-4458-b6e5-b8043048f62b"
},
{
"Price": 1.0,
"Id": 2,
"Type": 3,
"ProductId": "813aea9f-7b4e-481a-b9ad-5222f6a76ee4",
"Quantity": 5,
"QuantityOrigin": 5,
"Date": "2025-10-26T13:11:32.9144314+07:00",
"SupplierId": 7,
"PurchaseOrderId": "fbb90a51-b08b-4458-b6e5-b8043048f62b"
}
],
"IsOverInventory": true,
"FileId": "c09352ca-8488-4b3c-8939-ebec48309a36",
"Note": "sample string 38",
"Quantity": 39,
"Discount": 40.0,
"DiscountType": 41,
"OrderTotal": 42.0,
"DiscountTypeActive": false,
"ProductPriceMappings": [
{
"Price": 1.0,
"Id": 2,
"Type": 3,
"ProductId": "2e7df4ac-fa22-4221-ac25-033ce5a462ec",
"Quantity": 5,
"Date": "2025-10-26T13:11:32.9144314+07:00",
"SupplierId": 6,
"PurchaseOrderId": "9f2d48c8-28d9-433d-aa9b-ff4e99ec8ad2",
"QuantityOrigin": 1
},
{
"Price": 1.0,
"Id": 2,
"Type": 3,
"ProductId": "2e7df4ac-fa22-4221-ac25-033ce5a462ec",
"Quantity": 5,
"Date": "2025-10-26T13:11:32.9144314+07:00",
"SupplierId": 6,
"PurchaseOrderId": "9f2d48c8-28d9-433d-aa9b-ff4e99ec8ad2",
"QuantityOrigin": 1
}
]
},
{
"Id": "32f61853-72b1-4ed7-9220-21a91a91ed40",
"Color": "sample string 2",
"Abbreviations": "sample string 3",
"Barcode": "sample string 4",
"BodyUsedId": 5,
"BodyUsedString": "sample string 6",
"CategoryId": 7,
"CategoryString": "sample string 8",
"Code": "sample string 9",
"Description": "sample string 10",
"HamLuong": "sample string 11",
"HoatChat": "sample string 12",
"InventoryMax": 13,
"InventoryMin": 14,
"Inventory": 15,
"QtyPurchaseOrder": 16,
"QtyOrder": 17,
"IsHomepage": true,
"ProductUnitId": 19,
"ProductUnitName": "sample string 20",
"ManufacturerId": 1,
"ManufacturerString": "sample string 21",
"NoteOrder": "sample string 22",
"Packing": "sample string 23",
"PositionId": 24,
"PositionString": "sample string 25",
"PriceCost": 26,
"Price": 27,
"QuocGiaId": 28,
"QuocGiaString": "sample string 29",
"RegistrationNumber": "sample string 30",
"Title": "sample string 31",
"Weight": 32,
"Type": 0,
"TypeString": "Thuốc",
"InventoryQuantity": 33,
"OrderQuantity": 34,
"OutOfStockDays": 35,
"Status": 0,
"StatusString": "Cho phép kinh doanh",
"LstPrice": [
{
"Price": 1.0,
"Id": 2,
"Type": 3,
"ProductId": "813aea9f-7b4e-481a-b9ad-5222f6a76ee4",
"Quantity": 5,
"QuantityOrigin": 5,
"Date": "2025-10-26T13:11:32.9144314+07:00",
"SupplierId": 7,
"PurchaseOrderId": "fbb90a51-b08b-4458-b6e5-b8043048f62b"
},
{
"Price": 1.0,
"Id": 2,
"Type": 3,
"ProductId": "813aea9f-7b4e-481a-b9ad-5222f6a76ee4",
"Quantity": 5,
"QuantityOrigin": 5,
"Date": "2025-10-26T13:11:32.9144314+07:00",
"SupplierId": 7,
"PurchaseOrderId": "fbb90a51-b08b-4458-b6e5-b8043048f62b"
}
],
"IsOverInventory": true,
"FileId": "c09352ca-8488-4b3c-8939-ebec48309a36",
"Note": "sample string 38",
"Quantity": 39,
"Discount": 40.0,
"DiscountType": 41,
"OrderTotal": 42.0,
"DiscountTypeActive": false,
"ProductPriceMappings": [
{
"Price": 1.0,
"Id": 2,
"Type": 3,
"ProductId": "2e7df4ac-fa22-4221-ac25-033ce5a462ec",
"Quantity": 5,
"Date": "2025-10-26T13:11:32.9144314+07:00",
"SupplierId": 6,
"PurchaseOrderId": "9f2d48c8-28d9-433d-aa9b-ff4e99ec8ad2",
"QuantityOrigin": 1
},
{
"Price": 1.0,
"Id": 2,
"Type": 3,
"ProductId": "2e7df4ac-fa22-4221-ac25-033ce5a462ec",
"Quantity": 5,
"Date": "2025-10-26T13:11:32.9144314+07:00",
"SupplierId": 6,
"PurchaseOrderId": "9f2d48c8-28d9-433d-aa9b-ff4e99ec8ad2",
"QuantityOrigin": 1
}
]
}
]
application/xml, text/xml
Sample:
<ArrayOfProductDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Common.Model.Dto">
<ProductDto>
<Abbreviations>sample string 3</Abbreviations>
<Barcode>sample string 4</Barcode>
<BodyUsedId>5</BodyUsedId>
<BodyUsedString>sample string 6</BodyUsedString>
<CategoryId>7</CategoryId>
<CategoryString>sample string 8</CategoryString>
<Code>sample string 9</Code>
<Color>sample string 2</Color>
<Description>sample string 10</Description>
<Discount>40</Discount>
<DiscountType>41</DiscountType>
<FileId>c09352ca-8488-4b3c-8939-ebec48309a36</FileId>
<HamLuong>sample string 11</HamLuong>
<HoatChat>sample string 12</HoatChat>
<Id>32f61853-72b1-4ed7-9220-21a91a91ed40</Id>
<Inventory>15</Inventory>
<InventoryMax>13</InventoryMax>
<InventoryMin>14</InventoryMin>
<InventoryQuantity>33</InventoryQuantity>
<IsHomepage>true</IsHomepage>
<IsOverInventory>true</IsOverInventory>
<LstPrice xmlns:d3p1="http://schemas.datacontract.org/2004/07/Common.Model.Response.Product">
<d3p1:ProductPriceMappingResponse>
<d3p1:Date>2025-10-26T13:11:32.9144314+07:00</d3p1:Date>
<d3p1:Id>2</d3p1:Id>
<d3p1:Price>1</d3p1:Price>
<d3p1:ProductId>813aea9f-7b4e-481a-b9ad-5222f6a76ee4</d3p1:ProductId>
<d3p1:PurchaseOrderId>fbb90a51-b08b-4458-b6e5-b8043048f62b</d3p1:PurchaseOrderId>
<d3p1:Quantity>5</d3p1:Quantity>
<d3p1:SupplierId>7</d3p1:SupplierId>
<d3p1:Type>3</d3p1:Type>
</d3p1:ProductPriceMappingResponse>
<d3p1:ProductPriceMappingResponse>
<d3p1:Date>2025-10-26T13:11:32.9144314+07:00</d3p1:Date>
<d3p1:Id>2</d3p1:Id>
<d3p1:Price>1</d3p1:Price>
<d3p1:ProductId>813aea9f-7b4e-481a-b9ad-5222f6a76ee4</d3p1:ProductId>
<d3p1:PurchaseOrderId>fbb90a51-b08b-4458-b6e5-b8043048f62b</d3p1:PurchaseOrderId>
<d3p1:Quantity>5</d3p1:Quantity>
<d3p1:SupplierId>7</d3p1:SupplierId>
<d3p1:Type>3</d3p1:Type>
</d3p1:ProductPriceMappingResponse>
</LstPrice>
<ManufacturerId>1</ManufacturerId>
<ManufacturerString>sample string 21</ManufacturerString>
<Note>sample string 38</Note>
<NoteOrder>sample string 22</NoteOrder>
<OrderQuantity>34</OrderQuantity>
<OrderTotal>42</OrderTotal>
<OutOfStockDays>35</OutOfStockDays>
<Packing>sample string 23</Packing>
<PositionId>24</PositionId>
<PositionString>sample string 25</PositionString>
<Price>27</Price>
<PriceCost>26</PriceCost>
<ProductPriceMappings xmlns:d3p1="http://schemas.datacontract.org/2004/07/SSO_Repository.Entities">
<d3p1:ProductPriceMapping>
<d3p1:Date>2025-10-26T13:11:32.9144314+07:00</d3p1:Date>
<d3p1:Id>2</d3p1:Id>
<d3p1:Price>1</d3p1:Price>
<d3p1:ProductId>2e7df4ac-fa22-4221-ac25-033ce5a462ec</d3p1:ProductId>
<d3p1:PurchaseOrderId>9f2d48c8-28d9-433d-aa9b-ff4e99ec8ad2</d3p1:PurchaseOrderId>
<d3p1:Quantity>5</d3p1:Quantity>
<d3p1:QuantityOrigin>1</d3p1:QuantityOrigin>
<d3p1:SupplierId>6</d3p1:SupplierId>
<d3p1:Type>3</d3p1:Type>
</d3p1:ProductPriceMapping>
<d3p1:ProductPriceMapping>
<d3p1:Date>2025-10-26T13:11:32.9144314+07:00</d3p1:Date>
<d3p1:Id>2</d3p1:Id>
<d3p1:Price>1</d3p1:Price>
<d3p1:ProductId>2e7df4ac-fa22-4221-ac25-033ce5a462ec</d3p1:ProductId>
<d3p1:PurchaseOrderId>9f2d48c8-28d9-433d-aa9b-ff4e99ec8ad2</d3p1:PurchaseOrderId>
<d3p1:Quantity>5</d3p1:Quantity>
<d3p1:QuantityOrigin>1</d3p1:QuantityOrigin>
<d3p1:SupplierId>6</d3p1:SupplierId>
<d3p1:Type>3</d3p1:Type>
</d3p1:ProductPriceMapping>
</ProductPriceMappings>
<ProductUnitId>19</ProductUnitId>
<ProductUnitName>sample string 20</ProductUnitName>
<QtyOrder>17</QtyOrder>
<QtyPurchaseOrder>16</QtyPurchaseOrder>
<Quantity>39</Quantity>
<QuocGiaId>28</QuocGiaId>
<QuocGiaString>sample string 29</QuocGiaString>
<RegistrationNumber>sample string 30</RegistrationNumber>
<Status>ACTIVE</Status>
<Title>sample string 31</Title>
<Type>Thuoc</Type>
<Weight>32</Weight>
</ProductDto>
<ProductDto>
<Abbreviations>sample string 3</Abbreviations>
<Barcode>sample string 4</Barcode>
<BodyUsedId>5</BodyUsedId>
<BodyUsedString>sample string 6</BodyUsedString>
<CategoryId>7</CategoryId>
<CategoryString>sample string 8</CategoryString>
<Code>sample string 9</Code>
<Color>sample string 2</Color>
<Description>sample string 10</Description>
<Discount>40</Discount>
<DiscountType>41</DiscountType>
<FileId>c09352ca-8488-4b3c-8939-ebec48309a36</FileId>
<HamLuong>sample string 11</HamLuong>
<HoatChat>sample string 12</HoatChat>
<Id>32f61853-72b1-4ed7-9220-21a91a91ed40</Id>
<Inventory>15</Inventory>
<InventoryMax>13</InventoryMax>
<InventoryMin>14</InventoryMin>
<InventoryQuantity>33</InventoryQuantity>
<IsHomepage>true</IsHomepage>
<IsOverInventory>true</IsOverInventory>
<LstPrice xmlns:d3p1="http://schemas.datacontract.org/2004/07/Common.Model.Response.Product">
<d3p1:ProductPriceMappingResponse>
<d3p1:Date>2025-10-26T13:11:32.9144314+07:00</d3p1:Date>
<d3p1:Id>2</d3p1:Id>
<d3p1:Price>1</d3p1:Price>
<d3p1:ProductId>813aea9f-7b4e-481a-b9ad-5222f6a76ee4</d3p1:ProductId>
<d3p1:PurchaseOrderId>fbb90a51-b08b-4458-b6e5-b8043048f62b</d3p1:PurchaseOrderId>
<d3p1:Quantity>5</d3p1:Quantity>
<d3p1:SupplierId>7</d3p1:SupplierId>
<d3p1:Type>3</d3p1:Type>
</d3p1:ProductPriceMappingResponse>
<d3p1:ProductPriceMappingResponse>
<d3p1:Date>2025-10-26T13:11:32.9144314+07:00</d3p1:Date>
<d3p1:Id>2</d3p1:Id>
<d3p1:Price>1</d3p1:Price>
<d3p1:ProductId>813aea9f-7b4e-481a-b9ad-5222f6a76ee4</d3p1:ProductId>
<d3p1:PurchaseOrderId>fbb90a51-b08b-4458-b6e5-b8043048f62b</d3p1:PurchaseOrderId>
<d3p1:Quantity>5</d3p1:Quantity>
<d3p1:SupplierId>7</d3p1:SupplierId>
<d3p1:Type>3</d3p1:Type>
</d3p1:ProductPriceMappingResponse>
</LstPrice>
<ManufacturerId>1</ManufacturerId>
<ManufacturerString>sample string 21</ManufacturerString>
<Note>sample string 38</Note>
<NoteOrder>sample string 22</NoteOrder>
<OrderQuantity>34</OrderQuantity>
<OrderTotal>42</OrderTotal>
<OutOfStockDays>35</OutOfStockDays>
<Packing>sample string 23</Packing>
<PositionId>24</PositionId>
<PositionString>sample string 25</PositionString>
<Price>27</Price>
<PriceCost>26</PriceCost>
<ProductPriceMappings xmlns:d3p1="http://schemas.datacontract.org/2004/07/SSO_Repository.Entities">
<d3p1:ProductPriceMapping>
<d3p1:Date>2025-10-26T13:11:32.9144314+07:00</d3p1:Date>
<d3p1:Id>2</d3p1:Id>
<d3p1:Price>1</d3p1:Price>
<d3p1:ProductId>2e7df4ac-fa22-4221-ac25-033ce5a462ec</d3p1:ProductId>
<d3p1:PurchaseOrderId>9f2d48c8-28d9-433d-aa9b-ff4e99ec8ad2</d3p1:PurchaseOrderId>
<d3p1:Quantity>5</d3p1:Quantity>
<d3p1:QuantityOrigin>1</d3p1:QuantityOrigin>
<d3p1:SupplierId>6</d3p1:SupplierId>
<d3p1:Type>3</d3p1:Type>
</d3p1:ProductPriceMapping>
<d3p1:ProductPriceMapping>
<d3p1:Date>2025-10-26T13:11:32.9144314+07:00</d3p1:Date>
<d3p1:Id>2</d3p1:Id>
<d3p1:Price>1</d3p1:Price>
<d3p1:ProductId>2e7df4ac-fa22-4221-ac25-033ce5a462ec</d3p1:ProductId>
<d3p1:PurchaseOrderId>9f2d48c8-28d9-433d-aa9b-ff4e99ec8ad2</d3p1:PurchaseOrderId>
<d3p1:Quantity>5</d3p1:Quantity>
<d3p1:QuantityOrigin>1</d3p1:QuantityOrigin>
<d3p1:SupplierId>6</d3p1:SupplierId>
<d3p1:Type>3</d3p1:Type>
</d3p1:ProductPriceMapping>
</ProductPriceMappings>
<ProductUnitId>19</ProductUnitId>
<ProductUnitName>sample string 20</ProductUnitName>
<QtyOrder>17</QtyOrder>
<QtyPurchaseOrder>16</QtyPurchaseOrder>
<Quantity>39</Quantity>
<QuocGiaId>28</QuocGiaId>
<QuocGiaString>sample string 29</QuocGiaString>
<RegistrationNumber>sample string 30</RegistrationNumber>
<Status>ACTIVE</Status>
<Title>sample string 31</Title>
<Type>Thuoc</Type>
<Weight>32</Weight>
</ProductDto>
</ArrayOfProductDto>