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": "df22ca8f-36a0-4ec9-a7dc-7f67a00daf6f",
"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": [
"6882376a-805a-43e1-8dff-978da92c1228",
"e2a1a302-0b22-4689-9cc2-1dc5c085c7ea"
],
"Type": 22,
"ProductUnitId": 23,
"LstPrice": [
{
"Price": 1.0,
"Id": 2,
"Type": 3,
"ProductId": "9fd9daa0-9436-477c-bf25-1e56d9810b54",
"Quantity": 5,
"Date": "2026-11-17T15:50:32.6555336+07:00",
"SupplierId": 6,
"PurchaseOrderId": "3458bbf9-75ce-43a3-bcfb-f6aa6850f544",
"QuantityOrigin": 1
},
{
"Price": 1.0,
"Id": 2,
"Type": 3,
"ProductId": "9fd9daa0-9436-477c-bf25-1e56d9810b54",
"Quantity": 5,
"Date": "2026-11-17T15:50:32.6555336+07:00",
"SupplierId": 6,
"PurchaseOrderId": "3458bbf9-75ce-43a3-bcfb-f6aa6850f544",
"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>df22ca8f-36a0-4ec9-a7dc-7f67a00daf6f</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-11-17T15:50:32.6555336+07:00</d2p1:Date>
<d2p1:Id>2</d2p1:Id>
<d2p1:Price>1</d2p1:Price>
<d2p1:ProductId>9fd9daa0-9436-477c-bf25-1e56d9810b54</d2p1:ProductId>
<d2p1:PurchaseOrderId>3458bbf9-75ce-43a3-bcfb-f6aa6850f544</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-11-17T15:50:32.6555336+07:00</d2p1:Date>
<d2p1:Id>2</d2p1:Id>
<d2p1:Price>1</d2p1:Price>
<d2p1:ProductId>9fd9daa0-9436-477c-bf25-1e56d9810b54</d2p1:ProductId>
<d2p1:PurchaseOrderId>3458bbf9-75ce-43a3-bcfb-f6aa6850f544</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>6882376a-805a-43e1-8dff-978da92c1228</d2p1:guid>
<d2p1:guid>e2a1a302-0b22-4689-9cc2-1dc5c085c7ea</d2p1:guid>
</lstImage>
</ProductRequest>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
None.