GET/v1/iot/plans
List plans
The plans your account can put a SIM on, with your prices (ex VAT). Use a plan's id with
the change-plan endpoint. A SIM can only move to a plan on the coverage it is already on.
- Scope
iot.plans:read
Parameters
-
coveragestring queryOnly plans with this coverage key.Example
3e8d1c5a-7f2b-4a90-b6e4-1d0c9f8a2b37 -
organisationIdstring (uuid) queryPartners: the plans and prices of a customer organisation below you.Example
0f8b6c1e-5a2d-4c7e-9b3a-2d1e6f4a7c90 -
iccidstring queryOnly the plans this SIM can move to (its coverage, at its holder's prices). Other filters are ignored.Example
8944110068212345678
Returns 200 PlanList
Every plan available to you.
Errors
- 400
validation-failedValidation failed. - 401
unauthorizedThe bearer token is missing, expired or revoked. - 403
insufficient-scopeThe key is valid but lacks theiot.plans:readscope. - 429
rate-limitedRate limit exceeded. Wait forRetry-Afterseconds.
curl
curl "https://partners.netavo.com/api/v1/iot/plans" \
-H "Authorization: Bearer $THINGSIM_API_KEY"Python
import os
import requests
response = requests.get(
"https://partners.netavo.com/api/v1/iot/plans",
headers={
"Authorization": f"Bearer {os.environ['THINGSIM_API_KEY']}",
},
)
response.raise_for_status()
print(response.json())Node
const response = await fetch("https://partners.netavo.com/api/v1/iot/plans", {
headers: {
Authorization: `Bearer ${process.env.THINGSIM_API_KEY}`,
},
});
if (!response.ok) throw new Error(await response.text());
console.log(await response.json());{
"data": [
{
"id": "5b0e4f2a-8c1d-4e6f-9a3b-7d2c1e0f4a61",
"name": "1 GB, UK 4-network",
"coverage": {
"key": "3e8d1c5a-7f2b-4a90-b6e4-1d0c9f8a2b37",
"label": "UK 4-network",
"networks": [
"EE",
"O2",
"Three",
"Vodafone"
]
},
"allowanceBytes": 1073741824,
"monthlyPrice": {
"amount": "2.40",
"currency": "GBP",
"includesVat": false
},
"billingIntervals": [
"monthly"
]
}
]
}Example error · 400
{
"type": "https://partners.netavo.com/api/problems/validation-failed",
"title": "Validation failed",
"status": 400,
"detail": "limit must be between 1 and 100.",
"instance": "/api/v1/iot/plans",
"code": "validation-failed",
"traceId": "00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01"
}