Skip to content
Docs
API 1.0.0 · 22 Nov 2026

Search the docs

    Română

    Interventions

    The requests of lanes for a person: read them, approve or refuse them, and read the figures of a store.

    On this page

    List interventions

    GET /selfcheckout/v1/interventions

    Returns the requests of the lanes of a store, newest first. status=waiting is the approval queue.

    Parameters

    NameInTypeRequiredMeaning
    storeId query string (uuid) Yesrequired The store whose records you want.
    status query string Nooptional Only interventions in this state. One of waiting, approved, refused, voided
    reason query string Nooptional Only interventions with this reason. One of weight_differs, age_check, help_requested, payment_problem
    limit query integer Nooptional Records per page, from 1 to 500. Default 100 Range 1 – 500
    cursor query string Nooptional The nextCursor of the previous page.

    Responses

    StatusMeaningBody
    200 A page of interventions. InterventionPage
    401 The token is missing, not valid or has ended. Error
    403 The token does not give access to this data. Error
    404 The store does not exist in your account. Error
    429 Too many requests. The request was not processed. Error
    503 The service cannot answer now. Error

    Request

    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();

    Response 200

    JSON

    {
      "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
    }

    Get an intervention

    GET /selfcheckout/v1/interventions/{interventionId}

    Parameters

    NameInTypeRequiredMeaning
    interventionId path string (uuid) Yesrequired The intervention.

    Responses

    StatusMeaningBody
    200 The intervention at its current revision. Intervention
    401 The token is missing, not valid or has ended. Error
    403 The token does not give access to this data. Error
    404 The intervention does not exist in your account. Error
    429 Too many requests. The request was not processed. Error
    503 The service cannot answer now. Error

    Request

    curl

    curl "$RDC_BASE_URL/selfcheckout/v1/interventions/a4b81f78-a572-439e-86af-ca4a0637ed9e" \
      -H "Authorization: Bearer $RDC_TOKEN"

    JavaScript

    const response = await fetch(`${process.env.RDC_BASE_URL}/selfcheckout/v1/interventions/a4b81f78-a572-439e-86af-ca4a0637ed9e`, {
      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/a4b81f78-a572-439e-86af-ca4a0637ed9e',
        headers={
            'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
        },
    )
    result = response.json()

    PHP

    <?php
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/selfcheckout/v1/interventions/a4b81f78-a572-439e-86af-ca4a0637ed9e');
    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/a4b81f78-a572-439e-86af-ca4a0637ed9e");
    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

    {
      "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
    }

    Approve an intervention

    POST /selfcheckout/v1/interventions/{interventionId}/approve

    An attendant approves. An age check releases the line for its weight and records who approved. A weight that differs counts the measured weight. A request for help is resolved. A payment problem returns the lane to payment. An approval of a weight with nothing on the scale is refused.

    Parameters

    NameInTypeRequiredMeaning
    interventionId path string (uuid) Yesrequired The intervention.

    Request body

    FieldTypeRequiredMeaning
    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 record you read.
    attendantId string Yesrequired The attendant who decides. Only an attendant of the store is accepted; the decision is recorded under this identifier.

    Responses

    StatusMeaningBody
    202 The change was accepted. The body is the operation result: aggregateId is the record that was changed. OperationResult
    400 The request cannot be read or breaks the contract: malformed JSON, a missing or unknown field, a wrong type. Error
    401 The token is missing, not valid or has ended. Error
    403 forbidden: The token does not give access to this data. not_an_attendant: The person named in attendantId is not an attendant of the store, so the decision is not recorded. Error
    404 The intervention does not exist in your account. Error
    409 revision_conflict: The record changed since the revision you sent. Nothing was applied. operation_reused: The operationId was already used with a different request. already_decided: The intervention was already decided. nothing_on_scale: The scale read no weight for the line, so the line cannot be approved. Error
    429 Too many requests. The request was not processed. Error
    503 The service cannot answer now. Error

    Request

    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();

    Response 202

    JSON

    {
      "operationId": "b6e7d4b7-6006-4845-9c83-99fe3ee16471",
      "status": "accepted",
      "aggregateId": "626ba1d4-2b3c-46d6-ad7d-962a8e1d8a98",
      "aggregateRevision": 2
    }

    Refuse an intervention

    POST /selfcheckout/v1/interventions/{interventionId}/refuse

    An attendant refuses. The line of an age check or of a weight is removed; a payment problem returns the basket to scanning. A request for help cannot be refused.

    Parameters

    NameInTypeRequiredMeaning
    interventionId path string (uuid) Yesrequired The intervention.

    Request body

    FieldTypeRequiredMeaning
    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 record you read.
    attendantId string Yesrequired The attendant who decides. Only an attendant of the store is accepted; the decision is recorded under this identifier.

    Responses

    StatusMeaningBody
    202 The change was accepted. The body is the operation result: aggregateId is the record that was changed. OperationResult
    400 The request cannot be read or breaks the contract: malformed JSON, a missing or unknown field, a wrong type. Error
    401 The token is missing, not valid or has ended. Error
    403 forbidden: The token does not give access to this data. not_an_attendant: The person named in attendantId is not an attendant of the store, so the decision is not recorded. Error
    404 The intervention does not exist in your account. Error
    409 revision_conflict: The record changed since the revision you sent. Nothing was applied. operation_reused: The operationId was already used with a different request. already_decided: The intervention was already decided. help_cannot_be_refused: A request for help is resolved, not refused. Error
    429 Too many requests. The request was not processed. Error
    503 The service cannot answer now. Error

    Request

    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();

    Response 202

    JSON

    {
      "operationId": "77a0e785-7b8d-4b53-b5dd-ff9dd710aec5",
      "status": "accepted",
      "aggregateId": "a4b81f78-a572-439e-86af-ca4a0637ed9e",
      "aggregateRevision": 2
    }

    Get the figures of a store

    GET /selfcheckout/v1/stores/{storeId}/metrics

    Returns the baskets paid today, the interventions raised, the interventions per 100 baskets, the average seconds from a request to its decision and the count of each reason.

    Parameters

    NameInTypeRequiredMeaning
    storeId path string (uuid) Yesrequired The store.

    Responses

    StatusMeaningBody
    200 The figures of the store for the day. StoreMetrics
    401 The token is missing, not valid or has ended. Error
    403 The token does not give access to this data. Error
    404 The store does not exist in your account. Error
    429 Too many requests. The request was not processed. Error
    503 The service cannot answer now. Error

    Request

    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();

    Response 200

    JSON

    {
      "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
      }
    }