Operations related to authentication tokens
curl -i -X GET \
https://subdomain.dealpos.net/api/v3/Supplier \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"PageNumber": 1,
"PageSize": 20
}'
[ { "Name": "A WI", "Code": "TIA20887", "Phone": "0811698616", "Mobile": "0811698616", "Email": "secyliac@gmail.com" }, { "Name": "a. asyura alikha", "Code": "TIA9981", "Phone": "082188891313", "Mobile": "082188891313", "Email": "asyuraalikha@gmail.com" }, { "Name": "A. Dalaisa A. Beso", "Code": "TIA21264", "Phone": "087884993345", "Mobile": "087884993345", "Email": "ndisabeni@yahoo.com" } ]
curl -i -X POST \
https://subdomain.dealpos.net/api/v3/Supplier \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"Email": "hendry@outlook.com",
"Name": "Hendry Wijaya",
"FirstName": "Hendry",
"LastName": "Wijaya",
"Phone": "0216892235",
"Mobile": "0815896321227",
"Address": "Jl.Pluit Karang Jelita no 51",
"Gender": "Male",
"Status": "Active",
"Code": "HW0021",
"Group": "Gold",
"ImageURL": "https://encrypted-tbn0.gstatic.com/images?q=tbn%3AANd9GcR5MITQo_ngwwEGEZqlw7PQLiaO21AoYmLRSkSF5Q2UwJuPgYZx"
}'
{ "ID": "8e92164f-4826-4984-8d1d-7a7280851170" }
curl -i -X PUT \
https://subdomain.dealpos.net/api/v3/Supplier/ByCode \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"Code": "0011",
"Name": "Hendry Wijaya",
"FirstName": "Hendry",
"LastName": "Wijaya",
"Email": "hendryw@gmail.com",
"Phone": "0216892235",
"Mobile": "081589632178",
"Address": "Jl.Pluit Karang Jelita no 51",
"Gender": "Male",
"Group": "Gold",
"Status": "Active"
}'
{ "ID": "4b237266-a20d-4979-87e9-685b8fd41658" }
curl -i -X DELETE \
https://subdomain.dealpos.net/api/v3/Supplier/DeleteByCode \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"Code": "000015"
}'
{ "Message": "Customer ID: 4b237266-a20d-4979-87e9-685b8fd41658 has been deleted successfully." }
curl -i -X GET \
https://subdomain.dealpos.net/api/v3/Supplier/Code \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"Code": "0011"
}'