> ## Documentation Index
> Fetch the complete documentation index at: https://nayax-44d6e37b-docs-marshall-faq-redistribution.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Operator Actions

export const EndpointCard = ({method = "API", title, children, href, arrow = true}) => {
  const METHOD_STYLES = {
    GET: {
      bg: "mint-bg-green-400/20 dark:mint-bg-green-400/20",
      text: "mint-text-green-700 dark:mint-text-green-400",
      border: "mint-border-green-300 dark:mint-border-green-700"
    },
    POST: {
      bg: "mint-bg-blue-400/20 dark:mint-bg-blue-400/20",
      text: "mint-text-blue-700 dark:mint-text-blue-400"
    },
    PUT: {
      bg: "mint-bg-yellow-400/20 dark:mint-bg-yellow-400/20",
      text: "mint-text-yellow-700 dark:mint-text-yellow-400"
    },
    PATCH: {
      bg: "mint-bg-orange-400/20 dark:mint-bg-orange-400/20",
      text: "mint-text-orange-700 dark:mint-text-orange-400"
    },
    DELETE: {
      bg: "mint-bg-red-400/20 dark:mint-bg-red-400/20",
      text: "mint-text-red-700 dark:mint-text-red-400"
    },
    API: {
      bg: "mint-bg-black",
      text: "mint-text-white"
    }
  };
  const MethodBadge = ({method}) => {
    const style = METHOD_STYLES[method?.toUpperCase()] ?? METHOD_STYLES.GET;
    return <span className={`
          method-pill rounded-lg font-bold px-1.5 py-0.5 text-xs leading-5 ${style.bg} ${style.text}`}>
        {method?.toUpperCase()}
      </span>;
  };
  const content = <div className="group flex items-center gap-4 border border-gray-200 dark:border-gray-700 rounded-xl p-5 bg-white dark:bg-[#1e1e1e] hover:border-gray-400 dark:hover:border-gray-500 hover:shadow-md transition-all cursor-pointer">
      {}
      <div className="flex-1 min-w-0">
        <p className="font-semibold text-gray-900 dark:text-white text-sm leading-snug">{title}</p>
        {children && <p className="mt-1 text-sm text-gray-500 dark:text-gray-400 line-clamp-2">{children}</p>}
      </div>

      {}
      <div className="shrink-0">
        <MethodBadge method={method} />
      </div>
    </div>;
  if (!href) return content;
  return <a href={href} className="block no-underline border-b-0 mb-2">
      {content}
    </a>;
};

In Nayax Core, there are various actions that can be taken regarding Operators, such as updating or retrieving information of an operator, all of these are performed in the **Administration > Operators** menu.

<Frame>
  <img src="https://mintcdn.com/nayax-44d6e37b-docs-marshall-faq-redistribution/sBwRUCoASdSz1DKZ/images/docs/operator-actions/image1.png?fit=max&auto=format&n=sBwRUCoASdSz1DKZ&q=85&s=106f57fccf1d0a5b8bc88558c379340a" width="1440" height="824" data-path="images/docs/operator-actions/image1.png" />
</Frame>

These actions can also be done through Lynx API programmatically using the following endpoints:

<Columns cols={2}>
  <EndpointCard title="Get Actor Details by ActorID" href="/reference/lynx/actors/get-actor-details-by-actorid" method="get" />

  <EndpointCard title="Update Operator/Sub-Operator" href="/reference/lynx/actors/update-operatorsub-operator" method="put" />
</Columns>

<Warning>
  **Authentication**

  Refer to the [Security & Token](/docs/manage-data-operations/lynx-api/security) page of this documentation to learn how to access your tokens, and how to properly use it to authenticate your API requests.
</Warning>

## Retrieve Operator Details

[Get Actor Details by ActorID ](/reference/lynx/actors/get-actor-details-by-actorid)retrieves comprehensive information about a specific actor. This endpoint provides detailed attributes, including profile information and associated configurations, for the actor identified by the provided ActorID.

<CodeGroup>
  ```sh Request theme={null}
  curl --request GET \
       --url https://qa-lynx.nayax.com/operational/v1/actors/{ActorID} \
       --header 'Authorization: Bearer <YOUR_ACCESS_TOKEN>' \
       --header 'accept: application/json'
  ```

  ```json Response theme={null}
  {
    "ParentActorID": 0,
    "ActorID": 0,
    "ActorDescription": "string",
    "ActorCode": 0,
    "ActorAddress": "string",
    "ActorContact": "string",
    "ActorTypeID": 0,
    "ActorStatus": 0,
    "ActorHierarchyLevel": 0,
    "CurrencyID": 0,
    "LastUpdated": "2024-11-25T20:58:19.906Z",
    "RouteManagerName": "string",
    "RouteManagerMobile": "string",
    "TimeZoneKey": 0,
    "DayLightSavingsBit": true,
    "CountryID": 0,
    "DailyCCTransLimitPerCard": 0,
    "DailyPPTransLimitPerCard": 0,
    "DailyExternalPPTransLimitPerCard": 0,
    "DailyCCTransLimitPerCardPerOperator": 0,
    "OperatorActorID": 0,
    "DistributorActorID": 0,
    "AreaActorID": 0,
    "RouteActorID": 0,
    "ActorHierarchy": "string",
    "ActorHasChildrenBit": true,
    "ActorHasMachinesBit": true,
    "ActorImageURL": "string",
    "ActorContractInfo": "string",
    "ActorSQSID": 0,
    "UseProductGroupVATBit": true,
    "EreceiptTransactionEndEnableBit": true,
    "MaximumRevalueAmountLimit": 0,
    "ActorCreatedBy": 0,
    "ActorCreationDate": "2024-11-25T20:58:19.906Z",
    "UpdateBy": 0,
    "CultureID": 0,
    "RevaluePayoutByDistributor": true,
    "FiscalizationBit": true,
    "GeoCountryID": 0,
    "GeoState": "string",
    "GeoCity": "string",
    "GeoAddress": "string",
    "GeoStreetNumber": "string",
    "GeoLongitude": 0,
    "GeoLatitude": 0,
    "GeoZipCode": "string",
    "GeoZoom": 0,
    "ActorLanguageID": 2,
    "ActorMerchantBit": "string",
    "ActorMerchantNameForDescriptor": "string",
    "OverrideGeoInherritcanceBit": true,
    "AirportID": 0,
    "VerticalCustomJSON": "string",
    "FiscalizationActorID": 0,
    "SupportIncrementalAuth": true,
    "MaximumDefaultCredit": 0,
    "Refs": {
      "additionalProp": "string"
    }
  }
  ```
</CodeGroup>

<Note>
  **Path Params**

  Change `{ActorID}` with the actual Operator ID to retrieve the details from.
</Note>

The response will have the details of the requested operator.

## Update Operator

The [Update Operator/Sub-Operator](/reference/lynx/actors/update-operatorsub-operator) endpoint allows you to edit the information of the specified operator.

<CodeGroup>
  ```sh Request theme={null}
  curl --request PUT \
       --url https://qa-lynx.nayax.com/operational/v1/actors/{ActorID} \
       --header 'Authorization: Bearer <YOUR_ACCESS_TOKEN>' \
       --header 'accept: application/json' \
       --header 'Content-Type: application/json' \
       --data '{
         "ActorDescription": "Updated Main Branch",
         "ActorCode": 1002,
         "ActorAddress": "456 New Street, Metropolis",
         "ActorContact": "updated-contact@branch.com",
         "ActorTypeID": 16,
         "ActorStatus": 1,
         "CurrencyID": 840,
         "CountryID": 840,
         "GeoCity": "Metropolis",
         "GeoLongitude": -77.0364,
         "GeoLatitude": 38.8951
       }'

  ```

  ```json Response theme={null}
  {
    "ParentActorID": 0,
    "ActorID": 0,
    "ActorDescription": "string",
    "ActorCode": 0,
    "ActorAddress": "string",
    "ActorContact": "string",
    "ActorTypeID": 0,
    "ActorStatus": 0,
    "ActorHierarchyLevel": 0,
    "CurrencyID": 0,
    "LastUpdated": "2024-11-25T20:58:19.906Z",
    "RouteManagerName": "string",
    "RouteManagerMobile": "string",
    "TimeZoneKey": 0,
    "DayLightSavingsBit": true,
    "CountryID": 0,
    "DailyCCTransLimitPerCard": 0,
    "DailyPPTransLimitPerCard": 0,
    "DailyExternalPPTransLimitPerCard": 0,
    "DailyCCTransLimitPerCardPerOperator": 0,
    "OperatorActorID": 0,
    "DistributorActorID": 0,
    "AreaActorID": 0,
    "RouteActorID": 0,
    "ActorHierarchy": "string",
    "ActorHasChildrenBit": true,
    "ActorHasMachinesBit": true,
    "ActorImageURL": "string",
    "ActorContractInfo": "string",
    "ActorSQSID": 0,
    "UseProductGroupVATBit": true,
    "EreceiptTransactionEndEnableBit": true,
    "MaximumRevalueAmountLimit": 0,
    "ActorCreatedBy": 0,
    "ActorCreationDate": "2024-11-25T20:58:19.906Z",
    "UpdateBy": 0,
    "CultureID": 0,
    "RevaluePayoutByDistributor": true,
    "FiscalizationBit": true,
    "GeoCountryID": 0,
    "GeoState": "string",
    "GeoCity": "string",
    "GeoAddress": "string",
    "GeoStreetNumber": "string",
    "GeoLongitude": 0,
    "GeoLatitude": 0,
    "GeoZipCode": "string",
    "GeoZoom": 0,
    "ActorLanguageID": 2,
    "ActorMerchantBit": "string",
    "ActorMerchantNameForDescriptor": "string",
    "OverrideGeoInherritcanceBit": true,
    "AirportID": 0,
    "VerticalCustomJSON": "string",
    "FiscalizationActorID": 0,
    "SupportIncrementalAuth": true,
    "MaximumDefaultCredit": 0,
    "Refs": {
      "additionalProp": "string"
    }
  }
  ```
</CodeGroup>

The body parameters are the same as used when [Creating an operator](/docs/manage-data-operations/lynx-api/operator/create-operator).

<Note>
  **Path Params**

  Change `{ActorID}` with the actual Operator ID to update.
</Note>

The response will have the updated details of the requested operator.
