> ## 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.

# 获取 Monyx ID

Lynx API 允许您通过 GET 请求检索机器的 Monyx ID。本页面将指导您使用以下端点完成此操作。

[/reference/zh/lynx/machines/get-payment-methods-for-machine](https://devzone.nayax.com/reference/zh/lynx/machines/get-payment-methods-for-machine.md)

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

## 检索 Monyx ID

您将使用 [Get Payment Methods for Machine](https://devzone.nayax.com/reference/zh/lynx/machines/get-payment-methods-for-machine.md) 来获取 Monyx ID，请参见以下请求：

```sh Request theme={null}
curl -X GET "https://qa-lynx.nayax.com/operational/v1/machines/{MachineID}/paymentMethods" \
-H "Authorization: Bearer <YOUR_ACCESS_TOKEN>"
```

> [!NOTE]
>
> 路径参数
>
> 代替`<MachineID>`使用您要搜索的实际机器唯一标识符。

请求成功后，该端点将返回该机器可用支付方式的信息。请参见以下代码块：

```json Response theme={null}
{
    "MachineID": "98108",
    "PaymentMethodID": 22,
    "ConvenienceFeePercentageEdit": false,
    "ConvenienceFeeValue": 0,
    "lastUpdated": "2021-05-25T08:01:05.473",
    "ExternalPaymentProviderUsername": null,
    "ExternalPaymentProviderPassword": null,
    "ExternalPaymentProviderTerminalID": null,
    "ExternalPaymentProviderLocationIdentifier": null,
    "PaymentMethodWorkingDays": null,
    "PaymentMethodCustomData": "{\\\"use_phone_contactless\\\":false,\\\"use_phone_transaction\\\":false,\\\"monyx_machine_id\\\":31066766}",
    "ConvenienceFeeBackupValue": 0,
    "PaymentMethodIDString": null
  }
```

您可以在 `PaymentMethodCustomData` 参数中找到 Monyx ID，在本示例中即为：`"monyx_machine_id\":31066766`


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