Operations related to authentication tokens
Also available as HTTP POST (endpoint: /api/v3/Customer/p)
Required Group Role: "Contacts" - "VIEW"
curl -i -X GET \
https://subdomain.dealpos.net/api/v3/Customer \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"Name": "Ferdiansyah Rahman",
"Outlet": "Outlet1",
"PageNumber": 1,
"PageSize": 20,
"From": "2021-01-01",
"To": "2021-01-28"
}'
[ { "Name": "A WI", "Code": "TIA20887", "Mobile": "089621973221", "Email": "secyliac@gmail.com", "BirthDate": "1995-03-01T00:00:00", "JoinDate": "2021-01-31T00:00:00", "ID": "298bb6ce-d337-43ab-9c9f-5b289f0f5c95" }, { "Name": "a. asyura alikha", "Code": "TIA9981", "Mobile": "0896219732212", "Email": "asyuraalikha@gmail.com", "BirthDate": "1994-12-17T00:00:00", "JoinDate": "2021-02-28T00:00:00", "ID": "4d055ee5-6c92-4862-8c8d-d62cef19dce5" }, { "Name": "A. Dalaisa A. Beso", "Code": "TIA21264", "Mobile": "089621973223", "Email": "ndisabeni@yahoo.com", "BirthDate": "1996-06-22T00:00:00", "JoinDate": "2021-03-25T00:00:00", "ID": "620bf557-14ff-48ff-aeea-2ab769435830" } ]
curl -i -X PUT \
https://subdomain.dealpos.net/api/v3/Customer \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"Email": "thomy@dealpos.com",
"Name": "Thomy Kurniawan",
"FirstName": "Thomy",
"LastName": "Kurniawan",
"Birthdate": "1989-04-20",
"Phone": "085710977713",
"Mobile": "085710977713",
"Address": "Jl. Muara Karang P3T No.30",
"Gender": false,
"Code": "Tk1010",
"Group": "Gold",
"ExpiredGroup": "2018-12-31",
"LoyaltyPoint": 88,
"Status": "Active"
}'
{ "ID": "c27bfb13-4936-43e5-bd7d-410dc8d041c2", "Message": "Record updated" }
curl -i -X POST \
https://subdomain.dealpos.net/api/v3/Customer \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"Email": "Hendry@dealpos.com",
"Name": "Hendry",
"FirstName": "Hendry",
"LastName": "Wijaya",
"Birthdate": "1994-03-21",
"Phone": "0215865894",
"Mobile": "08569314515",
"Address": "Jl. Muara Karang P3T No.30",
"Gender": false,
"Status": "Active",
"Code": "HW001",
"Group": "Gold",
"ExpiredGroup": "2019-12-31",
"LoyaltyPoint": 88,
"ImageURL": "https://encrypted-tbn0.gstatic.com/images?q=tbn%3AANd9GcR5MITQo_ngwwEGEZqlw7PQLiaO21AoYmLRSkSF5Q2UwJuPgYZx",
"SignUpOutlet": "Outlet1"
}'
{ "ID": "2ce78ff3-a07d-4205-ba93-1a9d22172985" }
curl -i -X DELETE \
https://subdomain.dealpos.net/api/v3/Customer \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"Email": "hendry@dealpos.com"
}'
"Customer has been deleted successfully."