Subpaas session key
API call to create a subpaas session.
API actions
API base path: panel/subpaas/session.
required permissions: subpaas: "create".
The returned hash grants access to the sub-dealer's panel. Treat it as a credential and handle it exactly as you would a hash from authentication.
Open a panel session as one of your sub-dealers and return its session hash.
Use the returned hash exactly as one returned by the authenticate operation. It grants access to that sub-dealer's panel, so treat it as a credential.
Enter the panel session hash with the "NVX " prefix, e.g. "NVX fa7bf873fab9333144e171372a321b06". Obtain the hash from the accountAuth operation.
Sub-dealer ID.
97834Session opened as the sub-dealer
true if request finished successfully.
trueSession key for the sub-dealer's panel. Pass it in the Authorization header as NVX <hash>.
fa7bf873fab9333144e171372a321b06Bad request. The response body carries the API-level error code in status.code. Validation failures also include an errors array.
Operation not permitted, error code 13: the session lacks the required permission, or the dealer is not eligible to have sub-dealers.
Error response object
POST /v2/panel/subpaas/session/create HTTP/1.1
Host: api.eu.navixy.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 20
{
"subpaas_id": 97834
}{
"success": true,
"hash": "fa7bf873fab9333144e171372a321b06"
}Errors
13 –
The dealer is not PaaS type.
The dealer has a status other than
NOT_BLOCKED.The dealer's tariff does not allow SubPaaS accounts.
The found SubPaaS is not in
NOT_BLOCKEDstatus.
Last updated
Was this helpful?