Skip to main content

Coursing

API Key and Store id that can be used in staging environment.

Store_id: 5c5981496bcf7500013afeb0

API Key: rna4etAXd11XRqbMTcNnWca216daxiFE

Getting the courses of a store.

URL:https://api.lingaros.com/v1/lingapos/store/{store-id}/courses

curl -X GET -H "apikey: generated-api-key" \ 
"https://api.lingaros.com/v1/lingapos/store/{store-id}/courses"

queryParms


?page=1 => [paging no]
?search= => [null]
?status=true => [active courses list]
?status=false => [inactive courses list]

Creating a new coursing.

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

MethodTypeDescription
priorityIntCoursing priority.
nameStringCoursing name.
storebson.ObjectIdId of the store for which the coursing is created.
createdAtIntWhich store created the coursing.
createdForbson.StringStore id for which the coursing is created.
ownedBybson.StringAccount id related to the Store by whom the coursing is created.
curl -X POST \ 
-H "apikey: generated-api-key" \
-H "Content-Type: application/json" \
-d '{"priority":1,
"name":"SOUPS",
"store":"5c5981496bcf7500013afeb0",
"createdAt":2,
"createdFor":"5c5981496bcf7500013afeb0",
"ownedBy":"5c5981496bcf7500013afeb2"}' \
"https://api.lingaros.com/v1/lingapos/course" \

Updating a coursing.

URL:http://api.lingaros.com/v1/lingapos/course/{coursing-id}

MethodTypeDescription
idbson.ObjectIdCoursing id.
originalIDbson.ObjectIdOriginal coursing id.
nameStringName of the coursing.
createdAtIntWhich store created the coursing.
createdForbson.StringStore id for which the coursing is created.
ownedBybson.StringAccount id related to the Store by whom the coursing is created.
createdBybson.StringUnique user Id by whom the coursing is created.
dateCreatedtime.TimeDate when the coursing is created.
modifiedBybson.StringUnique user Id by whom the coursing is modified.
lastUpdatedtime.TimeDate when the coursing is updated.
activeStatusBoolCoursing activity status.
priorityIntCoursing priority.
curl -X PUT \ 
-H "apikey: generated-api-key" \
-H "Content-Type: application/json" \
-d '{"id":"5e1db87fad2eb30001116024",
"originalID":"5e1db87fad2eb30001116024",
"name":"SOUPS1",
"createdAt":2,
"createdFor":"5c5981496bcf7500013afeb0",
"ownedBy":"5c5981496bcf7500013afeb2",
"createdBy":"5c5981496bcf7500013afeb1",
"dateCreated":"2020-01-14T12:47:59.488Z",
"modifiedBy":"5c5981496bcf7500013afeb1",
"lastUpdated":"2020-01-14T12:47:59.488Z",
"activeStatus":true,
"priority":1}' \
"https://api.lingaros.com/v1/lingapos/course/{coursing-id}" \