Roles
Retrieve a role
Retrieve a custom role by ID.
get/v0.1/merchants/{merchant_code}/roles/{role_id}
Path parameters
merchant_codestring required
Example:MK10CL2A
Short unique identifier for the merchant.
role_idstring required
Example:role_WZsm7QTPhVrompscmPhoGTXXcrd58fr9MOhP
The ID of the role to retrieve.
Response
Returns the Role object for a valid identifier.
Example response
{
"id": "role_WZsm7QTPhVrompscmPhoGTXXcrd58fr9MOhP",
"name": "Senior Shop Manager II",
"description": "Manges the shop and the employees.",
"permissions": [],
"is_predefined": true,
"metadata": {},
"created_at": "2023-01-20T15:16:17Z",
"updated_at": "2023-01-20T15:16:17Z"
}