URI | /v1/partners/{username}/package_plans |
URI Parameters |
|
Methods | GET |
GET / v1/partners/{username}/package_plans
Gets the partner's package pricing plans, which are assigned to partner’s account. If an account's username provided, show the pricing plans available to the account.
Scope | partners_read |
Query Selector Parameters |
|
Query Sorting Parameters |
|
Request Body Parameters |
|
Response Attributes |
|
Example JSON
Request:
GET /v1/partners/barracuda/package_plans?username=account HTTP/1.1
Host: api.intronis.com
Authorization: OAuth vF9dft4qmT
Accept: application/json
Response:
HTTP/1.1 200 OK
Content-Type: application/json
{
"page": 1,
"page_size": 100,
"count": 2,
"links": [
{
"rel": "first",
"href": "https://api.intronis.com/v1/partners/barracuda/package_plans?username=account"
},
],
"list": [
{
"plan_id": 10,
"name": "20g Monthly",
"base_usage": 21474836480,
"base_price": 19.95,
"link": {
"rel": "self",
"href": "https://api.intronis.com/v1/partners/barracuda/plans/10"
}
},
{
"plan_id": 11,
"name": "10g Monthly",
"base_usage": 10737418240,
"base_price": 9.95,
"link": {
"rel": "self",
"href": "https://api.intronis.com/v1/partners/barracuda/plans/11"
}
}
]
}
Example2 JSON
Request:
GET /v1/partners/barracuda/package_plans HTTP/1.1
Host: api.intronis.com
Authorization: OAuth vF9dft4qmT
Accept: application/json
Response:
HTTP/1.1 200 OK
Content-Type: application/json
{
"page": 1,
"page_size": 100,
"count": 2,
"links": [
{
"rel": "first",
"href":"https://api.intronis.com/v1/partners/barracuda/package_plans"
},
],
"list": [
{
"plan_id": 10,
"name": "20g Monthly",
"base_usage": 21474836480,
"base_price": 19.95,
"link": {
"rel": "self",
"href": "https://api.intronis.com/v1/partners/barracuda/plans/10"
}
},
{
"plan_id": 11,
"name": "10g Monthly",
"base_usage": 10737418240,
"base_price": 9.95,
"link": {
"rel": "self",
"href": "https://api.intronis.com/v1/partners/barracuda/plans/11"
}
}
]
}
Example XML
Request:
GET /v1/partners/barracuda/package_plans HTTP/1.1
Host: api.intronis.com
Authorization: OAuth vF9dft4qmT
Accept: application/xml
Response:
HTTP/1.1 200 OK
Content-Type: application/xml
<?xml version="1.0" encoding="UTF-8"?>
<list page="2" page_size="10" count="2">
<link rel="first" href="https://api.intronis.com/v1/partners/barracuda/package_plans"/>
<plan>
<plan_id>10</plan_id>
<name>20g Monthly</name>
<base_usage>21474836480</base_usage>
<base_price>19.95</base_price>
<link rel="self" href="https://api.intronis.com/v1/partners/barracuda/plans/10"/>
</plan>
<plan>
<plan_id>11</plan_id>
<name>10g Monthly</name>
<base_usage>10737418240</base_usage>
<base_price>9.95</base_price>
<link rel="self" href="https://api.intronis.com/v1/partners/barracuda/plans/11"/>
</plan>
</list>
Example2 XML
Request:
GET /v1/partners/barracuda/package_plans?username=account HTTP/1.1
Host: api.intronis.com
Authorization: OAuth vF9dft4qmT
Accept: application/xml
Response:
HTTP/1.1 200 OK
Content-Type: application/xml
<?xml version="1.0" encoding="UTF-8"?>
<list page="2" page_size="10" count="2">
<link rel="first" href="https://api.intronis.com//v1/partners/barracuda/package_plans?username=account "/>
<plan>
<plan_id>10</plan_id>
<name>20g Monthly</name>
<base_usage>21474836480</base_usage>
<base_price>19.95</base_price>
<link rel="self" href="https://api.intronis.com/v1/partners/barracuda/plans/10"/>
</plan>
<plan>
<plan_id>11</plan_id>
<name>10g Monthly</name>
<base_usage>10737418240</base_usage>
<base_price>9.95</base_price>
<link rel="self" href="https://api.intronis.com/v1/partners/barracuda/plans/11"/>
</plan>
</list>