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/
Request
Also available as HTTP POST (endpoint: /api/v3/Outlet/p)
Get List of Outlets
Required Group Role: "Outlets" - "VIEW"
Security
OAuth2_clientCredentials
- Production Serverhttps://subdomain.dealpos.net/api/v3/Outlet
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://subdomain.dealpos.net/api/v3/Outlet?Name=Outlet1&Access=All&SuspendedStatus=No+%2F+Yes+%2F+All' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Response
application/json
[ { "ID": "227427f5-fb25-4f47-9e39-2370fa70d156", "Name": "Outlet1", "Code": "001", "Suspended": false }, { "ID": "28342qw5-fb25-4287-3259-2210faaf156", "Name": "Outlet2", "Code": "002", "Suspended": false }, { "ID": "30e4a41d-7fc6-46f5-9945-fd5e0642w3e3", "Name": "Outlet3", "Code": "003", "Suspended": false } ]
- Production Serverhttps://subdomain.dealpos.net/api/v3/Outlet
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
https://subdomain.dealpos.net/api/v3/Outlet \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"Outlet": "Emporium Pluit",
"Code": "001",
"Receipt": "001",
"NegativeInventory": "Yes"
}'Response
application/json
{ "Message": "Outlet has been updated" }
- Production Serverhttps://subdomain.dealpos.net/api/v3/Outlet
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://subdomain.dealpos.net/api/v3/Outlet \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"Name": "Emporium Pluit",
"Code": "001",
"Receipt": "001",
"NegativeInventory": "Yes"
}'Response
application/json
{ "Message": "Outlet has been created" }
- Production Serverhttps://subdomain.dealpos.net/api/v3/Outlet
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
https://subdomain.dealpos.net/api/v3/Outlet \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"Code": "emporium"
}'Response
application/json
{ "Message": "Outlet Emporium Pluit has been deleted" }
- Production Serverhttps://subdomain.dealpos.net/api/v3/Outlet/ID/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
https://subdomain.dealpos.net/api/v3/Outlet/ID/227427f5-fb25-4f47-9e39-2370fa70d156 \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Response
application/json
{ "ID": "227427f5-fb25-4f47-9e39-2370fa70d156", "Name": "Outlet1", "Code": "001", "Suspended": false }
- Production Serverhttps://subdomain.dealpos.net/api/v3/Outlet/ListID
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://subdomain.dealpos.net/api/v3/Outlet/ListID?ListID=227427f5-fb25-4f47-9e39-2370fa70d156%2C+212347f5-gt52-4127-8148-7780fabcd123' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Response
application/json
[ { "ID": "227427f5-fb25-4f47-9e39-2370fa70d156", "Name": "Outlet1", "Code": "001", "Suspended": false }, { "ID": "212347f5-gt52-4127-8148-7780fabcd123", "Name": "Outlet1", "Code": "001", "Suspended": false } ]
Request
Also available as HTTP POST with the same endpoint
Get Outlet Detail
Required Group Role: "Outlet" - "VIEW"
Security
OAuth2_clientCredentials
- Production Serverhttps://subdomain.dealpos.net/api/v3/Outlet/Detail
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
https://subdomain.dealpos.net/api/v3/Outlet/Detail \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"Name": "Shopee",
"Code": "Outlet2"
}'Response
application/json
{ "ID": "410ba2b7-8eff-4759-b5f1-cf47b33ef1cc", "Code": "OTL1", "Name": "Outlet1", "Email": "hendry@gmail.com", "SalesTarget": 50000, "Suspended": false, "MinimumInventory": 0, "EnabledKitchenDisplay": false, "ReceiptTemplate": { "Code": "B1", "OutletName": "Outlet1", "Address": "Muara Karang P 3 Timur No 30\r\nJakarta Utara, Indonesia", "ContactInfo": "Phone: 021-66600886" } }
- Production Serverhttps://subdomain.dealpos.net/api/v3/Outlet/Register
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://subdomain.dealpos.net/api/v3/Outlet/Register?outlet=Outlet1' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"Outlet": "Outlet1"
}'Response
application/json
[ { "Outlet": "Outlet1", "Register": [ … ] } ]
- Production Serverhttps://subdomain.dealpos.net/api/v3/Outlet/Register/ID
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://subdomain.dealpos.net/api/v3/Outlet/Register/ID?ListID=227427f5-fb25-4f47-9e39-2370fa70d156%2C+212347f5-gt52-4127-8148-7780fabcd123' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Response
application/json
[ { "Outlet": "Outlet1", "Register": [ … ] }, { "Outlet": "Outlet2", "Register": [ … ] } ]