iotoms Docs

List subscription plans

GET
/api/v1/merchant/plans

Returns every available subscription plan in display order, with its register limit, whether it is the default, and the features it includes.

Response Body

OK

*/*
  1. response
status*string

Outcome of the call: SUCCESS when the request worked, ERROR when it did not.

message*string

Short human-readable message describing the result, for logs or display; do not parse it.

data?array<>|

All available subscription plans, in display order.

Example Request
curl -X GET 'https://beta.iotoms.com/api/v1/merchant/plans'
Example Response
{  "status": "string",  "message": "string",  "data": [    {      "code": "FREE",      "displayName": "string",      "description": "string",      "registerLimit": 0,      "sortOrder": 0,      "isDefault": true,      "features": [        {          "code": "string",          "name": "string",          "description": "string",          "category": "string"        }      ]    }  ]}