Health and heartbeats
How a device reports that it works, what silent and fault mean and how to read the health of a store.
On this page
Every device sends a heartbeat. A heartbeat names the device and either says that it works (fault is null) or names the fault. The system keeps the time of the last heartbeat, the version of the software the device runs and the fault. A device that has not reported for 2 minutes is shown as silent.
curl
curl -X POST "$RDC_BASE_URL/selfcheckout/v1/devices/672442ce-99e1-408f-8056-ea7ae55718e7/heartbeat" \
-H "Authorization: Bearer $RDC_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"operationId": "ee09d551-69e5-499e-955c-4e0dc6d7ab5f",
"fault": null
}' JavaScript
const response = await fetch(`${process.env.RDC_BASE_URL}/selfcheckout/v1/devices/672442ce-99e1-408f-8056-ea7ae55718e7/heartbeat`, {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.RDC_TOKEN}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"operationId": "ee09d551-69e5-499e-955c-4e0dc6d7ab5f",
"fault": null
}),
});
const result = await response.json(); Python
import os
import requests
response = requests.request(
'POST',
f'{os.environ["RDC_BASE_URL"]}/selfcheckout/v1/devices/672442ce-99e1-408f-8056-ea7ae55718e7/heartbeat',
headers={
'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
},
json={
'operationId': 'ee09d551-69e5-499e-955c-4e0dc6d7ab5f',
'fault': None,
},
)
result = response.json() PHP
<?php
$body = <<<'JSON'
{
"operationId": "ee09d551-69e5-499e-955c-4e0dc6d7ab5f",
"fault": null
}
JSON;
$curl = curl_init(getenv('RDC_BASE_URL') . '/selfcheckout/v1/devices/672442ce-99e1-408f-8056-ea7ae55718e7/heartbeat');
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")}/selfcheckout/v1/devices/672442ce-99e1-408f-8056-ea7ae55718e7/heartbeat");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
request.Content = new StringContent("""
{
"operationId": "ee09d551-69e5-499e-955c-4e0dc6d7ab5f",
"fault": null
}
""", System.Text.Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync(); {
"operationId": "ee09d551-69e5-499e-955c-4e0dc6d7ab5f",
"status": "accepted",
"aggregateId": "672442ce-99e1-408f-8056-ea7ae55718e7",
"aggregateRevision": 2
} | Status | Meaning |
|---|---|
ok | The last heartbeat is recent and reports no fault. |
fault | The device reported a fault: paper_out, jammed, no_signal or read_error. Its lane is out of service. |
silent | The device reported no fault, but its last heartbeat is older than two minutes. The lane is not stopped; look at the device. |
Read the health of a store
List the devices of a store, and filter by status to see only the ones that need a look. version shows a device that runs an older version than its neighbours, for example after a rollout that did not reach it.
curl
curl "$RDC_BASE_URL/selfcheckout/v1/devices?storeId=5c15af2a-ec60-41c3-b91c-db5b305b4fd1&limit=20" \
-H "Authorization: Bearer $RDC_TOKEN" JavaScript
const response = await fetch(`${process.env.RDC_BASE_URL}/selfcheckout/v1/devices?storeId=5c15af2a-ec60-41c3-b91c-db5b305b4fd1&limit=20`, {
method: 'GET',
headers: {
Authorization: `Bearer ${process.env.RDC_TOKEN}`,
},
});
const result = await response.json(); Python
import os
import requests
response = requests.request(
'GET',
f'{os.environ["RDC_BASE_URL"]}/selfcheckout/v1/devices?storeId=5c15af2a-ec60-41c3-b91c-db5b305b4fd1&limit=20',
headers={
'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
},
)
result = response.json() PHP
<?php
$curl = curl_init(getenv('RDC_BASE_URL') . '/selfcheckout/v1/devices?storeId=5c15af2a-ec60-41c3-b91c-db5b305b4fd1&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#
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/selfcheckout/v1/devices?storeId=5c15af2a-ec60-41c3-b91c-db5b305b4fd1&limit=20");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync(); {
"items": [
{
"id": "08ff7a7c-a715-4582-bfad-4dab2a38dbdc",
"storeId": "5c15af2a-ec60-41c3-b91c-db5b305b4fd1",
"laneId": "93745be9-35d3-4b71-a2a6-dfcafee63996",
"kind": "reader",
"version": "5.1.3",
"lastHeartbeat": "2026-11-23T07:08:40Z",
"status": "silent",
"fault": null,
"revision": 1
},
{
"id": "cccb8469-e72f-4766-9d81-eeac3a607055",
"storeId": "5c15af2a-ec60-41c3-b91c-db5b305b4fd1",
"laneId": "4c6a20f7-ddb2-473f-8e09-e73b9799e9c6",
"kind": "scanner",
"version": "4.2.1",
"lastHeartbeat": "2026-11-23T07:12:00Z",
"status": "ok",
"fault": null,
"revision": 1
},
{
"id": "d6574438-5310-4d29-b277-07b16b4e2bad",
"storeId": "5c15af2a-ec60-41c3-b91c-db5b305b4fd1",
"laneId": "4c6a20f7-ddb2-473f-8e09-e73b9799e9c6",
"kind": "scale",
"version": "2.8.0",
"lastHeartbeat": "2026-11-23T07:12:00Z",
"status": "ok",
"fault": null,
"revision": 1
},
{
"id": "6faacabe-9c89-4135-8ce0-1bb792e6e235",
"storeId": "5c15af2a-ec60-41c3-b91c-db5b305b4fd1",
"laneId": "4c6a20f7-ddb2-473f-8e09-e73b9799e9c6",
"kind": "reader",
"version": "5.1.3",
"lastHeartbeat": "2026-11-23T07:12:00Z",
"status": "ok",
"fault": null,
"revision": 1
},
{
"id": "672442ce-99e1-408f-8056-ea7ae55718e7",
"storeId": "5c15af2a-ec60-41c3-b91c-db5b305b4fd1",
"laneId": "4c6a20f7-ddb2-473f-8e09-e73b9799e9c6",
"kind": "printer",
"version": "3.0.4",
"lastHeartbeat": "2026-11-23T07:03:10Z",
"status": "fault",
"fault": "paper_out",
"revision": 1
}
],
"nextCursor": null
} What a fault does
- The first heartbeat with a fault takes the lane out of service, voids an open basket and sends
device.faulted. - A heartbeat with the same fault again updates the time of the last heartbeat and sends no second event.
- A heartbeat with
faultset tonullclears the fault. The lane stays out of service until an attendant opens it withopenLane. - A rollout does not advance while a lane of an applied ring has a device in fault. See Roll out a configuration.
curl
curl -X POST "$RDC_BASE_URL/selfcheckout/v1/lanes/4c6a20f7-ddb2-473f-8e09-e73b9799e9c6/open" \
-H "Authorization: Bearer $RDC_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"operationId": "d3e52a44-b34f-4d85-b40a-6624821065c8",
"expectedRevision": 1,
"attendantId": "cristina-lungu"
}' JavaScript
const response = await fetch(`${process.env.RDC_BASE_URL}/selfcheckout/v1/lanes/4c6a20f7-ddb2-473f-8e09-e73b9799e9c6/open`, {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.RDC_TOKEN}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"operationId": "d3e52a44-b34f-4d85-b40a-6624821065c8",
"expectedRevision": 1,
"attendantId": "cristina-lungu"
}),
});
const result = await response.json(); Python
import os
import requests
response = requests.request(
'POST',
f'{os.environ["RDC_BASE_URL"]}/selfcheckout/v1/lanes/4c6a20f7-ddb2-473f-8e09-e73b9799e9c6/open',
headers={
'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
},
json={
'operationId': 'd3e52a44-b34f-4d85-b40a-6624821065c8',
'expectedRevision': 1,
'attendantId': 'cristina-lungu',
},
)
result = response.json() PHP
<?php
$body = <<<'JSON'
{
"operationId": "d3e52a44-b34f-4d85-b40a-6624821065c8",
"expectedRevision": 1,
"attendantId": "cristina-lungu"
}
JSON;
$curl = curl_init(getenv('RDC_BASE_URL') . '/selfcheckout/v1/lanes/4c6a20f7-ddb2-473f-8e09-e73b9799e9c6/open');
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")}/selfcheckout/v1/lanes/4c6a20f7-ddb2-473f-8e09-e73b9799e9c6/open");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
request.Content = new StringContent("""
{
"operationId": "d3e52a44-b34f-4d85-b40a-6624821065c8",
"expectedRevision": 1,
"attendantId": "cristina-lungu"
}
""", System.Text.Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync(); {
"operationId": "d3e52a44-b34f-4d85-b40a-6624821065c8",
"status": "accepted",
"aggregateId": "4c6a20f7-ddb2-473f-8e09-e73b9799e9c6",
"aggregateRevision": 2
}