Gets plans that are available for devices​
Gets plans that are available for the provided devices.
If multiple devices are provided, only plans that are available to all devices will be returned.
Authorizations​
API Key for authentication. Retrieval from either API version login routes, or other authentication token type. See Authentication for more details.
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."Parameters​
Header Parameters
Optionally provide parameters as a JSON object in this header. X-Query values take precedence over query parameters for any overlapping fields.
{"deviceIdentifiers":"ABC123,35987654321"}Query Parameters
Comma separated device identifiers (serial, imei, id, etc.)
Limit for pagination, default 10, max 10000
Page for pagination
Include additional data
Request example
Responses​
OK
Try this endpoint
Playground​
Authorization
Headers
Variables
OpenAPI definition ​
References are expanded below, except recursive definitions and references with sibling fields. Documentation overrides are included. Full original OpenAPI spec (JSON).
View endpoint OpenAPI definition
info:
title: Lightbug API
version: '2'
externalDocs:
description: ''
url: ''
openapi: 3.1.0
servers:
- url: https://api.lightbug.cloud/v2
security:
- ApiKeyAuth: []
tags: []
paths:
/devices/plans:
get:
description: |-
Gets plans that are available for the provided devices.
If multiple devices are provided, only plans that are available to all devices will be returned.
parameters:
- description: Comma separated device identifiers (serial, imei, id, etc.)
in: query
name: deviceIdentifiers
schema:
type: string
- description: Limit for pagination, default 10, max 10000
in: query
name: _limit
schema:
type: integer
- description: Page for pagination
in: query
name: _page
schema:
type: integer
- description: Include additional data
in: query
name: _include
schema:
items:
enum:
- prices
type: string
type: array
- description: Optionally provide parameters as a JSON object in this header. X-Query values take precedence over query parameters for any overlapping fields.
example: '{"deviceIdentifiers":"ABC123,35987654321"}'
in: header
name: X-Query
schema:
type: string
responses:'200':
content:
application/json:
schema:
properties:
data:
description: Paginated data
items:
description: Details of the plan.
properties:
description:
type: string
displayName:
type: string
features:
type: string
id:
type: integer
name:
type: string
onoWhitelistId:
description: |-
Connectivity *string `json:"connectivity"`
Group string `json:"group"`
ResellerID *int32 `json:"resellerId"`
ResellerPlanID *int32 `json:"resellerPlanId"`
Archived *int32 `json:"archived"`
PlanType string `json:"planType"`
type: integer
prices:
properties:
eur:
description: 'breaks: example:"[0,1.99],[10,1.89]"` // Array of quantity to price in EUR'
items:
items:
type: number
type: array
type: array
uniqueItems: false
gbp:
description: 'breaks: example:"[1,2.34],[10,2.22]"` // Array of quantity to price in GBP'
items:
items:
type: number
type: array
type: array
uniqueItems: false
tax:
$ref: '#/components/schemas/ProductPricing'
usd:
description: 'breaks: example:"[1,4.35],[10,4.26]"` // Array of quantity to price in USD'
items:
items:
type: number
type: array
type: array
uniqueItems: false
type: object
sku:
type: string
sleepLimit:
type: integer
wakeLimit:
description: |-
Term string `json:"term"`
Price float64 `json:"price"`
Currency string `json:"currency"`
OwnerID int32 `json:"ownerId"`
type: integer
type: object
type: array
uniqueItems: false
limit:
description: Requested elements per page
type: integer
page:
description: Requested page number
type: integer
totalElements:
description: Total elements in the database for given filters
type: integer
totalPages:
description: Total pages of elements given limit and filters
type: integer
type: object
description: OK'400':
content:
application/json:
schema:
properties:
code:
example: 400
type: integer
message:
example: status bad request
type: string
type: object
description: Bad Request'401':
content:
application/json:
schema:
properties:
code:
example: 400
type: integer
message:
example: status bad request
type: string
type: object
description: Unauthorized'429':
content:
application/json:
schema:
type: string
description: Limit exceeded
headers:
X-Ratelimit-Limit:
schema:
type: integer
X-Ratelimit-Remaining:
schema:
type: integer
X-Ratelimit-Reset:
schema:
type: integer security:
- ApiKeyAuth: []
summary: Gets plans that are available for devices
tags:
- plans
operationId: get-devices-plans
components:
securitySchemes:
ApiKeyAuth:
in: header
name: Authorization
type: apiKey
description: API Key for authentication. Retrieval from either API version login routes, or other authentication token type. See <a href='/apis/authentication'>Authentication</a> for more details.
example: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
schemas:
ProductPricing:
properties:
eur:
description: 'breaks: example:"[0,1.99],[10,1.89]"` // Array of quantity to price in EUR'
items:
items:
type: number
type: array
type: array
uniqueItems: false
gbp:
description: 'breaks: example:"[1,2.34],[10,2.22]"` // Array of quantity to price in GBP'
items:
items:
type: number
type: array
type: array
uniqueItems: false
tax:
$ref: '#/components/schemas/ProductPricing'
usd:
description: 'breaks: example:"[1,4.35],[10,4.26]"` // Array of quantity to price in USD'
items:
items:
type: number
type: array
type: array
uniqueItems: false
type: object