Operations related to authentication tokens
curl -i -X GET \
https://subdomain.dealpos.net/api/v3/WriteOff/Option \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'
[ { "Name": "Write Off" }, { "Name": "Bad Debt" } ]
curl -i -X POST \
https://subdomain.dealpos.net/api/v3/WriteOff/Option \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"Name": "Bad Debt"
}'
{ "Message": "Bad Debt added successfully" }
curl -i -X DELETE \
https://subdomain.dealpos.net/api/v3/WriteOff/Option \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"Name": "Bad Debt"
}'
{ "Message": "Bad Debt deleted successfully" }