POST api/Product/PostProduct
Post Product added at NIMPOS side
Request Information
URI Parameters
None.
Body Parameters
Product Model
ProductName | Description | Type | Additional information |
---|---|---|---|
Id | globally unique identifier |
None. |
|
SKU | string |
Max length: 100 |
|
Name | string |
Max length: 100 |
|
Description | string |
Max length: 150 |
|
LongDescription | string |
Max length: 1000 |
|
BarCode | string |
Max length: 100 |
|
Price | decimal number |
None. |
|
PurchasePrice | decimal number |
None. |
|
Tax | decimal number |
None. |
|
BrandId | integer |
None. |
|
PLU | string |
Max length: 100 |
|
Unit | ProductUnit |
None. |
|
AskPrice | boolean |
None. |
|
AskWeight | boolean |
None. |
|
PriceLock | boolean |
None. |
|
ColorCode | string |
Max length: 10 |
|
PrinterId | integer |
None. |
|
PlaceHolder | boolean |
None. |
|
AskVolume | boolean |
None. |
|
NeedIngredient | boolean |
None. |
|
Bong | boolean |
None. |
|
Sticky | integer |
None. |
|
Seamless | boolean |
None. |
|
ShowItemButton | boolean |
None. |
|
ShowGroupItem | boolean |
None. |
|
AccountingId | integer |
None. |
|
ReceiptMethod | ReceiptMethod |
None. |
|
ItemType | ItemType |
None. |
|
DiscountAllowed | boolean |
None. |
|
PreparationTime | PrepareTime |
None. |
|
IngredientPopup | boolean |
None. |
|
DefaultCartQty | decimal number |
None. |
|
SortOrder | integer |
None. |
|
IconId | integer |
None. |
|
Active | boolean |
None. |
|
Deleted | boolean |
None. |
|
Weight | decimal number |
None. |
|
Availability | boolean |
None. |
|
TextColor | string |
Max length: 10 |
|
ServeType | byte |
None. |
|
BongTitle | string |
Max length: 50 |
|
Synced | boolean |
None. |
|
DemandIdControl | boolean |
None. |
|
Discontinued | boolean |
None. |
|
AskPLU | boolean |
None. |
|
SupplierId | globally unique identifier |
None. |
|
SupplierSKU | string |
Max length: 100 |
|
DefaultUnit | ProductUnit |
None. |
|
ManageStock | integer |
None. |
|
PriceRek | decimal number |
None. |
|
CommentsRequired | boolean |
None. |
|
TicketQty | integer |
None. |
|
MinCartQty | decimal number |
None. |
|
MinQtyAlert | decimal number |
None. |
|
GroupId | globally unique identifier |
None. |
|
ComissionPercent | decimal number |
None. |
|
PantPrice | decimal number |
None. |
|
TrackAmount | boolean |
None. |
|
SaleUnitSuffix | string |
None. |
|
QtyPerSaleUnit | decimal number |
None. |
|
Created | date |
None. |
|
Updated | date |
None. |
|
UpdatedBy | globally unique identifier |
None. |
|
CategoryId | integer |
None. |
|
Campaign | CampaignMaster |
None. |
|
HasPricePolicy | boolean |
None. |
|
ItemCategory | Collection of ItemCategory |
None. |
|
ItemIdex | integer |
None. |
|
PolicyGroupId | integer |
None. |
|
HasCampaign | boolean |
None. |
|
Products | Collection of Product |
None. |
|
ColorName | string |
None. |
|
Type | integer |
None. |
|
ImagePath | string |
None. |
|
ImageVisibility | boolean |
None. |
|
ifExists | string |
None. |
|
ProductPrices | Collection of ProductPrice |
None. |
|
Ingredients | Collection of Product |
None. |
|
Variants | Collection of ItemConfiguration |
None. |
|
ItemOption | Collection of ItemOption |
None. |
|
ShowOnReceipt | boolean |
None. |
|
QuickAdd | boolean |
None. |
|
HasIngredients | boolean |
None. |
|
CategoryItemGroups | Collection of CategoryItemGroup |
None. |
|
ItemPricePolicies | Collection of Item_PricePolicy |
None. |
|
PriceGroupPolicies | Collection of PriceGroupPolicy |
None. |
|
Photo | Collection of byte |
None. |
|
GroupPrice | decimal number |
None. |
|
ExternalId | string |
None. |
|
IngredientQty | decimal number |
None. |
|
StockQty | decimal number |
None. |
|
StockInitialCount | decimal number |
None. |
|
Selected | boolean |
None. |
|
ShowWarhouseStock | boolean |
None. |
|
ShowStockQty | boolean |
None. |
|
HideStockQty | boolean |
None. |
|
IsRUT | boolean |
None. |
|
NotSelected | boolean |
None. |
|
IsInActive | boolean |
None. |
|
CreatedBy | string |
None. |
|
TerminalId | globally unique identifier |
None. |
|
CategoryName | string |
None. |
|
ShowCategoryName | boolean |
None. |
|
DiscountedPrice | decimal number |
None. |
|
Qty | decimal number |
None. |
|
ConfigurationId | integer |
None. |
|
ItemOptionId | globally unique identifier |
None. |
|
PriceAdd | decimal number |
None. |
|
PriceRemove | decimal number |
None. |
|
FreeQty | decimal number |
None. |
|
PLUNumeric | integer |
None. |
|
ScalePrice | decimal number |
None. |
|
PriceExlTax | decimal number |
None. |
Request Formats
application/json, text/json
{ "Id": "ea00427c-9c7f-44b6-8db8-a7dd4e70e064", "SKU": "sample string 2", "Name": "sample string 3", "Description": "sample string 4", "LongDescription": "sample string 5", "BarCode": "sample string 6", "Price": 7.0, "PurchasePrice": 8.0, "Tax": 9.0, "BrandId": 10, "PLU": "sample string 11", "Unit": 0, "AskPrice": true, "AskWeight": true, "PriceLock": true, "ColorCode": "sample string 15", "PrinterId": 16, "PlaceHolder": true, "AskVolume": true, "NeedIngredient": true, "Bong": true, "Sticky": 21, "Seamless": true, "ShowItemButton": true, "ShowGroupItem": true, "AccountingId": 25, "ReceiptMethod": 0, "ItemType": 0, "DiscountAllowed": true, "PreparationTime": 0, "IngredientPopup": true, "DefaultCartQty": 28.0, "SortOrder": 29, "IconId": 30, "Active": true, "Deleted": true, "Weight": 33.0, "Availability": true, "TextColor": "sample string 35", "ServeType": 64, "BongTitle": "sample string 37", "Synced": true, "DemandIdControl": true, "Discontinued": true, "AskPLU": true, "SupplierId": "71db8aef-ce06-4b86-b723-f16b32956624", "SupplierSKU": "sample string 44", "DefaultUnit": 0, "ManageStock": 45, "PriceRek": 46.0, "CommentsRequired": true, "TicketQty": 48, "MinCartQty": 49.0, "MinQtyAlert": 50.0, "GroupId": "2e15df74-c7b4-4908-ad03-f97e8e24fe18", "ComissionPercent": 51.0, "PantPrice": 52.0, "TrackAmount": true, "SaleUnitSuffix": "sample string 54", "QtyPerSaleUnit": 55.0, "Created": "2024-05-16T10:18:42.2512626+02:00", "Updated": "2024-05-16T10:18:42.2512626+02:00", "UpdatedBy": "04d9963a-036a-4b5a-b9e1-ec04504c12ec", "CategoryId": 58, "Campaign": { "$id": "2", "Id": "cd4f5e93-7a33-4671-b44a-e90ddd32807f", "CampaignType": 0, "DiscountBy": 0, "BuyLimit": 2, "FreeOffer": 3, "Price": 4.0, "DiscountQtyIncrement": 5, "Description": "sample string 6", "StartDate": "2024-05-16T10:18:42.2512626+02:00", "EndDate": "2024-05-16T10:18:42.2512626+02:00", "Deleted": true, "Updated": "2024-05-16T10:18:42.2512626+02:00", "CampaignPriceDetails": [ { "$id": "3", "Id": "5f23dde6-a5c8-4667-b2fb-59bf23b11d22", "CampaignId": "0c02f0f9-297f-4090-9713-4b54bc496b83", "Quantity": 3, "PayPrice": 4.0, "Deleted": true, "Updated": "2024-05-16T10:18:42.2512626+02:00" }, { "$ref": "3" } ] }, "HasPricePolicy": true, "ItemCategory": [ { "$id": "4", "Id": 1, "ItemId": "e99bfcea-25a0-4b6f-a29c-4844adcd0e9a", "CategoryId": 3, "SortOrder": 4, "IsPrimary": true }, { "$ref": "4" } ], "ItemIdex": 60, "PolicyGroupId": 61, "HasCampaign": true, "Products": [ { "$ref": "1" }, { "$ref": "1" } ], "ColorName": "sample string 62", "Type": 63, "ImagePath": "sample string 64", "ImageVisibility": true, "ifExists": "sample string 66", "ProductPrices": [ { "$id": "5", "Id": 1, "ItemId": "efcc8ca9-9058-4e9e-8254-5b2e0f9e7061", "PurchasePrice": 3.0, "Price": 4.0, "OutletId": "83ef21db-eafc-4eea-9ca9-f724247b1bf5", "PriceMode": 0, "Updated": "2024-05-16T10:18:42.2512626+02:00" }, { "$ref": "5" } ], "Ingredients": [ { "$ref": "1" }, { "$ref": "1" } ], "Variants": [ { "$id": "6", "Id": 1, "ConfigurationId": "7bdd3e4a-7ef5-49c2-ba1a-e71d0f5a8301", "ItemId": "bdc497ae-c50a-46bb-919e-470e5c7bbcaa", "SortOrder": 4, "Deleted": true, "Updated": "2024-05-16T10:18:42.2512626+02:00" }, { "$ref": "6" } ], "ItemOption": [ { "$id": "7", "Id": "152c47e5-17e3-4ed7-a532-cfd00e589205", "ItemOptionGroupId": "096872e2-04c5-43fe-937c-48e30a371f58", "ItemId": "6477db2e-a545-4172-953a-7129d404815c", "CategoryId": 4, "Active": true, "Updated": "2024-05-16T10:18:42.2512626+02:00" }, { "$ref": "7" } ], "ShowOnReceipt": true, "QuickAdd": true, "HasIngredients": true, "CategoryItemGroups": [ { "$id": "8", "Id": "5b98eff6-97ac-4509-8716-131410a599a1", "CategoryId": 2, "GroupId": "4020110b-e622-4043-b421-8220986b8c21", "Qty": 4.0, "Price": 5.0, "Deleted": true, "SortOrder": 7, "Updated": "2024-05-16T10:18:42.2512626+02:00", "Description": "sample string 9" }, { "$ref": "8" } ], "ItemPricePolicies": [ { "$id": "9", "Id": 1, "ItemId": "8a6e218d-fafb-405f-b1d5-fd9130a88260", "BuyLimit": 3, "DiscountAmount": 4.0, "Active": true, "Deleted": true, "Updated": "2024-05-16T10:18:42.2512626+02:00", "PolicyId": 8 }, { "$ref": "9" } ], "PriceGroupPolicies": [ { "$id": "10", "Id": 1, "GroupId": 2, "BuyLimit": 3, "MaxLimit": 4, "DiscountAmount": 5.0, "TotalAmount": 6.0, "Updated": "2024-05-16T10:18:42.2512626+02:00" }, { "$ref": "10" } ], "Photo": "QEA=", "GroupPrice": 69.0, "ExternalId": "sample string 70", "IngredientQty": 71.0, "StockQty": 72.0, "StockInitialCount": 73.0, "Selected": true, "ShowWarhouseStock": true, "ShowStockQty": true, "HideStockQty": false, "IsRUT": true, "NotSelected": true, "IsInActive": true, "CreatedBy": "sample string 79", "TerminalId": "8b54d051-b071-45a4-aebf-0ecbf3e81baa", "CategoryName": "sample string 80", "ShowCategoryName": true, "DiscountedPrice": 81.0, "Qty": 82.0, "ConfigurationId": 83, "ItemOptionId": "e2353544-07e4-486d-a1aa-45b2404498a9", "PriceAdd": 85.0, "PriceRemove": 86.0, "FreeQty": 87.0, "PLUNumeric": 0, "ScalePrice": 88.0, "PriceExlTax": 7.63 }
application/x-www-form-urlencoded
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample not available.