Operations related to authentication tokens
/
Get List Of Shifts with T...
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/Shift
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
https://subdomain.dealpos.net/api/v3/Shift \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"Outlet": "Outlet1",
"From": "2020-05-28",
"To": "2020-05-29",
"PageNumber": 1,
"PageSize": 10
}'Response
application/json
[ { "Open": "2020-05-28T15:24:45.293", "Close": "2020-05-28T15:25:27.68", "Cashier": "dealpos", "ID": "22b33f3d-e89a-4b4a-89f1-a704740bbbdc", "Number": "20.05.0001", "SalesNTax": 16062.75, "TotalInvoice": 1, "Outlet": "Outlet1", "Register": "Outlet1", "Visitors": 10 }, { "Open": "2020-05-29T15:24:05.13", "Close": "2020-05-29T15:24:15.887", "Cashier": "dealpos", "ID": "c428483a-055b-4123-8c1d-59eb35152830", "Number": "20.05.0002", "SalesNTax": 15000, "TotalInvoice": 1, "Outlet": "Outlet1", "Register": "Outlet1", "Visitors": 10 } ]
- Production Serverhttps://subdomain.dealpos.net/api/v3/Shift
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
https://subdomain.dealpos.net/api/v3/Shift \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"Register": "Outlet1"
}'Response
application/json
[ { "Number": "OLT1/21/12/0010", "Sales": 60000, "Tax": 2000, "Start": "2021-12-15T14:09:06.567", "End": "2021-12-15T14:09:13.8907518+07:00" } ]
- Production Serverhttps://subdomain.dealpos.net/api/v3/Shift
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://subdomain.dealpos.net/api/v3/Shift \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"Register": "Outlet1",
"OpAmount": 100000
}'Response
application/json
{ "Message": "Shift success created" }
- Production Serverhttps://subdomain.dealpos.net/api/v3/Shift
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
https://subdomain.dealpos.net/api/v3/Shift \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"Outlet": "Outlet1",
"Number": "21.12.00007"
}'Response
application/json
{ "Message": "Shift 22b33f3d-e89a-4b4a-89f1-a704740bbbdc has been deleted!" }
- Production Serverhttps://subdomain.dealpos.net/api/v3/Shift/TotalCount
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://subdomain.dealpos.net/api/v3/Shift/TotalCount?PageNumber=1&PageSize=20&Outlet=Outlet1&From=2020-05-28&To=2020-05-29' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Response
application/json
{ "Data": [ { … }, { … }, { … }, { … } ], "TotalCount": 50 }
Request
Also available as HTTP POST with the same endpoint
Get Shift Invoice Detail
Required Group Role: "Shift" - "VIEW"
Security
OAuth2_clientCredentials
- Production Serverhttps://subdomain.dealpos.net/api/v3/Shift/InvoiceDetail
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
https://subdomain.dealpos.net/api/v3/Shift/InvoiceDetail \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"ID": "98180136-e9e8-4f7f-ac00-afd45723ad62",
"PageNumber": 1,
"PageSize": 100
}'Response
application/json
{ "Data": [ { … }, { … } ], "Open": "2020-05-27T11:10:50.57", "Close": "2020-05-27T11:10:50.57", "Cashier": "Jane", "Number": "20.05.00157", "Outlet": "Outlet1", "Register": "Outlet1", "TotalInvoice": 2, "SalesNTax": 102400, "Visitor": 2, "ARAmount": 500000, "ARTransaction": 2, "TotalRow": 2 }
Request
Also available as HTTP POST with the same endpoint
Get Shift Invoice Detail with Note
Security
OAuth2_clientCredentials
- Production Serverhttps://subdomain.dealpos.net/api/v3/Shift/InvoiceDetailWithNote
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
https://subdomain.dealpos.net/api/v3/Shift/InvoiceDetailWithNote \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"Register": "Outlet1",
"Number": "21.03.00115",
"PageNumber": 1,
"PageSize": 100,
"NoteVisible": true
}'Response
application/json
{ "Data": [ { … }, { … } ], "Open": "2020-05-27T11:10:50.57", "Close": "2020-05-27T11:10:50.57", "Cashier": "Jane", "Number": "20.05.00157", "Outlet": "Outlet1", "Register": "Outlet1", "TotalInvoice": 2, "SalesNTax": 102400, "Visitor": 2, "ARAmount": 500000, "ARTransaction": 2, "TotalRow": 2 }
Request
Also available as HTTP POST with the same endpoint
Get Shift By Number
Required Group Role: "Shift" - "VIEW"
Security
OAuth2_clientCredentials
- Production Serverhttps://subdomain.dealpos.net/api/v3/Shift/Number
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
https://subdomain.dealpos.net/api/v3/Shift/Number \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"Outlet": "Outlet1",
"Number": "21.04.002"
}'Response
application/json
{ "Open": "14 Apr 2021 10:19", "Close": "14 Apr 2021 10:19", "Number": "21.04.002", "Cashier": "dealpos", "Register": "Outlet1", "TotalInvoice": 2, "SalesNTax": 75000, "Visitor": 2, "Invoice": [ { … }, { … } ], "Payments": [ { … } ] }
- Production Serverhttps://subdomain.dealpos.net/api/v3/Shift/Void
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
https://subdomain.dealpos.net/api/v3/Shift/Void \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"Outlet": "Outlet2",
"Number": "21.12.00007",
"Note": "Cancelled by Manager"
}'Response
application/json
{ "Message": "Shift Number 21.12.00007 with ID 22b33f3d-e89a-4b4a-89f1-a704740bbbdc has been voided!" }
- Production Serverhttps://subdomain.dealpos.net/api/v3/Shift/Erase
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
https://subdomain.dealpos.net/api/v3/Shift/Erase \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"Outlet": "Outlet2",
"Number": "21.12.00007",
"Note": "Cancelled"
}'Response
application/json
{ "Message": "Shift Number 21.12.00007 with ID 22b33f3d-e89a-4b4a-89f1-a704740bbbdc has been deleted permanent!" }