Operations related to authentication tokens
Also available as HTTP POST with the same endpoint
Required Group Role: "Contacts" - "VIEW"
curl -i -X GET \
https://subdomain.dealpos.net/api/v3/LoyaltyPoint/EmailOrPhone \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"From": "2024-01-01",
"To": "2024-12-31",
"PageNumber": 1,
"PageSize": 10,
"Email": "customer@example.com",
"MobilePhone": "1234567890"
}'
[ { "InvoiceID": "c7224cbd-0292-4060-88f8-2f53f328f904", "Outlet": "Offline Store", "EntryDate": "2024-05-08T14:46:00.01", "Action": "Points Earned", "Invoice": "24.05.00041", "Earned": 50, "Balance": 60, "Remaining": 50, "ExpiryDate": "2024-06-08T14:44:37", "Note": "Paid" }, { "InvoiceID": "a6ca59c2-4dd8-48ef-8dd7-96ba6427c3f8", "Outlet": "Offline Store", "EntryDate": "2024-05-08T14:25:10.42", "Action": "Point Expired", "Invoice": "24.05.00039", "Earned": -990, "Balance": 10, "Remaining": 0, "ExpiryDate": "0001-01-01T00:00:00", "Note": "Expired on 08 May 2024" }, { "InvoiceID": "40c52cfe-6941-421b-b8cd-5cb71b705281", "Outlet": "Offline Store", "EntryDate": "2024-05-08T14:18:21.377", "Action": "Points Earned", "Invoice": "24.05.00040", "Earned": 10, "Balance": 1000, "Remaining": 10, "ExpiryDate": "2024-06-08T14:17:47", "Note": "Paid" }, { "InvoiceID": "6ccc6cc6-fc59-41bf-ae5a-8e2d81e1ff31", "Outlet": "Offline Store", "EntryDate": "2024-05-08T13:53:15.987", "Action": "Points Redeemed", "Invoice": "24.05.00037", "Earned": -10, "Balance": 990, "Remaining": 0, "ExpiryDate": "0001-01-01T00:00:00", "Note": "Points Redeemed" }, { "InvoiceID": "7eb83722-99e4-4fb9-a2db-103673ad258e", "Outlet": "Offline Store", "EntryDate": "2024-05-08T13:40:30.74", "Action": "Points Earned", "Invoice": "24.05.00036", "Earned": 1000, "Balance": 1000, "Remaining": 0, "ExpiryDate": "0001-01-01T00:00:00", "Note": "Points Earned" } ]
curl -i -X GET \
https://subdomain.dealpos.net/api/v3/LoyaltyPoint/ExpirationByEmail \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"Email": "ferdi@example.com"
}'
[ { "Points": 69, "ExpiryDate": "2023-01-31" }, { "Points": 70, "ExpiryDate": "2023-01-26" }, { "Points": 40, "ExpiryDate": "2023-01-24" } ]
curl -i -X GET \
https://subdomain.dealpos.net/api/v3/LoyaltyPoint/ExpirationByMobile \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"MobilePhone": "08968484805"
}'
[ { "Points": 69, "ExpiryDate": "2023-01-31" }, { "Points": 70, "ExpiryDate": "2023-01-26" }, { "Points": 40, "ExpiryDate": "2023-01-24" } ]
Customer mobile phone. This is primary key for the object
curl -i -X PUT \
https://subdomain.dealpos.net/api/v3/LoyaltyPoint/Mobile \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"MobilePhone": "081251545454",
"LoyaltyPoint": 1000,
"Note": "Add loyalty point"
}'
{ "Message": "Your loyalty point has been added by 100 points" }
Also available as HTTP POST (endpoint: /api/v3/LoyaltyPoint/p)
Required Group Role: "Contacts" - "VIEW"