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", "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", "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!" }
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 '{
"Register": "Outlet1",
"Number": "21.03.00115",
"PageNumber": 1,
"PageSize": 100
}'
{ "Data": [ { … }, { … } ], "TotalRow": 2 }
Also available as HTTP POST with the same endpoint