List Subscriptions
const url = 'https://api.exolink.cloud/tenant/example/subscription';const options = { method: 'GET', headers: { 'x-exo-fields': '["id","displayName"]', 'x-exo-filter': '["eq","profileId",3]', 'x-exo-sort': '["asc","displayName"]', Authorization: 'Bearer <token>' }};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.exolink.cloud/tenant/example/subscription \ --header 'Authorization: Bearer <token>' \ --header 'x-exo-fields: ["id","displayName"]' \ --header 'x-exo-filter: ["eq","profileId",3]' \ --header 'x-exo-sort: ["asc","displayName"]'Retrieve the tenant’s active subscriptions
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Tenant domain prefix
Header Parameters
Section titled “Header Parameters”JSON array of the fields to return
Example
["id","displayName"]JSON filter expression [operator, field, value]. Operators: eq, ne, gt, gte, lt, lte, in, nin,
like, ilike, nlike, nilike, null, nnull, and eqc, nec, gtc, gtec, ltc, ltec to compare two fields.
Combine expressions with ["and", ...] or ["or", ...].
Example
["eq","profileId",3]Page number, starting at 1. Applies together with x-exo-size.
Page size. Every returned row then carries __total, the number of matching rows.
JSON sort [direction, field] with direction asc or desc, or a list of them
Example
["asc","displayName"]Responses
Section titled “Responses”Subscriptions
Tenant subscription information
object
Subscription ID
Tenant ID
Product ID
Product name
Product name as shown on receipts
Additional information for the product
object
Product type
Number of chargers of the tenant. Connect subscriptions only.
When the subscription ends, if cancelled
Example
[ { "productType": "connect" }]Missing, invalid or expired credentials
Error response. Some rejections carry only message.
object
Error message
Error code
Failed validations, for requests checked against a schema
object
Path of the invalid field
Example
{ "message": "Not authorized", "errorCode": "ERR_API_NOT_AUTHORIZED"}The caller may not perform this action
Error response. Some rejections carry only message.
object
Error message
Error code
Failed validations, for requests checked against a schema
object
Path of the invalid field
Example
{ "message": "Forbidden", "errorCode": "ERR_API_FORBIDDEN"}