curl -b cookies.txt -c cookies.txt \
-H "Content-Type: application/json" \
-d '{"action":"get_credit"}' \
https://apitest.tunimobile.com/v1/user/do_action
{
"status": "success",
"code": 200,
"message": "OK",
"data": { "credit": 152.35, "gradeStar": 3 }
}
Account
Get the balance
Read the shop’s current balance.
curl -b cookies.txt -c cookies.txt \
-H "Content-Type: application/json" \
-d '{"action":"get_credit"}' \
https://apitest.tunimobile.com/v1/user/do_action
{
"status": "success",
"code": 200,
"message": "OK",
"data": { "credit": 152.35, "gradeStar": 3 }
}
Requires login. Call this after each printed voucher to refresh the displayed balance.
Body
string
required
get_creditResponse
number
Shop balance in TND.
integer | null
Shop grade (number of stars),
null if none.curl -b cookies.txt -c cookies.txt \
-H "Content-Type: application/json" \
-d '{"action":"get_credit"}' \
https://apitest.tunimobile.com/v1/user/do_action
{
"status": "success",
"code": 200,
"message": "OK",
"data": { "credit": 152.35, "gradeStar": 3 }
}