Skip to main content

Membership

Membership Type

Create a membership type.

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

DataTypeDescription
typeStringType of membership
curl --location --request POST 'https://api.lingaros.com/v1/lingapos/account/{store-id}/memberShipType' \
--header 'apikey: generated-api-key' \
--header 'Content-Type: application/json' \
--data-raw '{
"type": "{membership-type}"
}'

Retrieve membership types

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

curl --location --request GET 'https://api.lingaros.com/v1/lingapos/account/{store-id}/memberShipTypes' \
--header 'apikey: generated-api-key'

Membership Plan

Create a membership plan

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

DataTypeDescription
allowanceOverdraftStrStringAllowance Overdraft
allowancePeriodStringAllowance Period (Daily, Weekly, Monthly, Quarterly, Half-Yearly, Yearly)
allowanceStrStringAllowance
nameStringName of membership plan
taxExemptionBooleanIs tax exemption
typebson.ObjectIdId of membership type
curl --location --request POST 'https://api.lingaros.com/v1/lingapos/account/{store-id}/memberShipPlan' \
--header 'apikey: generated-api-key' \
--header 'Content-Type: application/json' \
--data-raw '{
"allowanceOverdraftStr": "0.01",
"allowancePeriod": "Quarterly",
"allowanceStr": "0.01",
"name": "test",
"taxExemption": true,
"type": "{membership-type-id}"
}'

Retrieve membership plans

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

curl --location --request GET 'https://api.lingaros.com/v1/lingapos/account/{store-id}/memberShipPlans' \
--header 'apikey: generated-api-key'