Membership
Membership Type
Create a membership type.
URL:https://api.lingaros.com/v1/lingapos/account/{store-id}/memberShipType
Data | Type | Description |
---|---|---|
type | String | Type 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
Data | Type | Description |
---|---|---|
allowanceOverdraftStr | String | Allowance Overdraft |
allowancePeriod | String | Allowance Period (Daily, Weekly, Monthly, Quarterly, Half-Yearly, Yearly) |
allowanceStr | String | Allowance |
name | String | Name of membership plan |
taxExemption | Boolean | Is tax exemption |
type | bson.ObjectId | Id 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'