
Lynx API
You can also use Lynx API to programmatically retrieve the hierarchy of an Operator and its details by using the following endpoint:Get Actor Hierarchy for Current User
GET
Get Operator Hierarchy
The Get Actor Hierarchy for Current User endpoint retrieves the hierarchy for the current user or a specified actor/operator and its child entities, such as areas, routes, and machines, by providing theActorID in the query params of the request. See the example request in the code block below:
| Parameter | Description |
|---|---|
ActorID | The unique ID of the operator or actor whose hierarchy you want to retrieve. |
StatusID | Filter the hierarchy to include only actors with a specific status. Use this to retrieve only active or inactive entities. |
HierarchyLevelLimit | Specify the maximum depth of the hierarchy to be returned. For example, 1 for immediate children and 2 for grandchildren. |
Lynx API ActorsIn Nayax Core, the Operators and its types, such as “Area” and “Routes”, are only nomenclatures that help you differentiate them. However, in Lynx API, they are all referred to as Actors, which are only differentiated by the
ActorTypeID.Response
With a successful request, the endpoint will return an array of Operator objects. See an example in the code block below:ActorID: 12345 showing each of its children operators. The table below describes each of the response’s body parameters:
| Parameter | Description |
|---|---|
ParentActorID | ID of the parent actor for the specified actor. |
ActorID | Unique ID of the current actor. |
ActorDescription | Description or name of the actor. |
ActorTypeID | Type of actor (e.g., Operator, Area, Route). |
ActorStatus | Status of the actor (e.g., active, inactive). |
ActorHierarchyLevel | The level of the actor within the hierarchy. |
ActorChildren | A list of child actor IDs or details for the current actor. |