Modifiers
API Key and Store id that can be used in staging environment.
Store_id: 5c5981496bcf7500013afeb0
API Key: rna4etAXd11XRqbMTcNnWca216daxiFE
Getting the modifiers of a store.
URL:https://api.lingaros.com/v1/lingapos/store/{store-id}/modifiers
curl -X GET -H "apikey: generated-api-key" \
"https://api.lingaros.com/v1/lingapos/store/{store-id}/modifiers"
queryParms
?page=1 => [paging no]
?search= => [null]
?status=true => [active modifiers list]
?status=false => [inactive modifiers list]
Getting a modifier.
URL:https://api.lingaros.com/v1/lingapos/modifier/{modifier-id}
curl -X GET -H "apikey: generated-api-key" \
"https://api.lingaros.com/v1/lingapos/modifier/{modifier-id}"
Creating a new modifier.
| Method | Type | Description |
|---|---|---|
| modifyWith | bson.ObjectId | Modifier group id. |
| taxes | []bson.ObjectId | Taxes that are applicable for the modifier. |
| servingSizeLevels | []ServingSizePrice | Modifier price for it’s serving size. |
| prefixes | []ModifierPrefix | Modifier Prefixes. |
| maxNoOfTimes | []mandatoryModifierGroup | How many times a modifier is applicable over an item. |
| setPriceHere | Bool | Modifier price can be overridden. |
| overrideFreeNToppings | Bool | True if price overriding after N toppings |
| buttonColor(Optional) | String | Button color selection for the modifier. |
| includeDefaultTaxes | Bool | True if default taxes are included. |
| name | String | Name of the modifier. |
| kitchenPrinters(Optional) | []bson.ObjectId | List of kitchen printers attached to this category. |
| store | []bson.ObjectId | Store id. |
| printMenuInModPrint | Bool | Denotes if modifier will seem in modifier print. |
| printModInMenuPrint | Bool | Denotes if modifier will seem in menu print. |
| name | String | Name of the category. |
| createdAt | Int | Which store created the modifier. |
| createdFor | bson.String | Store id for which the modifier is created. |
| ownedBy | bson.String | Account id related to the Store by whom the modifier is created. |
curl -X POST \
-H "apikey: generated-api-key" \
-H "Content-Type: application/json" \
-d '{"alternate": []
"modifyWith": null
"taxes": ["5c5981496bcf7500013afee4"]
"servingSizeLevels": []
"prefixes": []
"maxNoOfTimes": 1
"setPriceHere": false
"buttonColor": "#E67E22"
"includeDefaultTaxes": true
"printMenuInModPrint": true
"printModInMenuPrint": true
"name": "CHEESE"
"kitchenPrinters": ["5dfa27586c38720001829f23"]
"store": "5c5981496bcf7500013afeb0"
"createdAt": 2
"createdFor": "5c5981496bcf7500013afeb0"
"ownedBy": "5c5981496bcf7500013afeb2"}' \
"https://api.lingaros.com/v1/lingapos/modifier" \
Updating a modifier.
URL:http://api.lingaros.com/v1/lingapos/modifier/{modifier-id}
| Method | Type | Description |
|---|---|---|
| activeStatus | Bool | Modifier activity status. |
| buttonColor(Optional) | String | Button color selection for the modifier. |
| id | bson.ObjectId | Unique modifier ID. |
| imageAvailable | Bool | Denotes if an image is available for the modifiers group. |
| imageExtension | String | Image extension. |
| imageUrl | String | Image URL. |
| imageVersion | Int | Modifier group image version. |
| kitchenPrinters(Optional) | []bson.ObjectId | List of kitchen printers attached to this category. |
| maxNoOfTimes | []mandatoryModifierGroup | How many times a modifier is applicable over an item. |
| modifyWith | []bson.ObjectId | Modifier group ID. |
| name | String | Name of the modifier. |
| originalID | bson.ObjectId | Original modifier ID. |
| pluCode | String | Plu code for that menuItem. |
| prefixes | []ModifierPrefix | Modifier Prefixes. |
| printMenuInModPrint | Bool | Denotes if modifier will seem in modifier print. |
| printModInMenuPrint | Bool | Denotes if modifier will seem in menu print. |
| servingSizeLevels | []ServingSizePrice | Modifier price for it’s serving size. |
| setPriceHere | Bool | Modifier price can be overridden. |
| showModifier | Bool | Show modifier in the printer template. |
| taxes | []bson.ObjectId | Taxes applicable for the modifier. |
| store | []bson.ObjectId | Store id. |
| createdAt | Int | Which store created the modifier. |
| createdFor | bson.String | Store id for which the modifier is created. |
| ownedBy | bson.String | Account id related to the Store by whom the modifier is created. |
curl -X PUT \
-H "apikey: generated-api-key" \
-H "Content-Type: application/json" \
-d '{"activeStatus":true,
"buttonColor":"#2980B9",
"id":"5e1366da6581de00016f06d7",
"imageAvailable":false,
"imageExtension":"",
"imageUrl":"/modifier/5e1366da6581de00016f06d7/image",
"imageVersion":1,
"kitchenPrinters":["5e1366c76581de00016f06d5"],
"maxNoOfTimes":1,
"modifyWith":"5c5981496bcf7500013afeeb",
"name":"Test_Modifier",
"originalID":"5e1366da6581de00016f06d7",
"pluCode":"",
"prefixes":[],
"printMenuInModPrint":true,
"printModInMenuPrint":true,
"servingSizeLevels":[],
"setPriceHere":true,
"showModifier":false,
"taxes":["5c5981496bcf7500013afee4"],
"store":"5c5981496bcf7500013afeb0",
"createdAt":2,
"createdFor":"5c5981496bcf7500013afeb0",
"ownedBy":"5c5981496bcf7500013afeb2"}' \
"https://api.lingaros.com/v1/lingapos/modifier/{modifier-id}" \
Getting default printers.
curl -X GET -H "apikey: generated-api-key" \
"https://api.lingaros.com/v1/lingapos/defaultPrinters"
queryParms
?printerType=KitchenPrinter => [Printer type]
Getting active serving size levels by store.
URL:https://api.lingaros.com/v1/lingapos/store/{store-id}/activeServingSizeLevels
curl -X GET -H "apikey: generated-api-key" \
"https://api.lingaros.com/v1/lingapos/store/{store-id}/activeServingSizeLevels"
Getting active modifier groups by store.
URL:https://api.lingaros.com/v1/lingapos/store/{store-id}/activeModifierGroups
curl -X GET -H "apikey: generated-api-key" \
"https://api.lingaros.com/v1/lingapos/store/{store-id}/activeModifierGroups"
Getting active taxes applied to items, by store.
URL:https://api.lingaros.com/v1/lingapos/store/{store-id}/activeTaxes
curl -X GET -H "apikey: generated-api-key" \
"https://api.lingaros.com/v1/lingapos/store/{store-id}/activeTaxes"
queryParms
?ApplyTo=Item => [Denotes taxes applied to which unit]
Getting kitchen printers by store.
URL:https://api.lingaros.com/v1/lingapos/store/{store-id}/kitchenPrinters
curl -X GET -H "apikey: generated-api-key" \
"https://api.lingaros.com/v1/lingapos/store/{store-id}/kitchenPrinters"
Getting service types by store.
URL:https://api.lingaros.com/v1/lingapos/store/{store-id}/getServiceTypesByStore
curl -X GET -H "apikey: generated-api-key" \
"https://api.lingaros.com/v1/lingapos/store/{store-id}/getServiceTypesByStore"