Interventions and approvals
Read the approval queue, decide an intervention and read how fast the store answers.
On this page
A lane that cannot go on raises an intervention and stops. An attendant approves it, refuses it or voids the line it is about. The decision is a change like any other: it carries an operationId, the expectedRevision of the intervention and the attendantId of the person who decides.
Why a lane asks
| Reason | Words on screen | Approve | Refuse |
|---|---|---|---|
weight_differs | Weight differs | The measured weight becomes the weight of the line. | The line is removed. |
age_check | Age check | The line is released for its weight and the approval is recorded with the attendant. | The line is removed. |
help_requested | Help requested | The request is resolved and the lane goes on. | Not possible: a request for help is resolved, not refused. |
payment_problem | Payment problem | The lane returns to payment with a fresh count of declines. | The basket returns to scanning. |
Read the queue
The queue is the list of interventions with status=waiting. The raisedAt of each tells you how long it has waited.
curl
curl "$RDC_BASE_URL/selfcheckout/v1/interventions?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/interventions?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/interventions?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/interventions?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/interventions?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": "626ba1d4-2b3c-46d6-ad7d-962a8e1d8a98",
"storeId": "5c15af2a-ec60-41c3-b91c-db5b305b4fd1",
"laneId": "b0623320-6fc1-4c0f-8a09-af041e8d91ed",
"basketId": "9cb6d664-6e70-4497-b962-5c6e9fbb069a",
"lineId": "0a2091f1-a853-4bbd-864c-b52dd2a05f54",
"reason": "age_check",
"status": "waiting",
"expectedGrams": null,
"measuredGrams": null,
"raisedAt": "2026-11-23T07:11:20Z",
"decidedAt": null,
"decidedBy": null,
"revision": 1
},
{
"id": "a4b81f78-a572-439e-86af-ca4a0637ed9e",
"storeId": "5c15af2a-ec60-41c3-b91c-db5b305b4fd1",
"laneId": "b52ad788-5852-40fe-aa11-ed923e9fe3f3",
"basketId": "e65dfec1-bfa1-46db-9978-a72896b6f0b2",
"lineId": "873ecbfe-fff8-4aa4-a720-99e461928426",
"reason": "weight_differs",
"status": "waiting",
"expectedGrams": 930,
"measuredGrams": 1120,
"raisedAt": "2026-11-23T07:10:15Z",
"decidedAt": null,
"decidedBy": null,
"revision": 1
}
],
"nextCursor": null
} Decide
curl
curl -X POST "$RDC_BASE_URL/selfcheckout/v1/interventions/626ba1d4-2b3c-46d6-ad7d-962a8e1d8a98/approve" \
-H "Authorization: Bearer $RDC_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"operationId": "b6e7d4b7-6006-4845-9c83-99fe3ee16471",
"expectedRevision": 1,
"attendantId": "cristina-lungu"
}' JavaScript
const response = await fetch(`${process.env.RDC_BASE_URL}/selfcheckout/v1/interventions/626ba1d4-2b3c-46d6-ad7d-962a8e1d8a98/approve`, {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.RDC_TOKEN}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"operationId": "b6e7d4b7-6006-4845-9c83-99fe3ee16471",
"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/interventions/626ba1d4-2b3c-46d6-ad7d-962a8e1d8a98/approve',
headers={
'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
},
json={
'operationId': 'b6e7d4b7-6006-4845-9c83-99fe3ee16471',
'expectedRevision': 1,
'attendantId': 'cristina-lungu',
},
)
result = response.json() PHP
<?php
$body = <<<'JSON'
{
"operationId": "b6e7d4b7-6006-4845-9c83-99fe3ee16471",
"expectedRevision": 1,
"attendantId": "cristina-lungu"
}
JSON;
$curl = curl_init(getenv('RDC_BASE_URL') . '/selfcheckout/v1/interventions/626ba1d4-2b3c-46d6-ad7d-962a8e1d8a98/approve');
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/interventions/626ba1d4-2b3c-46d6-ad7d-962a8e1d8a98/approve");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
request.Content = new StringContent("""
{
"operationId": "b6e7d4b7-6006-4845-9c83-99fe3ee16471",
"expectedRevision": 1,
"attendantId": "cristina-lungu"
}
""", System.Text.Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync(); {
"operationId": "b6e7d4b7-6006-4845-9c83-99fe3ee16471",
"status": "accepted",
"aggregateId": "626ba1d4-2b3c-46d6-ad7d-962a8e1d8a98",
"aggregateRevision": 2
} curl
curl -X POST "$RDC_BASE_URL/selfcheckout/v1/interventions/a4b81f78-a572-439e-86af-ca4a0637ed9e/refuse" \
-H "Authorization: Bearer $RDC_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"operationId": "77a0e785-7b8d-4b53-b5dd-ff9dd710aec5",
"expectedRevision": 1,
"attendantId": "cristina-lungu"
}' JavaScript
const response = await fetch(`${process.env.RDC_BASE_URL}/selfcheckout/v1/interventions/a4b81f78-a572-439e-86af-ca4a0637ed9e/refuse`, {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.RDC_TOKEN}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"operationId": "77a0e785-7b8d-4b53-b5dd-ff9dd710aec5",
"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/interventions/a4b81f78-a572-439e-86af-ca4a0637ed9e/refuse',
headers={
'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
},
json={
'operationId': '77a0e785-7b8d-4b53-b5dd-ff9dd710aec5',
'expectedRevision': 1,
'attendantId': 'cristina-lungu',
},
)
result = response.json() PHP
<?php
$body = <<<'JSON'
{
"operationId": "77a0e785-7b8d-4b53-b5dd-ff9dd710aec5",
"expectedRevision": 1,
"attendantId": "cristina-lungu"
}
JSON;
$curl = curl_init(getenv('RDC_BASE_URL') . '/selfcheckout/v1/interventions/a4b81f78-a572-439e-86af-ca4a0637ed9e/refuse');
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/interventions/a4b81f78-a572-439e-86af-ca4a0637ed9e/refuse");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
request.Content = new StringContent("""
{
"operationId": "77a0e785-7b8d-4b53-b5dd-ff9dd710aec5",
"expectedRevision": 1,
"attendantId": "cristina-lungu"
}
""", System.Text.Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync(); {
"operationId": "77a0e785-7b8d-4b53-b5dd-ff9dd710aec5",
"status": "accepted",
"aggregateId": "a4b81f78-a572-439e-86af-ca4a0637ed9e",
"aggregateRevision": 2
} | Refused with | Code | Why |
|---|---|---|
403 | not_an_attendant | The person in attendantId is not an attendant of the store. |
409 | already_decided | The intervention was decided already, by a person or because its line was voided. |
409 | revision_conflict | The intervention changed after you read it. |
409 | help_cannot_be_refused | A request for help can only be approved. |
409 | nothing_on_scale | The scale read no weight for the line, so it cannot be approved. |
When the last intervention of a lane is decided, the lane goes back to what its basket needs: it waits for a weight, for the payment or for the next scan. Two attendants who act on the same intervention at once cannot both succeed: the second gets revision_conflict or already_decided.
How fast the store answers
The figures of a store are computed from the baskets and interventions of the day: baskets paid, interventions raised, interventions per 100 baskets, the average seconds from a request to its decision, and the count of each reason.
curl
curl "$RDC_BASE_URL/selfcheckout/v1/stores/5c15af2a-ec60-41c3-b91c-db5b305b4fd1/metrics" \
-H "Authorization: Bearer $RDC_TOKEN" JavaScript
const response = await fetch(`${process.env.RDC_BASE_URL}/selfcheckout/v1/stores/5c15af2a-ec60-41c3-b91c-db5b305b4fd1/metrics`, {
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/stores/5c15af2a-ec60-41c3-b91c-db5b305b4fd1/metrics',
headers={
'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
},
)
result = response.json() PHP
<?php
$curl = curl_init(getenv('RDC_BASE_URL') . '/selfcheckout/v1/stores/5c15af2a-ec60-41c3-b91c-db5b305b4fd1/metrics');
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/stores/5c15af2a-ec60-41c3-b91c-db5b305b4fd1/metrics");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync(); {
"storeId": "5c15af2a-ec60-41c3-b91c-db5b305b4fd1",
"transactions": 42,
"interventions": 7,
"perHundred": "16.7",
"responseSeconds": 46,
"reasons": {
"weight_differs": 3,
"age_check": 2,
"help_requested": 1,
"payment_problem": 1
}
}