Skip to content

Get account minute plans

getAccountMinutePlans returns the minute plans of an account’s service plan and how much of each is used. Use it to show a user how many minutes they have left. The account must belong to the authenticated customer.

Name Type Required Description
i_account int yes ID of the account
Name Type Description
result string OK
minute_plans array One struct per minute plan, see below

Each struct in minute_plans:

Name Type Description
i_service_plan int ID of the minute plan
description string Description of the minute plan
price double Price of the minute plan
seconds_total int Seconds included in the plan. nil = unlimited
seconds_left int Seconds left in the current period. nil = unlimited
chargeable_seconds int Seconds used over the included ones and charged separately
request
call("getAccountMinutePlans", {"i_account": 3092})
response
{
"result": "OK",
"minute_plans": [
{
"i_service_plan": 17,
"description": "500 min UK mobile",
"price": 9.9,
"seconds_total": 30000,
"seconds_left": 21420,
"chargeable_seconds": 0,
},
],
}