Operations related to authentication tokens
DealPOS API (3.1.0)
Download OpenAPI description
Overview
URL
Customer Support
Languages
Servers
Production Server
https://{subdomain}/
Bodyapplication/json
One of:
Customer email address. Backwards compatibility with property "Email"
Example: "sandbox@dealpos.com"
Specifies the starting entry of data to retreive. Example: 1 = first page, 2 = second page.
Example: 1
- Production Serverhttps://subdomain.dealpos.net/api/v3/Report
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://subdomain.dealpos.net/api/v3/Report \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"Outlet": "Outlet1",
"From": "2021-03-01T00:00:00",
"To": "2021-03-31T00:00:00",
"CustomerEmail": "sandbox@dealpos.com",
"CustomerMobile": 6281234567890,
"PageNumber": 1,
"PageSize": 100,
"Tag": [
"Shopee",
"TikTok"
]
}'Response
{ "Data": [ { … } ], "TotalRow": 1 }
- Production Serverhttps://subdomain.dealpos.net/api/v3/Report/SalesPerson
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://subdomain.dealpos.net/api/v3/Report/SalesPerson?From=2021-01-01&To=2021-01-31&Outlet=Outlet+1' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Response
application/json
[ { "SalesPerson": "James", "Transaction": 1, "Quantity": 1, "Sales": 8000, "Tax": 0, "SalesNTax": 8000, "Cost": 2000, "Profit": 6000 }, { "SalesPerson": "Ferdiansyah Rahman", "Transaction": 1, "Quantity": 2, "Sales": 20000, "Tax": 0, "SalesNTax": 20000, "Cost": 1000000, "Profit": -980000 } ]
- Production Serverhttps://subdomain.dealpos.net/api/v3/Report/GetSalesAggregate
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://subdomain.dealpos.net/api/v3/Report/GetSalesAggregate?From=2021-03-01T00%3A00%3A00&To=2021-03-31T00%3A00%3A00' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Response
application/json
{ "Sales": 817580392305.9696, "Tax": 10337115.181, "Cost": 134146734326.6699, "Profit": 683433657979.2997, "InvoiceCount": 1238, "Quantity": 713339.722, "Gross": 817579951765.564 }
- Production Serverhttps://subdomain.dealpos.net/api/v3/Report/OutletPerformance
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://subdomain.dealpos.net/api/v3/Report/OutletPerformance?From=2021-01-01&To=2021-01-31&Outlet=Outlet1' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Response
application/json
[ { "Outlet": "Outlet2", "Transaction": 4, "Sales": 25120260, "Tax": 0, "SalesNTax": 25120260, "Cost": 10123590.91, "Profit": 14996669.09 }, { "Outlet": "Outlet1", "Transaction": 23, "Sales": 10024000, "Tax": 0, "SalesNTax": 10024000, "Cost": 5835862.6, "Profit": 4188137.4 } ]
- Production Serverhttps://subdomain.dealpos.net/api/v3/Report/WithItemNetSales
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://subdomain.dealpos.net/api/v3/Report/WithItemNetSales?Outlet=Outlet1&From=2021-01-01&To=2021-01-31&PageNumber=1&PageSize=20' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Response
application/json
{ "Data": [ { … } ], "TotalRow": 1 }
- Production Serverhttps://subdomain.dealpos.net/api/v3/Report/DailySales
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://subdomain.dealpos.net/api/v3/Report/DailySales \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"Outlet": [
"Outlet1"
],
"Year": 2021
}'Response
application/json
[ { "Month": "January", "Trans": 34, "SalesNTax": 1021000, "Cost": 881615.75 }, { "Month": "February", "Trans": 376, "SalesNTax": 135397168.68, "Cost": 97501389.32 }, { "Month": "March", "Trans": 311, "SalesNTax": 45215217.85, "Cost": 34635477.25 }, { "Month": "April", "Trans": 86, "SalesNTax": 18103161.03, "Cost": 17157404.54 }, { "Month": "May", "Trans": 5, "SalesNTax": 247000.12, "Cost": 90522.17 }, { "Month": "June", "Trans": 94, "SalesNTax": 13250883.61, "Cost": 18746522.55 }, { "Month": "July", "Trans": 139, "SalesNTax": 14682156.82, "Cost": 17858903.23 }, { "Month": "August", "Trans": 38, "SalesNTax": 1573348.5, "Cost": 9734012.73 }, { "Month": "September", "Trans": 108, "SalesNTax": 468493094.25, "Cost": 17126179.21 }, { "Month": "October", "Trans": 152, "SalesNTax": 34584026.75, "Cost": 4806827.8 }, { "Month": "November", "Trans": 166, "SalesNTax": 26655324, "Cost": 14904432.27 } ]
- Production Serverhttps://subdomain.dealpos.net/api/v3/Report/WithItemNetSalesComplete
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://subdomain.dealpos.net/api/v3/Report/WithItemNetSalesComplete?PageNumber=1&PageSize=20&From=2021-11-01T00%3A00%3A00&To=2021-11-30T23%3A59%3A59&Outlet=Outlet1&Tags=Offline%2CMarketplace&Email=fendi%40gmail.com&CustomerMobile=08123456789&NoteVisible=true' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Response
application/json
{ "Data": [ { … } ], "TotalRow": 1 }
- Production Serverhttps://subdomain.dealpos.net/api/v3/Report/ProductSold
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://subdomain.dealpos.net/api/v3/Report/ProductSold?Outlet=Outlet1&OutletID=123e4567-e89b-12d3-a456-426614174000&VariantCode=VAR12345&From=2021-01-01&To=2021-01-31&Category=Shirt&Sales=Ferdi&CustomerEmail=customer%40example.com&Tags=Summer&Type=All&Scope=Product' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Response
application/json
[ { "Name": "Baju Summer", "Code": "SummerShirt", "Quantity": 12, "Cost": 10000, "Gross": 20000, "Sales": 15000, "Profit": 5000 }, { "Name": "Baju Winter", "Code": "WinterShirt", "Quantity": 15, "Cost": 20000, "Gross": 35000, "Sales": 30000, "Profit": 10000 } ]
- Production Serverhttps://subdomain.dealpos.net/api/v3/Report/InvoiceGroupByOutletNTag
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://subdomain.dealpos.net/api/v3/Report/InvoiceGroupByOutletNTag \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"From": "2022-12-25",
"To": "2022-12-31",
"Outlet": [
"Outlet1",
"Outlet2"
],
"Tag": [
"Shopee",
"Tokopedia",
"TikTok"
]
}'Response
application/json
[ { "Outlet": "Outlet1", "Tag": "Shopee", "Date": "2023-03-10T00:00:00", "Sum": 450000, "Count": 2 }, { "Outlet": "Outlet1", "Tag": "Tokopedia", "Date": "2023-03-10T00:00:00", "Sum": 550000, "Count": 10 }, { "Outlet": "Outlet2", "Tag": "Shopee", "Date": "2023-03-10T00:00:00", "Sum": 4500000, "Count": 22 }, { "Outlet": "Outlet2", "Tag": "Tokopedia", "Date": "2023-03-10T00:00:00", "Sum": 55000, "Count": 1 } ]
- Production Serverhttps://subdomain.dealpos.net/api/v3/Report/ProductSold/BySKUGroupDay
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://subdomain.dealpos.net/api/v3/Report/ProductSold/BySKUGroupDay?VariantCode=BAG01&VariantID=5c064c24-c40d-4912-9be6-1c06515d7032&From=2023-02-28&To=2023-03-28' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Response
application/json
[ { "Date": "2023-02-28", "Quantity": 10 }, { "Date": "2023-03-01 ", "Quantity": 15 }, { "Date": "2023-03-05", "Quantity": 17 }, { "Date": "2023-03-09", "Quantity": 20 }, { "Date": "2023-03-14", "Quantity": 22 }, { "Date": "2023-03-18", "Quantity": 8 }, { "Date": "2023-03-21", "Quantity": 50 }, { "Date": "2023-03-27", "Quantity": 10 }, { "Date": "2023-03-28", "Quantity": 29 } ]