Operations related to authentication tokens
if "false" it will be process the payment, but if "true" only process the payment with state "Unpaid"
curl -i -X POST \
https://subdomain.dealpos.net/api/v3/Payment/SupplierBill \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"Outlet": "Outlet1",
"Number": "20.04.00019",
"StateFilter": false,
"Payments": [
{
"Date": "2021-04-01T00:00:00",
"Amount": 1000000,
"Method": "Cash",
"Note": "Payment for Invoice Number 20.04.00019"
}
]
}'
{ "Message": "Invoice Number 20.04.00019 has successfully completed a Paid" }
curl -i -X DELETE \
https://subdomain.dealpos.net/api/v3/Payment/SupplierBill \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"Outlet": "Outlet1",
"Number": "21.10.00001"
}'