Operations related to authentication tokens
curl -i -X POST \
https://subdomain.dealpos.net/api/v3/User \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"LoginID": "tafta",
"Email": "tafta@dealpos.com",
"Password": "4321",
"Group": [
"Group1",
"Group2"
],
"ListOutlets": [
{
"Outlet": "Outlet1",
"Access": "Read"
},
{
"Outlet": "Outlet2",
"Access": "Write"
}
]
}'
{ "Message": "User Tafta created successfully" }
curl -i -X POST \
https://subdomain.dealpos.net/api/v3/Group \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"Group": "Cashier",
"Role": [
"Sell",
"SellE",
"SellD"
]
}'
{ "Message": "Group Cashier created successfully" }
curl -i -X GET \
'https://subdomain.dealpos.net/api/v3/User/ID?ListID=string' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'
[ { "ID": "550e8400-e29b-41d4-a716-446655440000", "Name": "Admin" }, { "ID": "7b27bbfe-71c4-4f3d-9957-fd1cd57c5f1c", "Name": "Cashier" } ]
curl -i -X GET \
'https://subdomain.dealpos.net/api/v3/User/List?Name=string&PageNumber=1&PageSize=20&Role=string&Status=All%2FSuspend%2FUnsuspend' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'
[ { "LoginID": "Admin", "ID": "550e8400-e29b-41d4-a716-446655440000", "Name": "Ahmad", "Email": "admin@example.com", "Type": 1 }, { "LoginID": "Cashier", "ID": "7b27bbfe-71c4-4f3d-9957-fd1cd57c5f1c", "Name": "Nurul", "Email": "cashier@example.com", "Type": 1 } ]