Operations related to authentication tokens
DealPOS API (3.1.0)
Download OpenAPI description
Overview
URL
Customer Support
Languages
Servers
Production Server
https://{subdomain}/api/v3/
- Production Serverhttps://subdomain.dealpos.net/api/v3/Supplier
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
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
}'Response
application/json
[ { "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" } ]
- Production Serverhttps://subdomain.dealpos.net/api/v3/Supplier
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
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"
}'Response
application/json
{ "ID": "8e92164f-4826-4984-8d1d-7a7280851170" }
- Production Serverhttps://subdomain.dealpos.net/api/v3/Supplier/ByCode
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
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"
}'Response
application/json
{ "ID": "4b237266-a20d-4979-87e9-685b8fd41658" }
- Production Serverhttps://subdomain.dealpos.net/api/v3/Supplier/DeleteByCode
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
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"
}'Response
application/json
{ "Message": "Customer ID: 4b237266-a20d-4979-87e9-685b8fd41658 has been deleted successfully." }
- Production Serverhttps://subdomain.dealpos.net/api/v3/Supplier/Code
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://subdomain.dealpos.net/api/v3/Supplier/Code?Code=AR012345' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Response
application/json
{ "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" }
Request
Also available as HTTP POST with the same endpoint
List Supplier With Total Count
Required Group Role: "Orders" - "VIEW"
Security
OAuth2_clientCredentials
- Production Serverhttps://subdomain.dealpos.net/api/v3/Supplier/WithTotalCount
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
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
}'Response
application/json
{ "Data": [ { … }, { … }, { … } ], "TotalCount": 100 }
- Production Serverhttps://subdomain.dealpos.net/api/v3/Supplier/ListID
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://subdomain.dealpos.net/api/v3/Supplier/ListID?ListID=227427f5-fb25-4f47-9e39-2370fa70d156%2C212347f5-gt52-4127-8148-7780fabcd123' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Response
application/json
[ { "ID": "5acffe34-346f-4888-afd8-0a551e556681", "Name": "Tafta tata", "Email": "Tafta@dealpos.com", "Code": "DP036", "MobilePhone": "081588818888", "Status": "Active" }, { "ID": "c9b9e5d6-78ce-413d-a02b-1de97e7cd125", "Name": "Hendry", "Email": "Hendry@dealpos.com", "Code": "DP008", "MobilePhone": "08158881823423", "Status": "Active" } ]
- Production Serverhttps://subdomain.dealpos.net/api/v3/Supplier/Merge
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
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"
]
}'Response
application/json
{ "Message": "Merge Completed" }