Skip to content

/account

auth

parameters

  • loginstring. login
  • passwordstring. password

Does not require session hash and does not need any permissions. Auth dealer in panel (planned also for dealer's "sub-users")

response

{
    "success": true,
    "hash": <string>,       // session key
    "permissions": <object> // account permissions, e.g. { "base": ["get_dealer_info"] }
}

See: panel account permissions.

errors

  • 11 - Access denied (if dealer blocked)
  • 12 - Dealer not found

get_permissions

Does not need any permissions. Returns permissions for current panel session

response

{
    "success": true,
    "permissions": <object> // account permissions, e.g. { "base": ["get_dealer_info"] }
}

errors

Only standard errors.

logout

Ends the current session.

response

{
    "success": true
}

errors

standard errors


Last update: August 21, 2020