Skip to content

KAZOO Support Channels

This documentation is curated by 2600Hz as part of the KAZOO open source project. Join our community forums here for peer support. Only features in the docs.2600hz.com/supported space are included as part of our 2600Hz Support Services plan.

monster.util.isReseller()#

Syntax#

monster.util.isReseller([account]);

Parameters#

Key Description Type Default Required
account Account with the same format as an account returned by a GET on the /account/{accountId} API. Object monster.apps.auth.originalAccount false

Return value#

A Boolean indicating whether or not the logged in account is a reseller.

Description#

The monster.util#isReseller method checks if the account provided is a reseller or not. If not account is provided, the check is made against the original account.

Examples#

if(monster.util.isReseller()) {
    // do something if original account is a reseller
}

if(monster.util.isReseller(someOtherAccount)) {
  // do something if someOtherAccount is a reseller
};