Serving size Levels
API Key and Store id that can be used in staging environment.
Store_id: 5c5981496bcf7500013afeb0
API Key: DLMv94LDtbH1bddsaxxlGVpC8ILB2Goz
Getting the serving size levels of a store.
URL:https://api.lingaros.com/v1/lingapos/store/{store-id}/sslList
curl -X GET -H "apikey: generated-api-key" \
"https://api.lingaros.com/v1/lingapos/store/{store-id}/sslList"
queryParms
?page=1 => [paging no]
?search= => [null]
?status=true => [active serving size level list]
?status=false => [inactive serving size level list]
Creating a new serving size level.
Method | Type | Description |
---|---|---|
name | String | Serving size level name. |
description | String | Description of the serving size level. |
createdAt | Int | Which store created the serving size level. |
createdFor | bson.String | Store id for which the the serving size level is created. |
ownedBy | bson.String | Account id related to the Store by whom the the serving size level is created. |
curl -X POST \
-H "apikey: generated-api-key" \
-H "Content-Type: application/json" \
-d '{"name":"SOUPS",
"description":"Double double size",
"createdAt":2,
"createdFor":"5c5981496bcf7500013afeb0",
"ownedBy":"5c5981496bcf7500013afeb2"}' \
"https://api.lingaros.com/v1/lingapos/servingSizeLevel" \
Updating a serving size level.
URL:http://api.lingaros.com/v1/lingapos/servingSizeLevel/{serving-size-level-id}
Method | Type | Description |
---|---|---|
activeStatus | String | Serving size level activity status. |
conversions | []ScaleConversion | Scale Units for conversion. |
default | Bool | Is default serving size level. |
description | String | Description of the serving size level. |
name | String | Serving size level name. |
id | bson.String | Serving size level id. |
createdAt | Int | Which store created the serving size level. |
createdFor | bson.String | Store id for which the the serving size level is created. |
ownedBy | bson.String | Account id related to the Store by whom the the serving size level is created. |
curl -X POST \
-H "apikey: generated-api-key" \
-H "Content-Type: application/json" \
-d '{"name":"SOUPS",
"description":"Double double size",
"createdAt":2,
"createdFor":"5c5981496bcf7500013afeb0",
"ownedBy":"5c5981496bcf7500013afeb2"}' \
"https://api.lingaros.com/v1/lingapos/servingSizeLevel" \
Getting the serving size levels of a store by id.
URL:https://api.lingaros.com/v1/lingapos/store/{store-id}/servingSizeLevel/{serving-size-level-id}
curl -X GET -H "apikey: generated-api-key" \
"https://api.lingaros.com/v1/lingapos/store/{store-id}/servingSizeLevel/{serving-size-level-id}"