traffic_plans.php¶
Traffic tariff plan management module: creation, deletion, updating, and retrieval of available plans with filtering by server or location and price conversion.
API Methods¶
| Method | Action | Description |
|---|---|---|
list | get list of traffic plans | Returns a list of traffic plans with optional filtering by location, scope, or active status. |
traffic_plans/list¶
Returns a list of traffic plans with optional filtering by location, scope, or active status.
HTTP Method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | The action to perform (list) |
| token | ❌ | string | Authentication token |
| id | ❌ | integer | ID for specific location filtering |
| active | ❌ | string | Filter by active status (-1 for all, 0 for inactive, 1 for active) |
| locations | ❌ | string[] | Filter by multiple locations (comma-separated or array format) |
| location | ❌ | string | Filter by a single specific location code |
| scope | ❌ | string | Filter by scope |
Example Request