> ## Documentation Index
> Fetch the complete documentation index at: https://devzone.nayax.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 操作员操作

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>;
};

在 Nayax Core 中，可以对运营商执行多种操作，例如更新或检索运营商的信息，所有这些操作均在 Administration > Operators 菜单中执行。

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

这些操作也可以通过 Lynx API 以编程方式执行，使用以下端点：

<Columns cols={2}>
  <EndpointCard title="通过 ActorID 获取演员详情" href="/reference/lynx/actors/get-actor-details-by-actorid" method="get" />

  <EndpointCard title="更新操作符/子操作符" href="/reference/lynx/actors/update-operatorsub-operator" method="put" />
</Columns>

<Warning>
  验证

  请参阅本文档的[“安全和令牌”](/docs/manage-data-operations/lynx-api/security)页面，了解如何访问您的令牌，以及如何正确使用它来验证您的 API 请求。
</Warning>

## 检索操作员详细信息

[通过 ActorID 获取参与者详情](/reference/lynx/actors/get-actor-details-by-actorid)可检索特定参与者的综合信息。此端点提供通过提供的 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>
  路径参数

  将 `{ActorID}` 替换为要从中检索详情的实际 Operator ID。
</Note>

响应将包含所请求操作员的详细信息。

## 更新运算符

[Update Operator/Sub-Operator](/reference/lynx/actors/update-operatorsub-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>

主体参数与[创建操作员](/docs/manage-data-operations/lynx-api/operator/create-operator)时使用的相同。

<Note>
  路径参数

  将 `{ActorID}` 替换为要更新的实际 Operator ID。
</Note>

响应将包含所请求操作员的更新详细信息。


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.