Get user account balance via API

I noticed in the code there is a reference to /api/account/balance endpoint

When i try this in postman i get

Required parameter missing. Expected parameter(s) :  string:username, string:password, string:object (optional), string:apns_token"

Does this work or perhaps its not really built in?

Hello @NickJ
Good day,
Can you please check whether the API x-auth token key is correct or not?
if possible please share with us error API screenshot
Thank You

1 Like

After entering entering the required parameters (with arbitrary values) I think the issue is more clear. There is no method for this end point, so I guess getting a user balance via API doesnt exist?

I tried GET and POST just in case.

Hello @NickJ
Good day,
have you logged in as an admin in API can you please share with us one short video and some details so we can rectify the scenario as I see it seems some users do not have login issues that’s why I am asking for some more details please share accordingly.
Thank You

1 Like

Thanks and I will record a video for this, may I first ask though… has there been confirmed successful cases where the quoted end point was able to get a user balance info?

Edit: Also, what is the apns_token ?

You are able to get a user balance with the customer_list action and the admin/customer/ endpoint so I was just confused by the /balance endpoint. So thats solved.

… quick related question if someone knows… can the ASTPP API change forwarding for the DID number? From PSTN to Local sip for example.

New API will be required for it, not available currently.

1 Like

Randomly I was able to figure out that URL

http://<ASTPP_URL>/getbalance/<SIP_DEVICE_USERNAME>/

E.G: http://127.0.0.1:8081/getbalance/2457848300/

Will give you the prepaid without the API, so anyone can access someones prepaid if they know their SIP username.

Is this the intended behavior?