> For the complete documentation index, see [llms.txt](https://navixy.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://navixy.com/docs/navixy-api/panel-api/resources/subpaas.md). Agents can also search and read this documentation through its [MCP server](https://navixy.com/docs/~gitbook/mcp).

# Subpaas

API calls to interact with Subpaases.

## Reseller (Sub PaaS) actions

In Navixy, a reseller (Sub PaaS) account is designed for telematics service providers (TSPs) who need to manage multiple accounts that provide services independently. The Admin Panel calls this feature Resellers, and the API calls it `subpaas`. This feature is ideal for TSPs who act as larger distributors or service providers. With Sub PaaS accounts, TSPs can create and manage additional sub-accounts, each with its own users, devices, and settings.

These sub-accounts function similarly to the main TSP account but allow for more granular control and management. This setup is perfect for servicing resellers or larger enterprises that require separate PaaS accounts, such as a service run on their own domain. It simplifies operations of multiple independent organizations, while maintaining oversight from the main TSP account.

## Reseller (Sub PaaS) object

The read operation returns the full object. The list operation returns a smaller field set plus per-reseller user and device counts.

## The Subpaas object

```json
{"openapi":"3.1.0","info":{"title":"Navixy Admin Panel API","version":"1.2.0"},"components":{"schemas":{"Subpaas":{"type":"object","description":"A reseller, also called a Sub-PaaS account: a TSP account operating underneath another TSP account.","readOnly":true,"properties":{"subpaas_id":{"type":"integer","description":"Reseller ID."},"block_type":{"type":"string","description":"Block status of the reseller panel and its users.","enum":["NOT_BLOCKED","INITIAL_BLOCK","BLOCK_LOGIN","CLIENTS_BLOCKED"]},"creation_date":{"type":"string","format":"date","description":"When the reseller was created."},"login":{"type":"string","description":"Reseller's panel login."},"title":{"type":"string","description":"Reseller display name."},"jur_name":{"type":"string","description":"Legal company name."},"email":{"type":"string","format":"email","description":"Company email address."},"jur_country":{"type":"string","description":"Reseller's country."},"link_monitoring":{"type":"string","description":"Reseller's monitoring domain."},"contact_fio":{"type":"string","description":"Contact person."},"contact_post":{"type":"string","description":"Contact person position."},"contact_phone":{"type":"string","description":"Contact person's phone."},"users_count":{"type":"integer","description":"Number of the reseller's users.","readOnly":true},"active_users_count":{"type":"integer","description":"Number of the reseller's active users.","readOnly":true},"trackers_count":{"type":"integer","description":"Total number of the reseller's devices.","readOnly":true},"active_trackers_count":{"type":"integer","description":"Number of the reseller's active devices.","readOnly":true}}}}}}
```

## The SubpaasListEntry object

```json
{"openapi":"3.1.0","info":{"title":"Navixy Admin Panel API","version":"1.2.0"},"components":{"schemas":{"SubpaasListEntry":{"type":"object","description":"A reseller as returned by the list operation, with its user and device counts. Carries fewer fields than the read operation.","readOnly":true,"properties":{"subpaas_id":{"type":"integer","description":"Reseller ID."},"title":{"type":"string","description":"Reseller display name."},"jur_name":{"type":"string","description":"Legal company name."},"login":{"type":"string","description":"Reseller's panel login."},"creation_date":{"type":"string","format":"date","description":"When the reseller was created."},"block_type":{"type":"string","description":"Block status of the reseller panel and its users.","enum":["NOT_BLOCKED","INITIAL_BLOCK","BLOCK_LOGIN","CLIENTS_BLOCKED"]},"users_count":{"type":"integer","description":"Number of the reseller's users.","readOnly":true},"active_users_count":{"type":"integer","description":"Number of the reseller's active users.","readOnly":true},"trackers_count":{"type":"integer","description":"Total number of the reseller's devices.","readOnly":true},"active_trackers_count":{"type":"integer","description":"Number of the reseller's active devices.","readOnly":true}}}}}}
```

## API actions

API base path: `panel/subpaas`.

Every operation here requires the `subpaas` permission, and is available only to TSPs whose contract type and plan permit reseller accounts.

***

*required permissions*: `subpaas: "create"`.

A newly created reseller starts in `INITIAL_BLOCK` status.

{% hint style="warning" %}
Creating a reseller sends email. The platform notifies both the parent TSP and the platform managers.
{% endhint %}

{% hint style="danger" %}
Passwords must be between 12 and 20 characters in length and include at least one uppercase letter, lowercase letter, digit, and special character. To maintain account security, the system tracks password history, so you can't reuse any of your last 10 passwords. If a previous password is detected, the system will return the error "Password was recently used."
{% endhint %}

## Create reseller

> Create a reseller under the current TSP account.\
> \
> \*\*This operation sends email.\*\* On success the platform notifies both the parent TSP and the platform managers.\
> \
> The current TSP account must be of the PaaS contract type, must not be blocked, and its plan must permit reseller accounts. Failing any of those returns error code 13.

```json
{"openapi":"3.1.0","info":{"title":"Navixy Admin Panel API","version":"1.2.0"},"tags":[{"name":"Subpaas","description":"Resellers, also called Sub-PaaS accounts: TSP accounts operating underneath another TSP account. Covers listing, reading, creating and updating them, changing their password, and opening a session as one. All resources under the /panel/subpaas/ path."}],"servers":[{"url":"https://api.eu.navixy.com/v2","description":"Navixy production server on European platform"},{"url":"https://api.us.navixy.com/v2","description":"Navixy production server on American platform"},{"url":"https://api.me.navixy.com/v2","description":"Navixy production server on Middle East platform"}],"security":[{"api_key":[]}],"components":{"securitySchemes":{"api_key":{"type":"apiKey","description":"Enter the panel session hash with the \"NVX \" prefix, e.g. \"NVX fa7bf873fab9333144e171372a321b06\". Obtain the hash from the accountAuth operation.","name":"Authorization","in":"header"}},"responses":{"ResponseError":{"description":"Error response object","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","description":"Always false."},"status":{"type":"object","description":"Error status. Present only when an error occurred.","properties":{"code":{"type":"integer","description":"An error code in this API (not a HTTP code)"},"description":{"type":"string","description":"An error description"}}},"errors":{"type":"array","description":"Per-parameter detail, returned with validation failures such as error code 7.","items":{"type":"object","properties":{"parameter":{"type":"string","description":"Name of the parameter that failed validation."},"error":{"type":"string","description":"What was wrong with it."}}}}}}}}}}},"paths":{"/panel/subpaas/create":{"post":{"tags":["Subpaas"],"summary":"Create reseller","operationId":"subpaasCreate","description":"Create a reseller under the current TSP account.\n\n**This operation sends email.** On success the platform notifies both the parent TSP and the platform managers.\n\nThe current TSP account must be of the PaaS contract type, must not be blocked, and its plan must permit reseller accounts. Failing any of those returns error code 13.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["password","title","jur_name","email","jur_country","link_monitoring"],"properties":{"password":{"type":"string","format":"password","description":"Reseller's password. Must satisfy the platform password policy."},"title":{"type":"string","description":"Reseller display name.","minLength":1,"maxLength":50},"jur_name":{"type":"string","description":"Legal company name.","maxLength":100},"email":{"type":"string","description":"Company email address.","format":"email"},"jur_country":{"type":"string","description":"Reseller's country.","maxLength":255},"link_monitoring":{"type":"string","description":"Reseller's monitoring domain. Must be a valid internationalized domain name and must not be empty.","maxLength":255},"contact_fio":{"type":"string","description":"Optional. Contact person.","maxLength":100},"contact_post":{"type":"string","description":"Optional. Contact person position.","maxLength":50},"contact_phone":{"type":"string","description":"Optional. Contact person's phone.","maxLength":255}}}}}},"responses":{"200":{"description":"Reseller created","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","description":"`true` if request finished successfully.","readOnly":true},"id":{"type":"integer","description":"ID of the created reseller.","readOnly":true}}}}}},"400":{"description":"Bad request. The response body carries the API-level error code in `status.code`. Validation failures also include an `errors` array.","$ref":"#/components/responses/ResponseError"},"403":{"description":"Operation not permitted, error code 13: the session lacks the required permission, or the TSP is not eligible to have resellers.","$ref":"#/components/responses/ResponseError"},"default":{"$ref":"#/components/responses/ResponseError"}}}}}}
```

#### Errors

* 13 – If the TSP account:
  * is not of the PaaS type.
  * has a status other than `NOT_BLOCKED`.
  * has a plan that does not allow SubPaaS accounts.

***

*required permissions*: `subpaas: "read"`.

The parent TSP is taken from the session, so only your own resellers are returned.

## List resellers

> List the resellers belonging to the current TSP account, with per-reseller user and device counts, plus optional text filtering, ordering and pagination.\
> \
> Every parameter is optional.

```json
{"openapi":"3.1.0","info":{"title":"Navixy Admin Panel API","version":"1.2.0"},"tags":[{"name":"Subpaas","description":"Resellers, also called Sub-PaaS accounts: TSP accounts operating underneath another TSP account. Covers listing, reading, creating and updating them, changing their password, and opening a session as one. All resources under the /panel/subpaas/ path."}],"servers":[{"url":"https://api.eu.navixy.com/v2","description":"Navixy production server on European platform"},{"url":"https://api.us.navixy.com/v2","description":"Navixy production server on American platform"},{"url":"https://api.me.navixy.com/v2","description":"Navixy production server on Middle East platform"}],"security":[{"api_key":[]}],"components":{"securitySchemes":{"api_key":{"type":"apiKey","description":"Enter the panel session hash with the \"NVX \" prefix, e.g. \"NVX fa7bf873fab9333144e171372a321b06\". Obtain the hash from the accountAuth operation.","name":"Authorization","in":"header"}},"schemas":{"SubpaasListEntry":{"type":"object","description":"A reseller as returned by the list operation, with its user and device counts. Carries fewer fields than the read operation.","readOnly":true,"properties":{"subpaas_id":{"type":"integer","description":"Reseller ID."},"title":{"type":"string","description":"Reseller display name."},"jur_name":{"type":"string","description":"Legal company name."},"login":{"type":"string","description":"Reseller's panel login."},"creation_date":{"type":"string","format":"date","description":"When the reseller was created."},"block_type":{"type":"string","description":"Block status of the reseller panel and its users.","enum":["NOT_BLOCKED","INITIAL_BLOCK","BLOCK_LOGIN","CLIENTS_BLOCKED"]},"users_count":{"type":"integer","description":"Number of the reseller's users.","readOnly":true},"active_users_count":{"type":"integer","description":"Number of the reseller's active users.","readOnly":true},"trackers_count":{"type":"integer","description":"Total number of the reseller's devices.","readOnly":true},"active_trackers_count":{"type":"integer","description":"Number of the reseller's active devices.","readOnly":true}}}},"responses":{"ResponseError":{"description":"Error response object","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","description":"Always false."},"status":{"type":"object","description":"Error status. Present only when an error occurred.","properties":{"code":{"type":"integer","description":"An error code in this API (not a HTTP code)"},"description":{"type":"string","description":"An error description"}}},"errors":{"type":"array","description":"Per-parameter detail, returned with validation failures such as error code 7.","items":{"type":"object","properties":{"parameter":{"type":"string","description":"Name of the parameter that failed validation."},"error":{"type":"string","description":"What was wrong with it."}}}}}}}}}}},"paths":{"/panel/subpaas/list":{"post":{"tags":["Subpaas"],"summary":"List resellers","operationId":"subpaasList","description":"List the resellers belonging to the current TSP account, with per-reseller user and device counts, plus optional text filtering, ordering and pagination.\n\nEvery parameter is optional.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"filter":{"type":"string","description":"Text filter."},"order_by":{"type":"string","description":"Field to order by.","enum":["subpaas_id","title","jur_name","login","block_type","creation_date"],"default":"subpaas_id"},"ascending":{"type":"boolean","description":"Order direction. Ascending when `true`.","default":true},"offset":{"type":"integer","description":"Starting offset, for pagination.","minimum":0,"default":0},"limit":{"type":"integer","description":"Maximum number of records to return.","minimum":0}}}}}},"responses":{"200":{"description":"Resellers","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","description":"`true` if request finished successfully.","readOnly":true},"list":{"type":"array","readOnly":true,"description":"The matching resellers.","items":{"$ref":"#/components/schemas/SubpaasListEntry"}},"count":{"type":"integer","readOnly":true,"description":"Total number of matching records, ignoring `offset` and `limit`."}}}}}},"400":{"description":"Bad request. The response body carries the API-level error code in `status.code`. Validation failures also include an `errors` array.","$ref":"#/components/responses/ResponseError"},"403":{"description":"Operation not permitted, error code 13: the session lacks the required permission, or the TSP is not eligible to have resellers.","$ref":"#/components/responses/ResponseError"},"default":{"$ref":"#/components/responses/ResponseError"}}}}}}
```

***

*required permissions*: `subpaas: "read"`.

## Read reseller

> Read a single reseller belonging to the current TSP account.

```json
{"openapi":"3.1.0","info":{"title":"Navixy Admin Panel API","version":"1.2.0"},"tags":[{"name":"Subpaas","description":"Resellers, also called Sub-PaaS accounts: TSP accounts operating underneath another TSP account. Covers listing, reading, creating and updating them, changing their password, and opening a session as one. All resources under the /panel/subpaas/ path."}],"servers":[{"url":"https://api.eu.navixy.com/v2","description":"Navixy production server on European platform"},{"url":"https://api.us.navixy.com/v2","description":"Navixy production server on American platform"},{"url":"https://api.me.navixy.com/v2","description":"Navixy production server on Middle East platform"}],"security":[{"api_key":[]}],"components":{"securitySchemes":{"api_key":{"type":"apiKey","description":"Enter the panel session hash with the \"NVX \" prefix, e.g. \"NVX fa7bf873fab9333144e171372a321b06\". Obtain the hash from the accountAuth operation.","name":"Authorization","in":"header"}},"schemas":{"Subpaas":{"type":"object","description":"A reseller, also called a Sub-PaaS account: a TSP account operating underneath another TSP account.","readOnly":true,"properties":{"subpaas_id":{"type":"integer","description":"Reseller ID."},"block_type":{"type":"string","description":"Block status of the reseller panel and its users.","enum":["NOT_BLOCKED","INITIAL_BLOCK","BLOCK_LOGIN","CLIENTS_BLOCKED"]},"creation_date":{"type":"string","format":"date","description":"When the reseller was created."},"login":{"type":"string","description":"Reseller's panel login."},"title":{"type":"string","description":"Reseller display name."},"jur_name":{"type":"string","description":"Legal company name."},"email":{"type":"string","format":"email","description":"Company email address."},"jur_country":{"type":"string","description":"Reseller's country."},"link_monitoring":{"type":"string","description":"Reseller's monitoring domain."},"contact_fio":{"type":"string","description":"Contact person."},"contact_post":{"type":"string","description":"Contact person position."},"contact_phone":{"type":"string","description":"Contact person's phone."},"users_count":{"type":"integer","description":"Number of the reseller's users.","readOnly":true},"active_users_count":{"type":"integer","description":"Number of the reseller's active users.","readOnly":true},"trackers_count":{"type":"integer","description":"Total number of the reseller's devices.","readOnly":true},"active_trackers_count":{"type":"integer","description":"Number of the reseller's active devices.","readOnly":true}}}},"responses":{"ResponseError":{"description":"Error response object","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","description":"Always false."},"status":{"type":"object","description":"Error status. Present only when an error occurred.","properties":{"code":{"type":"integer","description":"An error code in this API (not a HTTP code)"},"description":{"type":"string","description":"An error description"}}},"errors":{"type":"array","description":"Per-parameter detail, returned with validation failures such as error code 7.","items":{"type":"object","properties":{"parameter":{"type":"string","description":"Name of the parameter that failed validation."},"error":{"type":"string","description":"What was wrong with it."}}}}}}}}}}},"paths":{"/panel/subpaas/read":{"post":{"tags":["Subpaas"],"summary":"Read reseller","operationId":"subpaasRead","description":"Read a single reseller belonging to the current TSP account.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["subpaas_id"],"properties":{"subpaas_id":{"type":"integer","description":"Reseller ID."}}}}}},"responses":{"200":{"description":"The reseller","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","description":"`true` if request finished successfully.","readOnly":true},"value":{"$ref":"#/components/schemas/Subpaas"}}}}}},"400":{"description":"Bad request. The response body carries the API-level error code in `status.code`. Validation failures also include an `errors` array.","$ref":"#/components/responses/ResponseError"},"403":{"description":"Operation not permitted, error code 13: the session lacks the required permission, or the TSP is not eligible to have resellers.","$ref":"#/components/responses/ResponseError"},"default":{"$ref":"#/components/responses/ResponseError"}}}}}}
```

***

*required permissions*: `subpaas: "update"`.

Unlike create, this operation requires `subpaas_id` and `block_type`. It does **not** accept a password: use [change password](https://navixy.com/docs/navixy-api/panel-api/resources/subpaas/password.md) instead.

Both `link_monitoring` and `email` must be unique across TSP accounts. A clash returns error code 7 naming the offending parameter, rather than a 409.

## Update reseller

> Update an existing reseller.\
> \
> Unlike create, this operation requires \`subpaas\_id\` and \`block\_type\`, and does not accept \`password\`. Use the password change operation for that.

```json
{"openapi":"3.1.0","info":{"title":"Navixy Admin Panel API","version":"1.2.0"},"tags":[{"name":"Subpaas","description":"Resellers, also called Sub-PaaS accounts: TSP accounts operating underneath another TSP account. Covers listing, reading, creating and updating them, changing their password, and opening a session as one. All resources under the /panel/subpaas/ path."}],"servers":[{"url":"https://api.eu.navixy.com/v2","description":"Navixy production server on European platform"},{"url":"https://api.us.navixy.com/v2","description":"Navixy production server on American platform"},{"url":"https://api.me.navixy.com/v2","description":"Navixy production server on Middle East platform"}],"security":[{"api_key":[]}],"components":{"securitySchemes":{"api_key":{"type":"apiKey","description":"Enter the panel session hash with the \"NVX \" prefix, e.g. \"NVX fa7bf873fab9333144e171372a321b06\". Obtain the hash from the accountAuth operation.","name":"Authorization","in":"header"}},"responses":{"OK":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","description":"`true` if request finished successfully.","readOnly":true}}}}}},"ResponseError":{"description":"Error response object","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","description":"Always false."},"status":{"type":"object","description":"Error status. Present only when an error occurred.","properties":{"code":{"type":"integer","description":"An error code in this API (not a HTTP code)"},"description":{"type":"string","description":"An error description"}}},"errors":{"type":"array","description":"Per-parameter detail, returned with validation failures such as error code 7.","items":{"type":"object","properties":{"parameter":{"type":"string","description":"Name of the parameter that failed validation."},"error":{"type":"string","description":"What was wrong with it."}}}}}}}}}}},"paths":{"/panel/subpaas/update":{"post":{"tags":["Subpaas"],"summary":"Update reseller","operationId":"subpaasUpdate","description":"Update an existing reseller.\n\nUnlike create, this operation requires `subpaas_id` and `block_type`, and does not accept `password`. Use the password change operation for that.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["subpaas_id","block_type","title","jur_name","email","jur_country","link_monitoring"],"properties":{"subpaas_id":{"type":"integer","description":"ID of the reseller to update."},"block_type":{"type":"string","description":"Block status of the reseller panel and its users.","enum":["NOT_BLOCKED","INITIAL_BLOCK","BLOCK_LOGIN","CLIENTS_BLOCKED"]},"title":{"type":"string","description":"Reseller display name.","minLength":1,"maxLength":50},"jur_name":{"type":"string","description":"Legal company name.","maxLength":100},"email":{"type":"string","description":"Company email address.","format":"email"},"jur_country":{"type":"string","description":"Reseller's country.","maxLength":255},"link_monitoring":{"type":"string","description":"Reseller's monitoring domain. Must be a valid internationalized domain name and must not be empty.","maxLength":255},"contact_fio":{"type":"string","description":"Optional. Contact person.","maxLength":100},"contact_post":{"type":"string","description":"Optional. Contact person position.","maxLength":50},"contact_phone":{"type":"string","description":"Optional. Contact person's phone.","maxLength":255}}}}}},"responses":{"200":{"$ref":"#/components/responses/OK"},"400":{"description":"Bad request. The response body carries the API-level error code in `status.code`. Validation failures also include an `errors` array.","$ref":"#/components/responses/ResponseError"},"403":{"description":"Operation not permitted, error code 13: the session lacks the required permission, or the TSP is not eligible to have resellers.","$ref":"#/components/responses/ResponseError"},"default":{"$ref":"#/components/responses/ResponseError"}}}}}}
```

#### Errors

* 13 –
  * The TSP account is not PaaS.
  * The TSP account has a status other than `NOT_BLOCKED`.
  * SubPaaS accounts are not permitted for the TSP account.
  * `block_type` is `DELETED`.
  * The found SubPaaS is in `DELETED` status.
  * The found SubPaaS is not in `INITIAL_BLOCK` status and `block_type` is `INITIAL_BLOCK`.
  * The found SubPaaS is in `INITIAL_BLOCK` status and `block_type` is not `INITIAL_BLOCK`.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://navixy.com/docs/navixy-api/panel-api/resources/subpaas.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
