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": "2de38467-ee59-4790-ba8a-1d5a78f899f6",
"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": [
"56f1077a-e3a1-4f31-b374-4bc604058c42",
"98823205-1a45-431b-8d3e-53b56e1914af"
],
"Type": 22,
"ProductUnitId": 23,
"LstPrice": [
{
"Price": 1.0,
"Id": 2,
"Type": 3,
"ProductId": "47ae3951-06d0-4cea-b3b8-d9181bdfa2b1",
"Quantity": 5,
"Date": "2025-10-26T13:00:52.2096283+07:00",
"SupplierId": 6,
"PurchaseOrderId": "d29270e8-9261-4069-81ae-433ae40e7bfc",
"QuantityOrigin": 1
},
{
"Price": 1.0,
"Id": 2,
"Type": 3,
"ProductId": "47ae3951-06d0-4cea-b3b8-d9181bdfa2b1",
"Quantity": 5,
"Date": "2025-10-26T13:00:52.2096283+07:00",
"SupplierId": 6,
"PurchaseOrderId": "d29270e8-9261-4069-81ae-433ae40e7bfc",
"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>2de38467-ee59-4790-ba8a-1d5a78f899f6</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>2025-10-26T13:00:52.2096283+07:00</d2p1:Date>
<d2p1:Id>2</d2p1:Id>
<d2p1:Price>1</d2p1:Price>
<d2p1:ProductId>47ae3951-06d0-4cea-b3b8-d9181bdfa2b1</d2p1:ProductId>
<d2p1:PurchaseOrderId>d29270e8-9261-4069-81ae-433ae40e7bfc</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>2025-10-26T13:00:52.2096283+07:00</d2p1:Date>
<d2p1:Id>2</d2p1:Id>
<d2p1:Price>1</d2p1:Price>
<d2p1:ProductId>47ae3951-06d0-4cea-b3b8-d9181bdfa2b1</d2p1:ProductId>
<d2p1:PurchaseOrderId>d29270e8-9261-4069-81ae-433ae40e7bfc</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>56f1077a-e3a1-4f31-b374-4bc604058c42</d2p1:guid>
<d2p1:guid>98823205-1a45-431b-8d3e-53b56e1914af</d2p1:guid>
</lstImage>
</ProductRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
None.