Skip to content

Summary of plans

GET
/users/plansSummary

Gets a summary of plans for a user (already purchased)
This can list unused, and used plans with the consumed query parameter

Authorizations

Parameters

Query Parameters

consumed

Filter by plans that have already been consumed by devices or not

Typeboolean

Responses

OK
JSON
[
{
"count": 0,
"plan": {
"displayName": "string",
"features": "string",
"id": 0,
"name": "string",
"onoWhitelistId": 0,
"prices": {
"eur": [
[
0
]
],
"gbp": [
[
0
]
],
"tax": {
"eur": [
[
0
]
],
"gbp": [
[
0
]
],
"tax": {
"eur": [
[
0
]
],
"gbp": [
[
0
]
],
"tax": "[Circular Reference]",
"usd": [
[
0
]
]
},
"usd": [
[
0
]
]
},
"usd": [
[
0
]
]
},
"sku": "string",
"sleepLimit": 0,
"wakeLimit": 0
}
}
]

Samples

cURL
curl -X GET http://localhost:8080/v2/users/plansSummary
JavaScript
fetch("http://localhost:8080/v2/users/plansSummary")
  .then(response => response.json())
  .then(data => console.log(data));
PHP
file_get_contents("http://localhost:8080/v2/users/plansSummary");
Python
import requests
response = requests.get("http://localhost:8080/v2/users/plansSummary")
print(response.json())