Create Items
URL:
Method: POST
https://saasapi.igainapp.in/v1/Create_items_api.php/create_pos_items
This Api is used to create Menu Items with Product groups, Product brand, Menu Category.
Request Parameters
Parameter | Type | Position | # | Description |
---|---|---|---|---|
Authorization | string |
Header |
Required |
Authorization is the Enrypted Company API KEY |
Brand | integer |
Header |
Required |
Brand ID |
Outlet | integer |
Header |
Required |
Outlet ID |
Input JSON | array |
Body |
Required |
Menu Items Input JSON |
Sample Request Body
{ "Product_Groups": [ { "Product_Group_Id": "1-415", "Product_Group_Name": "Food" }, { "Product_Group_Id": "2-415", "Product_Group_Name": "Beverage" } ], "Product_SubGroups": [ { "Product_Group_Id": "2-415", "Product_SubGroup_Id": "101-415", "Product_SubGroup_Name": "Milkshakes" }, { "Product_Group_Id": "1-415", "Product_SubGroup_Id": "102-415", "Product_SubGroup_Name": "Pastries" }, { "Product_Group_Id": "2-415", "Product_SubGroup_Id": "103-415", "Product_SubGroup_Name": "Tea" }, { "Product_Group_Id": "2-415", "Product_SubGroup_Id": "104-415", "Product_SubGroup_Name": "Coffee" } ], "Menu_Groups": [ { "Menu_Group_Id": "15-415", "Menu_Group_Name": "Burgers" }, { "Menu_Group_Id": "16-415", "Menu_Group_Name": "Pastries" }, { "Menu_Group_Id": "17-415", "Menu_Group_Name": "Tea" }, { "Menu_Group_Id": "18-415", "Menu_Group_Name": "Modifiers" } ], "Menu_Items": [ { "Product_Group_Id": "1-415", "Product_SubGroup_Id": "102-415", "Menu_Group_Id": "16-415", "Item_Num": "100-415", "Item_Name": "Pastry Item", "Item_Rate": "1.00", }, { "Product_Group_Id": "2-415", "Product_SubGroup_Id": "103-415", "Menu_Group_Id": "17-415", "Item_Num": "2025-415", "Item_Name": "Kenyan Tea Item2", "Item_Rate": "0.00", }, ], }
Sample Request Response
{ "Error_flag":1001, “Message”: “Successful” }
Error Codes
Error Code | Description |
---|---|
3105 | Invalid POS json data |
2009 | Invalid Brand id / outlet id. |
2002 | Invalid company password |
2001 | Invalid company username |
404 | Invalid input / some input filed missing |
1001 | Successful |