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

# 选择列表操作

Nayax Core 中的拣货单操作可在 Operations > Machine Inventory 菜单中找到。

![](https://mintcdn.com/nayax-44d6e37b/SZdrogZN6xHGu-sq/images/docs/pick-list-actions/image1.png?fit=max\&auto=format\&n=SZdrogZN6xHGu-sq\&q=85\&s=7acef4428e4d18aa0850ac33b0a37fdc)

这些操作也可以通过 Lynx API 使用以下端点执行：

[/reference/lynx/machine-inventory/get-pick-list](https://devzone.nayax.com/reference/lynx/machine-inventory/get-pick-list.md)

[/reference/lynx/machine-inventory/update-pick-list](https://devzone.nayax.com/reference/lynx/machine-inventory/update-pick-list.md)

[/reference/lynx/machine-inventory/delete-pick-list](https://devzone.nayax.com/reference/lynx/machine-inventory/delete-pick-list.md)

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

## 获取拣货单

使用 [Get Pick List](https://devzone.nayax.com/reference/lynx/machine-inventory/get-pick-list.md) 端点检索与特定机器关联的拣货单。

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

> [!NOTE]
>
> 路径参数
>
> 将 `MachineID` 更改为要从中检索拣货单的机器的实际 ID。

成功的响应会返回该拣货单以及与机器关联的所有产品。

## 更新拣货单

使用 [Update Pick List](https://devzone.nayax.com/reference/lynx/machine-inventory/update-pick-list.md) 端点修改机器拣货单中的产品数量或其他详细信息。

```sh Request theme={null}
curl --request PUT \
     --url https://qa-lynx.nayax.com/operational/v1/machines/inventory/picklists/update \
     --header 'Authorization: Bearer <YOUR_ACCESS_TOKEN>' \
     --header 'accept: application/json' \
     --header 'Content-Type: application/json' \
     --data '{
       "MachineId": 12345,
       "Products": [
         {
           "MachineProductId": 67890,
           "PickQty": 10
         },
         {
           "MachineProductId": 54321,
           "PickQty": 5
         }
       ]
     }'
```

请求正文包含以下参数：

| 范围 | 类型 | 描述 |
| :- | :- | :- |
| `MachineId` | `int64` | 正在更新拣货单的机器的唯一标识符。 |
| `Products` | `array of objects` | 要更新的产品列表。每个对象包含 `MachineProductId`（产品在机器中的唯一标识符）和 `PickQty`（更新后的拣选数量）。 |

成功的响应会返回带有更新后拣选数量的拣货单。

## 删除拣货单

使用 [Delete Pick List](https://devzone.nayax.com/reference/lynx/machine-inventory/delete-pick-list.md) 端点移除与特定机器关联的拣货单。

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

`200 OK` 响应确认拣货单已被删除。

## 参见

* [Inventory Workflow](https://devzone.nayax.com/docs/manage-data-operations/lynx-api/inventory-management/inventory-workflow.md)
* [Pick Lists](https://devzone.nayax.com/docs/manage-data-operations/lynx-api/inventory-management/pick-lists.md)


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