Operations related to authentication tokens
curl -i -X GET \
'https://subdomain.dealpos.net/api/v3/WriteOff/Invoice/Number?Number=string&Outlet=string&OutletID=string' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{}'
{ "Number": "OLT1/22/12/0058", "Outlet": "Outlet1", "Created": "2023-01-04T11:13:21.33", "CreatedBy": "dealpos", "Amount": 2000, "Reason": "Logistics" }
curl -i -X GET \
'https://subdomain.dealpos.net/api/v3/WriteOff/Invoice?From=2019-08-24&Outlet=Outlet1&OutletID=497f6eca-6276-4993-bfeb-53cbbbba6f08&To=2019-08-24' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'
[ { "Number": "OLT1/22/12/0059", "Outlet": "Outlet1", "Customer": "John", "Created": "2023-01-04T11:13:21.33", "CreatedBy": "dealpos", "Amount": 5000, "Type": "Logistics" }, { "Number": "OLT1/22/12/0058", "Outlet": "Outlet1", "Customer": "Jane", "Created": "2023-01-04T11:13:21.33", "CreatedBy": "dealpos", "Amount": 10000, "Type": "BadDebt" } ]
curl -i -X PUT \
https://subdomain.dealpos.net/api/v3/WriteOff/Invoice \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"date": "2024/02/28",
"Outlet": "Outlet1",
"Number": "OLT1.02.01.23.004",
"Type": "logistic",
"Note": "not paid"
}'
{ "Message": "Your Invoice has been successfully Write Off" }
curl -i -X POST \
https://subdomain.dealpos.net/api/v3/WriteOff/Invoice \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"date": "2024/02/28",
"Outlet": "Outlet1",
"Number": "OLT1.02.01.23.004",
"Type": "logistic",
"Note": "not paid"
}'
{ "Message": "Your Invoice has been successfully Write Off" }
curl -i -X DELETE \
'https://subdomain.dealpos.net/api/v3/WriteOff/Invoice?Number=string&Outlet=string&OutletID=string' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'
{ "Message": "Write Off Invoice Number [OLT1/22/12/0058] has been cancelled" }
curl -i -X GET \
https://subdomain.dealpos.net/api/v3/WriteOff/Invoice/ListInvoiceNumber \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"Outlet": "Outlet1",
"InvoiceNumber": [
"INV001",
"INV002",
"INV003"
]
}'
[ { "Number": "INV001", "Outlet": "Outlet1", "Created": "2023-01-04T11:13:21.33", "CreatedBy": "dealpos", "Amount": 2000, "Tag": "Logistics" }, { "Number": "INV002", "Outlet": "Outlet1", "Created": "2023-01-04T11:13:21.33", "CreatedBy": "dealpos", "Amount": 2000, "Tag": "Logistics" }, { "Number": "INV003", "Outlet": "Outlet1", "Created": "2023-01-04T11:13:21.33", "CreatedBy": "dealpos", "Amount": 2000, "Tag": "Logistics" } ]