Get Plan Info by ID
The Get Plan info by ID method allows to get information about Plan by given plan ID.
GET /api/vendor/v1/plans/{id}.json?api_token={api_token}
Arguments
Name | Parameter Type | Data type | Required/ | Description |
---|---|---|---|---|
id | path | integer | Required | A plan ID. |
api_token | query | string | Required | API token of the manager who perform the operation (see API Token Authentication). |
Response model
Name | Data type | Description |
---|---|---|
id | integer | A plan ID. |
status | string | One of the following plan statuses:
|
name | string | A plan name. |
description | string | Additional information about the plan. This information displays to customers in the online store and the Customer Control Panel. |
created_at | data | A date and time of the plan's creation. |
updated_at | data | A date and time of the last plan update. |
public | bool |
|
plan_class_id | integer | A plan class ID (see Managing service terms in the ActivePlatform. Operator Control Panel). |
plan_class | string | A plan class name. |
plan_resources | array | The following information about plan resources:
|
custom_attributes | array | A list of additional attributes (see Managing attributes in the ActivePlatform. Operator Control Panel):
|
Request example
GET http://billing.activeplatform.com:80/api/vendor/v1/plans/2000303.json?api_token=654321
Response example
{
"id": 2000303,
"status": "active",
"name": "MSExPlan",
"description": "",
"created_at": "2015-07-20T17:40:47.014+03:00",
"updated_at": "2016-06-18T16:26:21.043+03:00",
"public": true,
"plan_class_id": 1,
"plan_class": "Default",
"plan_resources": [
{
"id": 2001515,
"name": "Resource Mailboxes",
"application_template_name": "MSExchange",
"measurable": false,
"unit_of_measure": "unit",
"included": 1024,
"minimum": 1024,
"limit": 10240,
"setup_fee": 0,
"recurring_fee": 0,
"overuse_fee": 0,
"renewal_fee": 0,
"unlimited_units": false,
"public": true,
"status": "active",
"resource_id": 2003421,
"created_at": "2015-07-20T17:42:14.467+03:00",
"updated_at": "2018-01-03T23:24:33.809+03:00",
"custom_attributes": []
},
{
"id": 2001516,
"name": "Disk Spaces",
"application_template_name": "MSExchange",
"measurable": false,
"unit_of_measure": "unit",
"included": 1024,
"minimum": 1024,
"limit": 10240,
"setup_fee": 0,
"recurring_fee": 0,
"overuse_fee": 0,
"renewal_fee": 0,
"unlimited_units": false,
"public": true,
"status": "active",
"resource_id": 2003422,
"created_at": "2015-07-20T17:42:14.469+03:00",
"updated_at": "2018-01-03T23:24:33.702+03:00",
"custom_attributes": []
},
{
"id": 2001512,
"name": "Users",
"application_template_name": "MSExchange",
"measurable": false,
"unit_of_measure": "unit",
"included": 10,
"minimum": 10,
"limit": 13,
"setup_fee": 0.02,
"recurring_fee": 0.01,
"overuse_fee": 0.01,
"renewal_fee": 0.02,
"unlimited_units": false,
"public": true,
"status": "active",
"resource_id": 2003418,
"created_at": "2015-07-20T17:42:14.460+03:00",
"updated_at": "2016-06-16T18:20:21.789+03:00",
"custom_attributes": []
},
{
"id": 2001513,
"name": "Domains",
"application_template_name": "MSExchange",
"measurable": false,
"unit_of_measure": "unit",
"included": 10,
"minimum": 10,
"limit": 13,
"setup_fee": 0.02,
"recurring_fee": 0.01,
"overuse_fee": 0.01,
"renewal_fee": 0.02,
"unlimited_units": false,
"public": true,
"status": "active",
"resource_id": 2003419,
"created_at": "2015-07-20T17:42:14.463+03:00",
"updated_at": "2016-06-16T18:20:21.792+03:00",
"custom_attributes": []
},
{
"id": 2001514,
"name": "Contacts",
"application_template_name": "MSExchange",
"measurable": false,
"unit_of_measure": "unit",
"included": 10,
"minimum": 10,
"limit": 13,
"setup_fee": 0.02,
"recurring_fee": 0.01,
"overuse_fee": 0.01,
"renewal_fee": 0.02,
"unlimited_units": false,
"public": true,
"status": "active",
"resource_id": 2003420,
"created_at": "2015-07-20T17:42:14.465+03:00",
"updated_at": "2016-06-16T18:20:21.794+03:00",
"custom_attributes": []
}
],
"plan_periods": [
{
"id": 2000474,
"duration_value": 3,
"duration_type": "month",
"setup_fee": 0.05,
"recurring_fee": 0.03,
"renewal_fee": 0.02,
"trial": false,
"public": true,
"status": "active",
"description": null,
"created_at": "2015-07-20T17:42:39.582+03:00",
"updated_at": "2015-07-20T17:42:39.582+03:00"
},
{
"id": 2000480,
"duration_value": 6,
"duration_type": "month",
"setup_fee": 2.02,
"recurring_fee": 2.01,
"renewal_fee": 2.01,
"trial": false,
"public": true,
"status": "active",
"description": "",
"created_at": "2015-08-12T12:22:28.100+03:00",
"updated_at": "2016-08-29T01:18:20.282+03:00"
},
{
"id": 2000760,
"duration_value": 3,
"duration_type": "day",
"setup_fee": 0,
"recurring_fee": 0,
"renewal_fee": 0,
"trial": true,
"public": true,
"status": "active",
"description": "",
"created_at": "2016-01-20T11:31:46.167+03:00",
"updated_at": "2016-01-20T11:31:46.167+03:00"
}
],
"custom_attributes": []
}