POST Product/Create
Request Information
URI Parameters
None.
Body Parameters
ProductDetailViewModels| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| Name | string |
None. |
|
| PartNo | string |
None. |
|
| Brand | BrandViewModels |
None. |
|
| Code | CodeViewModels |
None. |
|
| Status | StatusViewModels |
None. |
|
| SalePrice | PriceInfoViewModels |
None. |
|
| CostPrice | PriceInfoViewModels |
None. |
|
| StandardPrice | PriceInfoViewModels |
None. |
|
| Type | TypeViewModels |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"Name": "sample string 2",
"PartNo": "sample string 3",
"Brand": {
"Id": 1,
"Name": "sample string 2"
},
"Code": {
"ProductId": 1,
"Code": "sample string 2"
},
"Status": {
"Id": 1,
"Name": "sample string 2"
},
"SalePrice": {
"ProductId": 1,
"Price": 2,
"TimeStamp": "2026-02-14T08:05:42.4518249+08:00"
},
"CostPrice": {
"ProductId": 1,
"Price": 2,
"TimeStamp": "2026-02-14T08:05:42.4518249+08:00"
},
"StandardPrice": {
"ProductId": 1,
"Price": 2,
"TimeStamp": "2026-02-14T08:05:42.4518249+08:00"
},
"Type": {
"Id": 1,
"Name": "sample string 2"
}
}
application/xml, text/xml
Sample:
<ProductDetailViewModels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/JmplusAPI.ViewModels.Product">
<Brand xmlns:d2p1="http://schemas.datacontract.org/2004/07/JmplusAPI.ViewModels.Brand">
<d2p1:Id>1</d2p1:Id>
<d2p1:Name>sample string 2</d2p1:Name>
</Brand>
<Code>
<Code>sample string 2</Code>
<ProductId>1</ProductId>
</Code>
<CostPrice>
<Price>2</Price>
<ProductId>1</ProductId>
<TimeStamp>2026-02-14T08:05:42.4518249+08:00</TimeStamp>
</CostPrice>
<Id>1</Id>
<Name>sample string 2</Name>
<PartNo>sample string 3</PartNo>
<SalePrice>
<Price>2</Price>
<ProductId>1</ProductId>
<TimeStamp>2026-02-14T08:05:42.4518249+08:00</TimeStamp>
</SalePrice>
<StandardPrice>
<Price>2</Price>
<ProductId>1</ProductId>
<TimeStamp>2026-02-14T08:05:42.4518249+08:00</TimeStamp>
</StandardPrice>
<Status>
<Id>1</Id>
<Name>sample string 2</Name>
</Status>
<Type>
<Id>1</Id>
<Name>sample string 2</Name>
</Type>
</ProductDetailViewModels>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
booleanResponse Formats
application/json, text/json
Sample:
true
application/xml, text/xml
Sample:
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>