Working without signal
How a handheld keeps scanning when the network drops, and how its scans are checked when they arrive.
On this page
Aisles and cold rooms have dead spots. A handheld that loses signal keeps the scans of the picker in the order they were made, each with its own operationId and the time it was made, and sends them one after the other when the signal returns. The picker keeps moving, and the work is checked when it arrives.
What is queued
- Every change of a task: the scan of the location, the scan of the item, the confirmation, a short pick, a skip and a resume.
- Each carries the
expectedRevisionthe device expects at that point: the revision it last read, plus one for each earlier change it has queued for the same task. - Each carries
scannedAt, the time of the scan, which is what the date of a lot is checked against.
curl
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
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
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
$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#
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(); {
"operationId": "6b2ce7ec-d95a-4670-8a70-15946efd9d70",
"status": "accepted",
"aggregateRevision": 4
} When it arrives
A queued request that arrives twice counts once, because the operationId is the same: see Idempotency and concurrency. A queued request is checked against the task as it stands when it arrives, with the rules a scan meets online. The answers worth handling:
| Code | What it means after a gap | What the device does |
|---|---|---|
revision_conflict | The record has changed since the revision you sent. | Another device or a person changed the task meanwhile. It reads the task again, drops the queued changes that no longer apply and shows the picker the task as it is. |
lot_expired | The lot has passed its date and is not picked. | The lot ended before the scan was made. The picker closes the task short with the reason expired. |
task_closed | The task is confirmed or short and does not change any more. | The task was closed meanwhile. The device drops what is queued for it. |
stock_insufficient | The location holds fewer units than were scanned. | The shelf was counted meanwhile. The picker closes the task short with the units scanned. |