Skip to main content

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.

URL:http://api.lingaros.com/v1/lingapos/servingSizeLevel

MethodTypeDescription
nameStringServing size level name.
descriptionStringDescription of the serving size level.
createdAtIntWhich store created the serving size level.
createdForbson.StringStore id for which the the serving size level is created.
ownedBybson.StringAccount 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}

MethodTypeDescription
activeStatusStringServing size level activity status.
conversions[]ScaleConversionScale Units for conversion.
defaultBoolIs default serving size level.
descriptionStringDescription of the serving size level.
nameStringServing size level name.
idbson.StringServing size level id.
createdAtIntWhich store created the serving size level.
createdForbson.StringStore id for which the the serving size level is created.
ownedBybson.StringAccount 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}"