---
title: "Scan flow and barcode formats | Docs | WMS by R&D Copilot"
description: "What a handheld scans at a pick, in which order, and what each code has to look like."
canonical: "https://warehouse.rdcopilot.com/docs/handheld/scan-flow-and-barcode-formats/"
language: en
updated: 2026-11-22
---

# Scan flow and barcode formats

What a handheld scans at a pick, in which order, and what each code has to look like.

A pick is two scans and a confirmation. The handheld shows the task: the location to go to, the item, the lot and the quantity. The picker scans the shelf label, then the item, and confirms. Each scan is a request, and the answer says at once whether the scan counts.

1.  Scan the location
    
    The code is compared with the location of the task. The task moves from `assigned` to `at-location`. Another shelf is `wrong_location`.
    
2.  Scan the item
    
    The code is compared with the item of the task. Each scan adds its units, one by default, and the task is `item-scanned`. Another item is `wrong_item`, and more units than the task asks for are `too_many`.
    
3.  Confirm
    
    When every unit is scanned, the task is confirmed and its units go to the tote. When the shelf holds fewer, the picker reports the task short with a reason.
    

## Barcode formats

| Code | Format | Checked |
| --- | --- | --- |
| Item | An EAN-13: thirteen digits, the last one a check digit. | The check digit is verified. A number that is not an EAN-13 is `code_not_recognized`; an EAN-13 of another item is `wrong_item`. |
| Location | The location code as text, for example `A-01-02`, in a linear barcode or a QR code. | The text is compared with the location of the task. A text that is no location is `code_not_recognized`. |

These are the item codes of the test company:

| Item | EAN-13 |
| --- | --- |
| `FA-0010` | `2900000000100` |
| `UL-0101` | `2900000001015` |
| `ZA-0201` | `2900000002012` |
| `LA-0307` | `2900000003071` |
| `DT-0412` | `2900000004122` |
| `AM-0518` | `2900000005181` |

## More than one unit in a scan

A scan adds `quantity` units, 1 by default. A picker who counts a stack and keys the number sends one request instead of many. The rule is the same: the units added by every scan together cannot exceed what the task asks for.

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
{
  "operationId": "6b2ce7ec-d95a-4670-8a70-15946efd9d70",
  "status": "accepted",
  "aggregateRevision": 4
}
```

## When the shelf holds fewer

Scan what is there, then report the task short with a reason: `not-found`, `damaged` or `expired`. The units scanned go to the tote and the rest stays on backorder. An empty shelf is a short pick with no units.

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
{
  "operationId": "bc89357a-06b5-4c5a-849d-79c67214b1fa",
  "status": "accepted",
  "aggregateRevision": 4
}
```
