Operations related to authentication tokens
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
}'
[ { "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 } ]
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"
}'
[ { "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" } ]
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
}'
{ "Message": "Shift success created" }
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"
}'
{ "Message": "Shift 22b33f3d-e89a-4b4a-89f1-a704740bbbdc has been deleted!" }
curl -i -X GET \
'https://subdomain.dealpos.net/api/v3/Shift/TotalCount?From=2020-05-28&Outlet=Outlet1&PageNumber=1&PageSize=20&To=2020-05-29' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'
{ "Data": [ { … }, { … }, { … }, { … } ], "TotalCount": 50 }
Also available as HTTP POST with the same endpoint
Required Group Role: "Shift" - "VIEW"
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",
"Register": "Outlet1",
"Number": "21.03.00115",
"PageNumber": 1,
"PageSize": 100
}'
{ "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 }
Also available as HTTP POST with the same endpoint
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
}'
{ "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 }
Also available as HTTP POST with the same endpoint
Required Group Role: "Shift" - "VIEW"
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"
}'
{ "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": [ { … } ] }
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"
}'
{ "Message": "Shift Number 21.12.00007 with ID 22b33f3d-e89a-4b4a-89f1-a704740bbbdc has been voided!" }
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"
}'
{ "Message": "Shift Number 21.12.00007 with ID 22b33f3d-e89a-4b4a-89f1-a704740bbbdc has been deleted permanent!" }