companyRole

Get company role detail, contains permissions of the role. Requires a B2B Token.

Arguments

companyIdIntegerOptional
ID of the company, optional
roleIdIntegerRequired
ID of the role, required

Returns

an optional Object
idString
ID of the role
nameString
Role name
roleTypeInteger
Role type. 1 is predefined, 2 is custom
roleLevelInteger
Role level. 1 is store level
permissionslist of optional Objects
Permissions of the role