POST api/Product/CreateOrUpdate
Request Information
URI Parameters
None.
Body Parameters
ProductRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | globally unique identifier |
None. |
|
| Abbreviations | string |
None. |
|
| Barcode | string |
None. |
|
| BodyUsedId | integer |
None. |
|
| CategoryId | integer |
None. |
|
| Code | string |
None. |
|
| Description | string |
None. |
|
| HamLuong | string |
None. |
|
| HoatChat | string |
None. |
|
| InventoryMax | integer |
None. |
|
| InventoryMin | integer |
None. |
|
| Inventory | integer |
None. |
|
| IsHomepage | boolean |
None. |
|
| ManufacturerId | integer |
None. |
|
| NoteOrder | string |
None. |
|
| Packing | string |
None. |
|
| PositionId | integer |
None. |
|
| PriceCost | integer |
None. |
|
| Price | integer |
None. |
|
| QuocGiaId | integer |
None. |
|
| RegistrationNumber | string |
None. |
|
| Title | string |
None. |
|
| Weight | integer |
None. |
|
| lstImage | Collection of globally unique identifier |
None. |
|
| Type | integer |
None. |
|
| ProductUnitId | integer |
None. |
|
| LstPrice | Collection of ProductPriceMapping |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": "5ab374c4-ab37-4227-8ec9-96ef0ab0ed2f",
"Abbreviations": "sample string 1",
"Barcode": "sample string 2",
"BodyUsedId": 3,
"CategoryId": 4,
"Code": "sample string 5",
"Description": "sample string 6",
"HamLuong": "sample string 7",
"HoatChat": "sample string 8",
"InventoryMax": 9,
"InventoryMin": 10,
"Inventory": 11,
"IsHomepage": true,
"ManufacturerId": 1,
"NoteOrder": "sample string 13",
"Packing": "sample string 14",
"PositionId": 15,
"PriceCost": 16,
"Price": 17,
"QuocGiaId": 18,
"RegistrationNumber": "sample string 19",
"Title": "sample string 20",
"Weight": 21,
"lstImage": [
"5997bb73-b53e-45ad-bdf1-21e27978aa07",
"63f4b49a-b322-464c-a8ca-5aca2be106cb"
],
"Type": 22,
"ProductUnitId": 23,
"LstPrice": [
{
"Price": 1.0,
"Id": 2,
"Type": 3,
"ProductId": "d5ab69f3-cc81-408a-99e6-185273ce3fb9",
"Quantity": 5,
"Date": "2026-04-14T21:56:15.3887558+07:00",
"SupplierId": 6,
"PurchaseOrderId": "6d5947c1-0fe0-428f-8780-9b3c2a7863c7",
"QuantityOrigin": 1
},
{
"Price": 1.0,
"Id": 2,
"Type": 3,
"ProductId": "d5ab69f3-cc81-408a-99e6-185273ce3fb9",
"Quantity": 5,
"Date": "2026-04-14T21:56:15.3887558+07:00",
"SupplierId": 6,
"PurchaseOrderId": "6d5947c1-0fe0-428f-8780-9b3c2a7863c7",
"QuantityOrigin": 1
}
]
}
application/xml, text/xml
Sample:
<ProductRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Common.Model.Request.Product">
<Abbreviations>sample string 1</Abbreviations>
<Barcode>sample string 2</Barcode>
<BodyUsedId>3</BodyUsedId>
<CategoryId>4</CategoryId>
<Code>sample string 5</Code>
<Description>sample string 6</Description>
<HamLuong>sample string 7</HamLuong>
<HoatChat>sample string 8</HoatChat>
<Id>5ab374c4-ab37-4227-8ec9-96ef0ab0ed2f</Id>
<Inventory>11</Inventory>
<InventoryMax>9</InventoryMax>
<InventoryMin>10</InventoryMin>
<IsHomepage>true</IsHomepage>
<LstPrice xmlns:d2p1="http://schemas.datacontract.org/2004/07/SSO_Repository.Entities">
<d2p1:ProductPriceMapping>
<d2p1:Date>2026-04-14T21:56:15.3887558+07:00</d2p1:Date>
<d2p1:Id>2</d2p1:Id>
<d2p1:Price>1</d2p1:Price>
<d2p1:ProductId>d5ab69f3-cc81-408a-99e6-185273ce3fb9</d2p1:ProductId>
<d2p1:PurchaseOrderId>6d5947c1-0fe0-428f-8780-9b3c2a7863c7</d2p1:PurchaseOrderId>
<d2p1:Quantity>5</d2p1:Quantity>
<d2p1:QuantityOrigin>1</d2p1:QuantityOrigin>
<d2p1:SupplierId>6</d2p1:SupplierId>
<d2p1:Type>3</d2p1:Type>
</d2p1:ProductPriceMapping>
<d2p1:ProductPriceMapping>
<d2p1:Date>2026-04-14T21:56:15.3887558+07:00</d2p1:Date>
<d2p1:Id>2</d2p1:Id>
<d2p1:Price>1</d2p1:Price>
<d2p1:ProductId>d5ab69f3-cc81-408a-99e6-185273ce3fb9</d2p1:ProductId>
<d2p1:PurchaseOrderId>6d5947c1-0fe0-428f-8780-9b3c2a7863c7</d2p1:PurchaseOrderId>
<d2p1:Quantity>5</d2p1:Quantity>
<d2p1:QuantityOrigin>1</d2p1:QuantityOrigin>
<d2p1:SupplierId>6</d2p1:SupplierId>
<d2p1:Type>3</d2p1:Type>
</d2p1:ProductPriceMapping>
</LstPrice>
<ManufacturerId>1</ManufacturerId>
<NoteOrder>sample string 13</NoteOrder>
<Packing>sample string 14</Packing>
<PositionId>15</PositionId>
<Price>17</Price>
<PriceCost>16</PriceCost>
<ProductUnitId>23</ProductUnitId>
<QuocGiaId>18</QuocGiaId>
<RegistrationNumber>sample string 19</RegistrationNumber>
<Title>sample string 20</Title>
<Type>22</Type>
<Weight>21</Weight>
<lstImage xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:guid>5997bb73-b53e-45ad-bdf1-21e27978aa07</d2p1:guid>
<d2p1:guid>63f4b49a-b322-464c-a8ca-5aca2be106cb</d2p1:guid>
</lstImage>
</ProductRequest>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
None.