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"
}'
{ "Name": "Hendry", "Email": "hendry@outlook.comm", "Title": "Mr", "FirstName": "Hendry", "LastName": "Wijaya", "Gender": "Male", "Code": "AR012345", "Phone": "0216892235", "MobilePhone": "081574945443111", "Address": "Jl.Pluit Karang Jelita no 51", "ImageURL": "//res.cloudinary.com/dealposdev/image/upload/Contact/7d8bb3dc-cbd1-4b56-98a7-ff3557347817/images", "Status": "Active" }
Also available as HTTP POST with the same endpoint
Required Group Role: "Orders" - "VIEW"
curl -i -X GET \
https://subdomain.dealpos.net/api/v3/Supplier/WithTotalCount \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"PageNumber": 1,
"PageSize": 20
}'
{ "Data": [ { … }, { … }, { … } ], "TotalCount": 100 }
curl -i -X PUT \
https://subdomain.dealpos.net/api/v3/Supplier/Merge \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"mergeTarget": "f930a0ba-21da-47fd-99a4-5dcc98fb10c8",
"deleted": [
"7156869b-6c3d-4761-8118-77efafca87cc",
"7156869b-6c3d-4761-8118-77efafca87cb"
]
}'
{ "Message": "Merge Completed" }