Operations related to authentication tokens
Also available as HTTP POST (endpoint: /api/v3/Payment/Invoice/p)
Required Group Role: "Payment" - "VIEW"
curl -i -X GET \
https://subdomain.dealpos.net/api/v3/Payment/Invoice \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"From": "2023-01-01",
"To": "2023-01-31"
}'
[ { "Outlet": "Outlet1", "Payments": [ … ] }, { "Outlet": "Outlet2", "Payments": [ … ] } ]
curl -i -X POST \
https://subdomain.dealpos.net/api/v3/Payment/Invoice \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"Outlet": "Outlet1",
"Number": "20.04.00019",
"Payments": [
{
"Date": "2023-01-01",
"Amount": 100,
"Method": "Cash",
"Note": ""
},
{
"Date": "2023-01-01",
"Amount": 100,
"Method": "Debit - Outlet Outlet1",
"Note": ""
}
]
}'
{ "Message": "Invoice Number 20.04.00019 has successfully completed a Paid" }
curl -i -X DELETE \
https://subdomain.dealpos.net/api/v3/Payment/Invoice \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"Outlet": "Outlet1",
"Number": "21.10.00001"
}'
{ "Message": "Invoice Number .21.10.00001 has successfully deleted" }
Terminology Changes
StateFilter, will be changed into UnpaidValidation in the upcoming update, the old one will remain works.
This endpoint is a fractions from API/V3/Payment/Invoice. In This endpoint, you will not need to fill the exact payment amount in order to fill the entire payments (fully paid). You will only need to fill the Amount to 0 (zero). Please see the request example attached.
You must have "ADD" role in "Payment" Module OR "EDIT" role in "Global" Module
curl -i -X POST \
https://subdomain.dealpos.net/api/v3/Payment/Invoice/AddPaymentFull \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"Number": "20.04.00019",
"Outlet": "Outlet Name",
"Payments": [
{
"Date": "2020-04-01",
"Amount": 0,
"Method": "Cash",
"Note": ""
}
],
"UnpaidValidation": false
}'
{ "Message": "Invoice Number 20.04.00019 has successfully completed a Paid" }