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.
Parameters
Section titled “Parameters”| Name | Type | Required | Description |
|---|---|---|---|
i_account |
int | yes | ID of the account |
Returns
Section titled “Returns”| 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 |
Example
Section titled “Example”call("getAccountMinutePlans", {"i_account": 3092}){ "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, }, ],}Related
Section titled “Related”- Service plans: minute plans and their billing period
- Match a number with account minute plans
- Apply service plan charges
- Retrieve service plan information