Operations related to authentication tokens
Also available as HTTP POST (endpoint: /api/v3/Notification/p)
Required Group Role: "My Profile" - "Notification" OR "Global" - "EDIT"
curl -i -X GET \
https://subdomain.dealpos.net/api/v3/Notification \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"Outlet": "Outlet1",
"From": "2022-03-17",
"To": "2022-03-17"
}'
[ { "ID": "7f7b85db-da32-4fe8-8118-f071ba36f0a0", "ObjectID": "00000000-0000-0000-0000-000000000000", "OutletName": "Offline", "Header": "Customer has visited store 5 times", "Body": "male, 30 years old", "Created": "2022-03-17T08:10:10.15", "URL": "https://www.google.com/", "TypeID": "0", "Type": "None" }, { "ID": "ce34ace3-2fec-4b87-8ae1-9338eed379a3", "ObjectID": "00000000-0000-0000-0000-000000000000", "OutletName": "Offline", "Header": "Customer has visited store 5 times", "Body": "male, 30 years old", "Created": "2022-03-17T08:09:51.367", "URL": "https://www.google.com/", "TypeID": "0", "Type": "None" } ]
curl -i -X POST \
https://subdomain.dealpos.net/api/v3/Notification \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"Outlet": "Outlet1",
"Header": "Jane visits this store",
"Body": "This customer likes to buy T-shirt",
"URL": "https://www.mybrand.com/Products/1704"
}'
{ "Message": "Success" }
Date from of notification created which will be deleted. this is primary key for the object
curl -i -X DELETE \
https://subdomain.dealpos.net/api/v3/Notification \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"Outlet": "Outlet1",
"From": "2022-03-17",
"To": "2022-03-17"
}'
{ "Message": "Push Notification has been deleted!" }
Also available as HTTP POST with the same endpoint
Required Group Role: "My Profile" - "Notification" OR "Global" - "EDIT"
curl -i -X GET \
https://subdomain.dealpos.net/api/v3/Notification/WithTotalCount \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"Outlet": "Outlet1",
"From": "2020-02-28",
"To": "2020-03-16"
}'
{ "Data": [ { … }, { … } ], "TotalCount": 2 }