POST api/Product
Request Information
URI Parameters
None.
Body Parameters
ProductDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| ProductCode | integer |
None. |
|
| Description | string |
None. |
|
| ProductCategory | string |
None. |
|
| UnitOfMeasure | string |
None. |
|
| Barcode | string |
None. |
|
| ReorderPoint | integer |
None. |
|
| AveCost | decimal number |
None. |
|
| RetailPrice | decimal number |
None. |
|
| Status | string |
None. |
|
| ItemClass | string |
None. |
|
| LastUnitCost | decimal number |
None. |
|
| VATType | string |
None. |
|
| SCPercent | decimal number |
None. |
|
| PWD | boolean |
None. |
|
| DateCreated | date |
None. |
|
| CreatedBy | string |
None. |
|
| DateUpdated | date |
None. |
|
| UpdatedBy | string |
None. |
|
| AllowDecimal | boolean |
None. |
|
| Balance | decimal number |
None. |
|
| SupplierCode | integer |
None. |
|
| SupplierName | string |
None. |
|
| RemQty | decimal number |
None. |
|
| PrintDrinks | boolean |
None. |
|
| PrintKitchen | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"ProductCode": 1,
"Description": "sample string 2",
"ProductCategory": "sample string 3",
"UnitOfMeasure": "sample string 4",
"Barcode": "sample string 5",
"ReorderPoint": 6,
"AveCost": 7.0,
"RetailPrice": 8.0,
"Status": "sample string 9",
"ItemClass": "sample string 10",
"LastUnitCost": 11.0,
"VATType": "sample string 12",
"SCPercent": 13.0,
"PWD": true,
"DateCreated": "2026-09-25T20:11:01.9530451+08:00",
"CreatedBy": "sample string 16",
"DateUpdated": "2026-09-25T20:11:01.9530451+08:00",
"UpdatedBy": "sample string 17",
"AllowDecimal": true,
"Balance": 19.0,
"SupplierCode": 20,
"SupplierName": "sample string 21",
"RemQty": 22.0,
"PrintDrinks": true,
"PrintKitchen": true
}
application/xml, text/xml
Sample:
<ProductDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.BasicBigJ.Domain.Models"> <AllowDecimal>true</AllowDecimal> <AveCost>7</AveCost> <Balance>19</Balance> <Barcode>sample string 5</Barcode> <CreatedBy>sample string 16</CreatedBy> <DateCreated>2026-09-25T20:11:01.9530451+08:00</DateCreated> <DateUpdated>2026-09-25T20:11:01.9530451+08:00</DateUpdated> <Description>sample string 2</Description> <ItemClass>sample string 10</ItemClass> <LastUnitCost>11</LastUnitCost> <PWD>true</PWD> <PrintDrinks>true</PrintDrinks> <PrintKitchen>true</PrintKitchen> <ProductCategory>sample string 3</ProductCategory> <ProductCode>1</ProductCode> <RemQty>22</RemQty> <ReorderPoint>6</ReorderPoint> <RetailPrice>8</RetailPrice> <SCPercent>13</SCPercent> <Status>sample string 9</Status> <SupplierCode>20</SupplierCode> <SupplierName>sample string 21</SupplierName> <UnitOfMeasure>sample string 4</UnitOfMeasure> <UpdatedBy>sample string 17</UpdatedBy> <VATType>sample string 12</VATType> </ProductDTO>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.