Loyalty
Creating loyalty customer.
Method | Type | Description |
---|---|---|
imageAvailable | Bool | Check if an image is available. |
firstName | String | Customer first name. |
lastName | String | Customer last name. |
emailId | String | Customer e-mail address. |
phoneNumber | String | Customer phone number. |
gender | String | Customer gender. |
dateOfBirth | String | Customer date of birth. |
isLoyaltyCustomer | Boolean | Check if loyalty customer. |
addressLine1 | String | Address line 1. |
addressLine2 | String | Address line 2. |
city | String | City information. |
gateCode | String | Gate code. |
state | String | State information. |
zipCode | String | Zip code. |
country | String | Country information. |
nationality | String | Nationality code. |
customerIdentificationNumber | String | Customer identification number. |
account | String | Account ID. |
curl -X POST \
-H "apikey: generated-api-key" \
-H "Content-Type: application/json" \
-d '{
"imageAvailable": false,
"firstName": "Loyalty",
"lastName": "Customer",
"emailId": "firstLoyaltyCustomer@mail.com",
"phoneNumber": "9876543216",
"gender": "Male",
"dateOfBirth": "03-Nov-2019",
"isLoyaltyCustomer": true,
"addressLine1": "XXXX",
"addressLine2": "YYYY",
"city": "Chennai",
"gateCode": "T, Anna Nagar",
"state": "TamilNadu",
"zipCode": "600040",
"country": "India",
"nationality": "Indian",
"customerIdentificationNumber": "#456",
"account": "5a8e8bff9230ca318b7b755c"
}' \
https://api.lingaros.com/v1/lingapos/customer\
Updating account loyalty information.
URL:https://api.lingaros.com/v1/lingapos/account/{account_id}/updateAccountInfo
Method | Type | Description |
---|---|---|
updateValue | Bool | Check if the account is updated. |
key | String | Loyalty update key. |
option | Int | Loyalty update option. |
curl -X PUT \
-H "apikey: generated-api-key" \
-H "Content-Type: application/json" \
-d '{
"updateValue": true,
"key": "hasCustomerLevelLoyalty",
"option": 3
}' \
https://api.lingaros.com/v1/lingapos/account/5a8e8bff9230ca318b7b755c/updateAccountInfo\
Creating loyalty customer.
Method | Type | Description |
---|---|---|
imageAvailable | Bool | Check if an image is available. |
firstName | String | Customer first name. |
lastName | String | Customer last name. |
emailId | String | Customer e-mail address. |
phoneNumber | String | Customer phone number. |
gender | String | Customer gender. |
dateOfBirth | String | Customer date of birth. |
isLoyaltyCustomer | Boolean | Check if loyalty customer. |
addressLine1 | String | Address line 1. |
addressLine2 | String | Address line 2. |
city | String | City information. |
gateCode | String | Gate code. |
state | String | State information. |
zipCode | String | Zip code. |
country | String | Country information. |
nationality | String | Nationality code. |
customerIdentificationNumber | String | Customer identification number. |
account | String | Account ID. |
curl -X POST \
-H "apikey: generated-api-key" \
-H "Content-Type: application/json" \
-d '{
"imageAvailable": false,
"firstName": "Loyalty",
"lastName": "Customer",
"emailId": "firstLoyaltyCustomer@mail.com",
"phoneNumber": "9876543216",
"gender": "Male",
"dateOfBirth": "03-Nov-2019",
"isLoyaltyCustomer": true,
"addressLine1": "XXXX",
"addressLine2": "YYYY",
"city": "Chennai",
"gateCode": "T, Anna Nagar",
"state": "TamilNadu",
"zipCode": "600040",
"country": "India",
"nationality": "Indian",
"customerIdentificationNumber": "#456",
"account": "5a8e8bff9230ca318b7b755c"
}' \
https://api.lingaros.com/v1/lingapos/customer\
Updating customer loyalty points.
URL:https://api.lingaros.com/v1/lingapos/Customerloyalty/{customer_id}
Method | Type | Description |
---|---|---|
account | String | Account id. |
loyaltyPoints | Int | Customer loyalty points. |
loyaltyReason | String | Loyalty points update reason. |
loyaltyPointDifference | Int | Loyalty point difference. |
adjustedBy | String | Name of the employee who adjusted the loyalty points update. |
curl -X PUT \
-H "apikey: generated-api-key" \
-H "Content-Type: application/json" \
-d '{
"account": "5a8e8bff9230ca318b7b755c",
"loyaltyPoints": 350,
"loyaltyReason": "Top Five Customer",
"loyaltyPointDifference": 340,
"adjustedBy": "Doe j"
}' \
https://api.lingaros.com/v1/lingapos/customerloyalty/5dbffafd278a2334f76a45a2\
Listing customer loyalty points change details.
URL:https://api.lingaros.com/v1/lingapos/customer/{customer_id}/getCustomerLoyalties
Method | Type | Description |
---|---|---|
date | String | Date of the loyalty information update. |
ticketID | String | Ticked ID. |
type | String | Loyalty information update type. |
amount | Int | Amount of loyalty point difference. |
notes | String | Notes. |
curl -X GET \
-H "apikey: generated-api-key" \
-H "Content-Type: application/json" \
-d '{
"loyaltyDetails": [
{
"date": "04-Nov-2019",
"ticketID": "",
"type": "Enrollment",
"amount": "10.00",
"notes": ""
},
{
"date": "04-Nov-2019",
"ticketID": "",
"type": "ResetLoyalty",
"amount": "340.00",
"notes": ""
}
]
}' \
https://api.lingaros.com/v1/lingapos/customer/5dbffafd278a2334f76a45a2/getCustomerLoyalties\