Create Items
URL:
Method: POST
https://connect.igainapp.in/index.php/Api/Merchant_api/Saas_api
This Api is used to Menu Items sync
First time all menu items will be Sync with the Loyalty. There after only send items that are changed or new items.
Request Parameters
Parameter | Type | Position | # | Description |
---|---|---|---|---|
API_flag | string |
Header |
Required |
Api Flag |
Company_username | string |
Header |
Required |
Company User Name |
Company_password | string |
Header |
Required |
Company Password |
Brand_id | integer |
Header |
Required |
Brand ID |
Outlet_id | 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 |