Get features assigned to a role
GET
Returns the features (permissions) a role currently has, plus the features it is allowed to have on the merchant's current plan, so you can show what can still be granted.
BearerAuthheader
AuthorizationBearer <JWT>id*integerID of the record.
Format
int64OK
*/*- response
roleId*integerRole ID.
Format
int64roleKey*stringThe role's key, e.g. CASHIER.
roleName?|The role's display name.
allowedFeatures*array<>Features this role may be given on the merchant's current plan.
assignedFeatureCodes*array<string>Codes of the features the role currently has.
Example Request
curl -X GET 'https://beta.iotoms.com/api/v1/management/roles/0/features'Example Response
{ "roleId": 0, "roleKey": "string", "roleName": "string", "allowedFeatures": [ { "code": "string", "name": "string", "description": "string", "category": "string" } ], "assignedFeatureCodes": [ "string" ]}