---
title: "Pick tasks | Docs | WMS by R&D Copilot"
description: "What a handheld does at a pick: scan the location, scan the item, confirm, report short, skip."
canonical: "https://warehouse.rdcopilot.com/docs/api-reference/pick-tasks/"
language: en
updated: 2026-11-22
---

# Pick tasks

What a handheld does at a pick: scan the location, scan the item, confirm, report short, skip.

## List pick tasks

GET `/warehouse/v1/pick-tasks`

Returns pick tasks in pages, in the order of the route.

### Parameters

| Name | In | Type | Required | Meaning |
| --- | --- | --- | --- | --- |
| `waveNumber` | query | `string` | Nooptional | Only the tasks of this wave. |
| `status` | query | `string` | Nooptional | Only tasks in this status. One of `assigned`, `at-location`, `item-scanned`, `confirmed`, `short`, `skipped` |
| `picker` | query | `string` | Nooptional | Only the tasks of this person. |
| `limit` | query | `integer` | Nooptional | Records per page. Default `100` Range `1` – `500` |
| `cursor` | query | `string` | Nooptional | The `nextCursor` of the previous page. |

### Responses

| Status | Meaning | Body |
| --- | --- | --- |
| `200` | A page of records. | `PickTaskPage` |
| `400` | The request cannot be read or breaks the contract: malformed JSON, a missing or unknown field, a wrong type. `fields` names each one. | `Error` |
| `401` | The token is missing, not valid or has ended. | `Error` |
| `403` | The token does not give access to this company or operation. | `Error` |
| `429` | The request was refused. The `code` is `rate_limited`. | `Error` |
| `503` | The request was refused. The `code` is `unavailable`. | `Error` |

### Request

curl

```bash
curl "$RDC_BASE_URL/warehouse/v1/pick-tasks?limit=20" \
  -H "Authorization: Bearer $RDC_TOKEN"
```

JavaScript

```javascript
const response = await fetch(`${process.env.RDC_BASE_URL}/warehouse/v1/pick-tasks?limit=20`, {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.RDC_TOKEN}`,
  },
});
const result = await response.json();
```

Python

```python
import os
import requests

response = requests.request(
    'GET',
    f'{os.environ["RDC_BASE_URL"]}/warehouse/v1/pick-tasks?limit=20',
    headers={
        'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
    },
)
result = response.json()
```

PHP

```php
<?php

$curl = curl_init(getenv('RDC_BASE_URL') . '/warehouse/v1/pick-tasks?limit=20');
curl_setopt_array($curl, [
    CURLOPT_CUSTOMREQUEST => 'GET',
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => [
        'Authorization: Bearer ' . getenv('RDC_TOKEN'),
    ],
]);
$result = json_decode(curl_exec($curl), true);
curl_close($curl);
```

C#

```csharp
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/warehouse/v1/pick-tasks?limit=20");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync();
```

### Response `200`

JSON

```json
{
  "items": [
    {
      "id": "a1000000-0000-4000-8000-000000023105",
      "number": "T-0231-05",
      "waveNumber": "W-0231",
      "orderNumber": "CV-1043",
      "sku": "ZA-0201",
      "lot": "L26-0870",
      "locationCode": "A-02-01",
      "quantity": "20",
      "picked": "20",
      "tote": "TOTE-015",
      "picker": "dan-ilie",
      "status": "confirmed",
      "shortReason": null,
      "revision": 4
    },
    {
      "id": "a1000000-0000-4000-8000-000000023106",
      "number": "T-0231-06",
      "waveNumber": "W-0231",
      "orderNumber": "CV-1044",
      "sku": "ZA-0201",
      "lot": "L26-0870",
      "locationCode": "A-02-01",
      "quantity": "30",
      "picked": "12",
      "tote": "TOTE-016",
      "picker": "dan-ilie",
      "status": "item-scanned",
      "shortReason": null,
      "revision": 3
    }
  ],
  "nextCursor": null
}
```

## Get a pick task

GET `/warehouse/v1/pick-tasks/{taskId}`

### Parameters

| Name | In | Type | Required | Meaning |
| --- | --- | --- | --- | --- |
| `taskId` | path | `string (uuid)` | Yesrequired | The pick task. |

### Responses

| Status | Meaning | Body |
| --- | --- | --- |
| `200` | The record at its current revision. | `PickTask` |
| `401` | The token is missing, not valid or has ended. | `Error` |
| `403` | The token does not give access to this company or operation. | `Error` |
| `404` | The request was refused. The `code` is `task_not_found`. | `Error` |
| `429` | The request was refused. The `code` is `rate_limited`. | `Error` |
| `503` | The request was refused. The `code` is `unavailable`. | `Error` |

### Request

curl

```bash
curl "$RDC_BASE_URL/warehouse/v1/pick-tasks/a1000000-0000-4000-8000-000000023106" \
  -H "Authorization: Bearer $RDC_TOKEN"
```

JavaScript

```javascript
const response = await fetch(`${process.env.RDC_BASE_URL}/warehouse/v1/pick-tasks/a1000000-0000-4000-8000-000000023106`, {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.RDC_TOKEN}`,
  },
});
const result = await response.json();
```

Python

```python
import os
import requests

response = requests.request(
    'GET',
    f'{os.environ["RDC_BASE_URL"]}/warehouse/v1/pick-tasks/a1000000-0000-4000-8000-000000023106',
    headers={
        'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
    },
)
result = response.json()
```

PHP

```php
<?php

$curl = curl_init(getenv('RDC_BASE_URL') . '/warehouse/v1/pick-tasks/a1000000-0000-4000-8000-000000023106');
curl_setopt_array($curl, [
    CURLOPT_CUSTOMREQUEST => 'GET',
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => [
        'Authorization: Bearer ' . getenv('RDC_TOKEN'),
    ],
]);
$result = json_decode(curl_exec($curl), true);
curl_close($curl);
```

C#

```csharp
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/warehouse/v1/pick-tasks/a1000000-0000-4000-8000-000000023106");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync();
```

### Response `200`

JSON

```json
{
  "id": "a1000000-0000-4000-8000-000000023106",
  "number": "T-0231-06",
  "waveNumber": "W-0231",
  "orderNumber": "CV-1044",
  "sku": "ZA-0201",
  "lot": "L26-0870",
  "locationCode": "A-02-01",
  "quantity": "30",
  "picked": "12",
  "tote": "TOTE-016",
  "picker": "dan-ilie",
  "status": "item-scanned",
  "shortReason": null,
  "revision": 3
}
```

## Scan the location

POST `/warehouse/v1/pick-tasks/{taskId}/scan-location`

Checks the scanned location against the location of the task. A task starts when its location is scanned.

### Parameters

| Name | In | Type | Required | Meaning |
| --- | --- | --- | --- | --- |
| `taskId` | path | `string (uuid)` | Yesrequired | The pick task. |

### Request body

| Field | Type | Required | Meaning |
| --- | --- | --- | --- |
| `operationId` | `string (uuid)` | Yesrequired | A UUID you choose for this change. Send it again to repeat the request. |
| `expectedRevision` | `integer` | Yesrequired | The revision of the task you read. |
| `code` | `string` | Yesrequired | The scanned code of the location. |
| `scannedAt` | `string (date-time)` | Nooptional | When the scan was made, if the handheld sent it later. The time of the request by default. |

### Responses

| Status | Meaning | Body |
| --- | --- | --- |
| `202` | The change was accepted. The body is the operation result. | `OperationResult` |
| `400` | The request cannot be read or breaks the contract: malformed JSON, a missing or unknown field, a wrong type. `fields` names each one. | `Error` |
| `401` | The token is missing, not valid or has ended. | `Error` |
| `403` | The token does not give access to this company or operation. | `Error` |
| `404` | The request was refused. The `code` is `task_not_found`. | `Error` |
| `409` | The request was refused. The `code` is `revision_conflict` or `operation_reused`. | `Error` |
| `422` | The request was refused. The `code` is `task_closed`, `task_skipped`, `already_at_location`, `code_not_recognized`, `wrong_location` or `lot_expired`. | `Error` |
| `429` | The request was refused. The `code` is `rate_limited`. | `Error` |
| `503` | The request was refused. The `code` is `unavailable`. | `Error` |

### Request

curl

```bash
curl -X POST "$RDC_BASE_URL/warehouse/v1/pick-tasks/a1000000-0000-4000-8000-000000023107/scan-location" \
  -H "Authorization: Bearer $RDC_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "operationId": "cd67a0ac-e9e4-4d7e-8f8c-74d48829255e",
  "expectedRevision": 1,
  "code": "A-03-02"
}'
```

JavaScript

```javascript
const response = await fetch(`${process.env.RDC_BASE_URL}/warehouse/v1/pick-tasks/a1000000-0000-4000-8000-000000023107/scan-location`, {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.RDC_TOKEN}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "operationId": "cd67a0ac-e9e4-4d7e-8f8c-74d48829255e",
    "expectedRevision": 1,
    "code": "A-03-02"
  }),
});
const result = await response.json();
```

Python

```python
import os
import requests

response = requests.request(
    'POST',
    f'{os.environ["RDC_BASE_URL"]}/warehouse/v1/pick-tasks/a1000000-0000-4000-8000-000000023107/scan-location',
    headers={
        'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
    },
    json={
        'operationId': 'cd67a0ac-e9e4-4d7e-8f8c-74d48829255e',
        'expectedRevision': 1,
        'code': 'A-03-02',
    },
)
result = response.json()
```

PHP

```php
<?php

$body = <<<'JSON'
{
  "operationId": "cd67a0ac-e9e4-4d7e-8f8c-74d48829255e",
  "expectedRevision": 1,
  "code": "A-03-02"
}
JSON;

$curl = curl_init(getenv('RDC_BASE_URL') . '/warehouse/v1/pick-tasks/a1000000-0000-4000-8000-000000023107/scan-location');
curl_setopt_array($curl, [
    CURLOPT_CUSTOMREQUEST => 'POST',
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => [
        'Authorization: Bearer ' . getenv('RDC_TOKEN'),
        'Content-Type: application/json',
    ],
    CURLOPT_POSTFIELDS => $body,
]);
$result = json_decode(curl_exec($curl), true);
curl_close($curl);
```

C#

```csharp
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/warehouse/v1/pick-tasks/a1000000-0000-4000-8000-000000023107/scan-location");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
request.Content = new StringContent("""
{
  "operationId": "cd67a0ac-e9e4-4d7e-8f8c-74d48829255e",
  "expectedRevision": 1,
  "code": "A-03-02"
}
""", System.Text.Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync();
```

### Response `202`

JSON

```json
{
  "operationId": "cd67a0ac-e9e4-4d7e-8f8c-74d48829255e",
  "status": "accepted",
  "aggregateRevision": 2
}
```

## Scan the item

POST `/warehouse/v1/pick-tasks/{taskId}/scan-item`

Checks the scanned barcode against the item of the task and adds the units to the task. A wrong item, or more units than the task asks for, is refused with its reason and counts for nothing. The units leave the shelf when the task is confirmed.

### Parameters

| Name | In | Type | Required | Meaning |
| --- | --- | --- | --- | --- |
| `taskId` | path | `string (uuid)` | Yesrequired | The pick task. |

### Request body

| Field | Type | Required | Meaning |
| --- | --- | --- | --- |
| `operationId` | `string (uuid)` | Yesrequired | A UUID you choose for this change. Send it again to repeat the request. |
| `expectedRevision` | `integer` | Yesrequired | The revision of the task you read. |
| `code` | `string` | Yesrequired | The scanned barcode of the item, an EAN-13. |
| `quantity` | `string` | Nooptional | Units this scan adds, at least 1. 1 by default. |
| `scannedAt` | `string (date-time)` | Nooptional | When the scan was made, if the handheld sent it later. The time of the request by default. |

### Responses

| Status | Meaning | Body |
| --- | --- | --- |
| `202` | The change was accepted. The body is the operation result. | `OperationResult` |
| `400` | The request cannot be read or breaks the contract: malformed JSON, a missing or unknown field, a wrong type. `fields` names each one. | `Error` |
| `401` | The token is missing, not valid or has ended. | `Error` |
| `403` | The token does not give access to this company or operation. | `Error` |
| `404` | The request was refused. The `code` is `task_not_found`. | `Error` |
| `409` | The request was refused. The `code` is `revision_conflict` or `operation_reused`. | `Error` |
| `422` | The request was refused. The `code` is `task_closed`, `task_skipped`, `location_not_scanned`, `code_not_recognized`, `wrong_item`, `quantity_not_valid`, `too_many` or `lot_expired`. | `Error` |
| `429` | The request was refused. The `code` is `rate_limited`. | `Error` |
| `503` | The request was refused. The `code` is `unavailable`. | `Error` |

### Request

curl

```bash
curl -X POST "$RDC_BASE_URL/warehouse/v1/pick-tasks/a1000000-0000-4000-8000-000000023106/scan-item" \
  -H "Authorization: Bearer $RDC_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "operationId": "6b2ce7ec-d95a-4670-8a70-15946efd9d70",
  "expectedRevision": 3,
  "code": "2900000002012",
  "quantity": "6",
  "scannedAt": "2026-11-23T07:20:00Z"
}'
```

JavaScript

```javascript
const response = await fetch(`${process.env.RDC_BASE_URL}/warehouse/v1/pick-tasks/a1000000-0000-4000-8000-000000023106/scan-item`, {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.RDC_TOKEN}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "operationId": "6b2ce7ec-d95a-4670-8a70-15946efd9d70",
    "expectedRevision": 3,
    "code": "2900000002012",
    "quantity": "6",
    "scannedAt": "2026-11-23T07:20:00Z"
  }),
});
const result = await response.json();
```

Python

```python
import os
import requests

response = requests.request(
    'POST',
    f'{os.environ["RDC_BASE_URL"]}/warehouse/v1/pick-tasks/a1000000-0000-4000-8000-000000023106/scan-item',
    headers={
        'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
    },
    json={
        'operationId': '6b2ce7ec-d95a-4670-8a70-15946efd9d70',
        'expectedRevision': 3,
        'code': '2900000002012',
        'quantity': '6',
        'scannedAt': '2026-11-23T07:20:00Z',
    },
)
result = response.json()
```

PHP

```php
<?php

$body = <<<'JSON'
{
  "operationId": "6b2ce7ec-d95a-4670-8a70-15946efd9d70",
  "expectedRevision": 3,
  "code": "2900000002012",
  "quantity": "6",
  "scannedAt": "2026-11-23T07:20:00Z"
}
JSON;

$curl = curl_init(getenv('RDC_BASE_URL') . '/warehouse/v1/pick-tasks/a1000000-0000-4000-8000-000000023106/scan-item');
curl_setopt_array($curl, [
    CURLOPT_CUSTOMREQUEST => 'POST',
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => [
        'Authorization: Bearer ' . getenv('RDC_TOKEN'),
        'Content-Type: application/json',
    ],
    CURLOPT_POSTFIELDS => $body,
]);
$result = json_decode(curl_exec($curl), true);
curl_close($curl);
```

C#

```csharp
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/warehouse/v1/pick-tasks/a1000000-0000-4000-8000-000000023106/scan-item");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
request.Content = new StringContent("""
{
  "operationId": "6b2ce7ec-d95a-4670-8a70-15946efd9d70",
  "expectedRevision": 3,
  "code": "2900000002012",
  "quantity": "6",
  "scannedAt": "2026-11-23T07:20:00Z"
}
""", System.Text.Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync();
```

### Response `202`

JSON

```json
{
  "operationId": "6b2ce7ec-d95a-4670-8a70-15946efd9d70",
  "status": "accepted",
  "aggregateRevision": 4
}
```

## Confirm a pick

POST `/warehouse/v1/pick-tasks/{taskId}/confirm`

Closes a task whose every unit was scanned: the units leave the shelf for the tote of the order.

### Parameters

| Name | In | Type | Required | Meaning |
| --- | --- | --- | --- | --- |
| `taskId` | path | `string (uuid)` | Yesrequired | The pick task. |

### Request body

| Field | Type | Required | Meaning |
| --- | --- | --- | --- |
| `operationId` | `string (uuid)` | Yesrequired | A UUID you choose for this change. Send it again to repeat the request. |
| `expectedRevision` | `integer` | Yesrequired | The revision of the task you read. |
| `scannedAt` | `string (date-time)` | Nooptional | When the scan was made, if the handheld sent it later. The time of the request by default. |

### Responses

| Status | Meaning | Body |
| --- | --- | --- |
| `202` | The change was accepted. The body is the operation result. | `OperationResult` |
| `400` | The request cannot be read or breaks the contract: malformed JSON, a missing or unknown field, a wrong type. `fields` names each one. | `Error` |
| `401` | The token is missing, not valid or has ended. | `Error` |
| `403` | The token does not give access to this company or operation. | `Error` |
| `404` | The request was refused. The `code` is `task_not_found`. | `Error` |
| `409` | The request was refused. The `code` is `revision_conflict` or `operation_reused`. | `Error` |
| `422` | The request was refused. The `code` is `task_closed`, `task_skipped`, `location_not_scanned`, `pick_not_complete` or `stock_insufficient`. | `Error` |
| `429` | The request was refused. The `code` is `rate_limited`. | `Error` |
| `503` | The request was refused. The `code` is `unavailable`. | `Error` |

### Request

curl

```bash
curl -X POST "$RDC_BASE_URL/warehouse/v1/pick-tasks/a1000000-0000-4000-8000-000000023106/confirm" \
  -H "Authorization: Bearer $RDC_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "operationId": "b653bc5c-d8f9-428a-8423-cf24688c5b2a",
  "expectedRevision": 4
}'
```

JavaScript

```javascript
const response = await fetch(`${process.env.RDC_BASE_URL}/warehouse/v1/pick-tasks/a1000000-0000-4000-8000-000000023106/confirm`, {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.RDC_TOKEN}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "operationId": "b653bc5c-d8f9-428a-8423-cf24688c5b2a",
    "expectedRevision": 4
  }),
});
const result = await response.json();
```

Python

```python
import os
import requests

response = requests.request(
    'POST',
    f'{os.environ["RDC_BASE_URL"]}/warehouse/v1/pick-tasks/a1000000-0000-4000-8000-000000023106/confirm',
    headers={
        'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
    },
    json={
        'operationId': 'b653bc5c-d8f9-428a-8423-cf24688c5b2a',
        'expectedRevision': 4,
    },
)
result = response.json()
```

PHP

```php
<?php

$body = <<<'JSON'
{
  "operationId": "b653bc5c-d8f9-428a-8423-cf24688c5b2a",
  "expectedRevision": 4
}
JSON;

$curl = curl_init(getenv('RDC_BASE_URL') . '/warehouse/v1/pick-tasks/a1000000-0000-4000-8000-000000023106/confirm');
curl_setopt_array($curl, [
    CURLOPT_CUSTOMREQUEST => 'POST',
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => [
        'Authorization: Bearer ' . getenv('RDC_TOKEN'),
        'Content-Type: application/json',
    ],
    CURLOPT_POSTFIELDS => $body,
]);
$result = json_decode(curl_exec($curl), true);
curl_close($curl);
```

C#

```csharp
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/warehouse/v1/pick-tasks/a1000000-0000-4000-8000-000000023106/confirm");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
request.Content = new StringContent("""
{
  "operationId": "b653bc5c-d8f9-428a-8423-cf24688c5b2a",
  "expectedRevision": 4
}
""", System.Text.Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync();
```

### Response `202`

JSON

```json
{
  "operationId": "b653bc5c-d8f9-428a-8423-cf24688c5b2a",
  "status": "accepted",
  "aggregateRevision": 5
}
```

## Report a pick short

POST `/warehouse/v1/pick-tasks/{taskId}/short`

Closes a task with the units that were scanned, which can be none, and a reason. A `not-found` reason asks for a count of the shelf.

### Parameters

| Name | In | Type | Required | Meaning |
| --- | --- | --- | --- | --- |
| `taskId` | path | `string (uuid)` | Yesrequired | The pick task. |

### Request body

| Field | Type | Required | Meaning |
| --- | --- | --- | --- |
| `operationId` | `string (uuid)` | Yesrequired | A UUID you choose for this change. Send it again to repeat the request. |
| `expectedRevision` | `integer` | Yesrequired | The revision of the task you read. |
| `reason` | `string` | Yesrequired | Why fewer units were found: `not-found`, `damaged` or `expired`. One of `not-found`, `damaged`, `expired` |
| `scannedAt` | `string (date-time)` | Nooptional | When the scan was made, if the handheld sent it later. The time of the request by default. |

### Responses

| Status | Meaning | Body |
| --- | --- | --- |
| `202` | The change was accepted. The body is the operation result. | `OperationResult` |
| `400` | The request cannot be read or breaks the contract: malformed JSON, a missing or unknown field, a wrong type. `fields` names each one. | `Error` |
| `401` | The token is missing, not valid or has ended. | `Error` |
| `403` | The token does not give access to this company or operation. | `Error` |
| `404` | The request was refused. The `code` is `task_not_found`. | `Error` |
| `409` | The request was refused. The `code` is `revision_conflict` or `operation_reused`. | `Error` |
| `422` | The request was refused. The `code` is `task_closed`, `task_skipped`, `location_not_scanned`, `reason_not_valid`, `pick_not_short` or `stock_insufficient`. | `Error` |
| `429` | The request was refused. The `code` is `rate_limited`. | `Error` |
| `503` | The request was refused. The `code` is `unavailable`. | `Error` |

### Request

curl

```bash
curl -X POST "$RDC_BASE_URL/warehouse/v1/pick-tasks/a1000000-0000-4000-8000-000000023106/short" \
  -H "Authorization: Bearer $RDC_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "operationId": "bc89357a-06b5-4c5a-849d-79c67214b1fa",
  "expectedRevision": 3,
  "reason": "not-found"
}'
```

JavaScript

```javascript
const response = await fetch(`${process.env.RDC_BASE_URL}/warehouse/v1/pick-tasks/a1000000-0000-4000-8000-000000023106/short`, {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.RDC_TOKEN}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "operationId": "bc89357a-06b5-4c5a-849d-79c67214b1fa",
    "expectedRevision": 3,
    "reason": "not-found"
  }),
});
const result = await response.json();
```

Python

```python
import os
import requests

response = requests.request(
    'POST',
    f'{os.environ["RDC_BASE_URL"]}/warehouse/v1/pick-tasks/a1000000-0000-4000-8000-000000023106/short',
    headers={
        'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
    },
    json={
        'operationId': 'bc89357a-06b5-4c5a-849d-79c67214b1fa',
        'expectedRevision': 3,
        'reason': 'not-found',
    },
)
result = response.json()
```

PHP

```php
<?php

$body = <<<'JSON'
{
  "operationId": "bc89357a-06b5-4c5a-849d-79c67214b1fa",
  "expectedRevision": 3,
  "reason": "not-found"
}
JSON;

$curl = curl_init(getenv('RDC_BASE_URL') . '/warehouse/v1/pick-tasks/a1000000-0000-4000-8000-000000023106/short');
curl_setopt_array($curl, [
    CURLOPT_CUSTOMREQUEST => 'POST',
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => [
        'Authorization: Bearer ' . getenv('RDC_TOKEN'),
        'Content-Type: application/json',
    ],
    CURLOPT_POSTFIELDS => $body,
]);
$result = json_decode(curl_exec($curl), true);
curl_close($curl);
```

C#

```csharp
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/warehouse/v1/pick-tasks/a1000000-0000-4000-8000-000000023106/short");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
request.Content = new StringContent("""
{
  "operationId": "bc89357a-06b5-4c5a-849d-79c67214b1fa",
  "expectedRevision": 3,
  "reason": "not-found"
}
""", System.Text.Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync();
```

### Response `202`

JSON

```json
{
  "operationId": "bc89357a-06b5-4c5a-849d-79c67214b1fa",
  "status": "accepted",
  "aggregateRevision": 4
}
```

## Skip a task

POST `/warehouse/v1/pick-tasks/{taskId}/skip`

Puts a task aside, to be picked later. A task with units scanned cannot be skipped: confirm it or report it short.

### Parameters

| Name | In | Type | Required | Meaning |
| --- | --- | --- | --- | --- |
| `taskId` | path | `string (uuid)` | Yesrequired | The pick task. |

### Request body

| Field | Type | Required | Meaning |
| --- | --- | --- | --- |
| `operationId` | `string (uuid)` | Yesrequired | A UUID you choose for this change. Send it again to repeat the request. |
| `expectedRevision` | `integer` | Yesrequired | The revision of the task you read. |

### Responses

| Status | Meaning | Body |
| --- | --- | --- |
| `202` | The change was accepted. The body is the operation result. | `OperationResult` |
| `400` | The request cannot be read or breaks the contract: malformed JSON, a missing or unknown field, a wrong type. `fields` names each one. | `Error` |
| `401` | The token is missing, not valid or has ended. | `Error` |
| `403` | The token does not give access to this company or operation. | `Error` |
| `404` | The request was refused. The `code` is `task_not_found`. | `Error` |
| `409` | The request was refused. The `code` is `revision_conflict` or `operation_reused`. | `Error` |
| `422` | The request was refused. The `code` is `task_closed`, `task_skipped` or `task_has_scans`. | `Error` |
| `429` | The request was refused. The `code` is `rate_limited`. | `Error` |
| `503` | The request was refused. The `code` is `unavailable`. | `Error` |

### Request

curl

```bash
curl -X POST "$RDC_BASE_URL/warehouse/v1/pick-tasks/a1000000-0000-4000-8000-000000023108/skip" \
  -H "Authorization: Bearer $RDC_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "operationId": "a0c5d171-243b-4ad5-87f4-5caf67fa9825",
  "expectedRevision": 1
}'
```

JavaScript

```javascript
const response = await fetch(`${process.env.RDC_BASE_URL}/warehouse/v1/pick-tasks/a1000000-0000-4000-8000-000000023108/skip`, {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.RDC_TOKEN}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "operationId": "a0c5d171-243b-4ad5-87f4-5caf67fa9825",
    "expectedRevision": 1
  }),
});
const result = await response.json();
```

Python

```python
import os
import requests

response = requests.request(
    'POST',
    f'{os.environ["RDC_BASE_URL"]}/warehouse/v1/pick-tasks/a1000000-0000-4000-8000-000000023108/skip',
    headers={
        'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
    },
    json={
        'operationId': 'a0c5d171-243b-4ad5-87f4-5caf67fa9825',
        'expectedRevision': 1,
    },
)
result = response.json()
```

PHP

```php
<?php

$body = <<<'JSON'
{
  "operationId": "a0c5d171-243b-4ad5-87f4-5caf67fa9825",
  "expectedRevision": 1
}
JSON;

$curl = curl_init(getenv('RDC_BASE_URL') . '/warehouse/v1/pick-tasks/a1000000-0000-4000-8000-000000023108/skip');
curl_setopt_array($curl, [
    CURLOPT_CUSTOMREQUEST => 'POST',
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => [
        'Authorization: Bearer ' . getenv('RDC_TOKEN'),
        'Content-Type: application/json',
    ],
    CURLOPT_POSTFIELDS => $body,
]);
$result = json_decode(curl_exec($curl), true);
curl_close($curl);
```

C#

```csharp
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/warehouse/v1/pick-tasks/a1000000-0000-4000-8000-000000023108/skip");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
request.Content = new StringContent("""
{
  "operationId": "a0c5d171-243b-4ad5-87f4-5caf67fa9825",
  "expectedRevision": 1
}
""", System.Text.Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync();
```

### Response `202`

JSON

```json
{
  "operationId": "a0c5d171-243b-4ad5-87f4-5caf67fa9825",
  "status": "accepted",
  "aggregateRevision": 2
}
```

## Resume a task

POST `/warehouse/v1/pick-tasks/{taskId}/resume`

Takes a skipped task up again.

### Parameters

| Name | In | Type | Required | Meaning |
| --- | --- | --- | --- | --- |
| `taskId` | path | `string (uuid)` | Yesrequired | The pick task. |

### Request body

| Field | Type | Required | Meaning |
| --- | --- | --- | --- |
| `operationId` | `string (uuid)` | Yesrequired | A UUID you choose for this change. Send it again to repeat the request. |
| `expectedRevision` | `integer` | Yesrequired | The revision of the task you read. |

### Responses

| Status | Meaning | Body |
| --- | --- | --- |
| `202` | The change was accepted. The body is the operation result. | `OperationResult` |
| `400` | The request cannot be read or breaks the contract: malformed JSON, a missing or unknown field, a wrong type. `fields` names each one. | `Error` |
| `401` | The token is missing, not valid or has ended. | `Error` |
| `403` | The token does not give access to this company or operation. | `Error` |
| `404` | The request was refused. The `code` is `task_not_found`. | `Error` |
| `409` | The request was refused. The `code` is `revision_conflict` or `operation_reused`. | `Error` |
| `422` | The request was refused. The `code` is `task_closed` or `task_not_skipped`. | `Error` |
| `429` | The request was refused. The `code` is `rate_limited`. | `Error` |
| `503` | The request was refused. The `code` is `unavailable`. | `Error` |

### Request

curl

```bash
curl -X POST "$RDC_BASE_URL/warehouse/v1/pick-tasks/a1000000-0000-4000-8000-000000023108/resume" \
  -H "Authorization: Bearer $RDC_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "operationId": "ea8a5371-082d-461f-86c0-1aaf8b00980f",
  "expectedRevision": 2
}'
```

JavaScript

```javascript
const response = await fetch(`${process.env.RDC_BASE_URL}/warehouse/v1/pick-tasks/a1000000-0000-4000-8000-000000023108/resume`, {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.RDC_TOKEN}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "operationId": "ea8a5371-082d-461f-86c0-1aaf8b00980f",
    "expectedRevision": 2
  }),
});
const result = await response.json();
```

Python

```python
import os
import requests

response = requests.request(
    'POST',
    f'{os.environ["RDC_BASE_URL"]}/warehouse/v1/pick-tasks/a1000000-0000-4000-8000-000000023108/resume',
    headers={
        'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
    },
    json={
        'operationId': 'ea8a5371-082d-461f-86c0-1aaf8b00980f',
        'expectedRevision': 2,
    },
)
result = response.json()
```

PHP

```php
<?php

$body = <<<'JSON'
{
  "operationId": "ea8a5371-082d-461f-86c0-1aaf8b00980f",
  "expectedRevision": 2
}
JSON;

$curl = curl_init(getenv('RDC_BASE_URL') . '/warehouse/v1/pick-tasks/a1000000-0000-4000-8000-000000023108/resume');
curl_setopt_array($curl, [
    CURLOPT_CUSTOMREQUEST => 'POST',
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => [
        'Authorization: Bearer ' . getenv('RDC_TOKEN'),
        'Content-Type: application/json',
    ],
    CURLOPT_POSTFIELDS => $body,
]);
$result = json_decode(curl_exec($curl), true);
curl_close($curl);
```

C#

```csharp
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/warehouse/v1/pick-tasks/a1000000-0000-4000-8000-000000023108/resume");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
request.Content = new StringContent("""
{
  "operationId": "ea8a5371-082d-461f-86c0-1aaf8b00980f",
  "expectedRevision": 2
}
""", System.Text.Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync();
```

### Response `202`

JSON

```json
{
  "operationId": "ea8a5371-082d-461f-86c0-1aaf8b00980f",
  "status": "accepted",
  "aggregateRevision": 3
}
```
