Skip to content
Docs
API 1.0.0 · 22 Nov 2026

Search the docs

    Română

    Devices and lanes

    The lanes of a store with their state, the scanner, the scale, the card reader and the printer of each, and their heartbeats.

    On this page

    List lanes

    GET /selfcheckout/v1/lanes

    Returns the lanes of a store in the order of their numbers, with their state and the configuration each runs.

    Parameters

    NameInTypeRequiredMeaning
    storeId query string (uuid) Yesrequired The store whose records you want.
    state query string Nooptional Only lanes in this state. One of idle, scanning, weight_pending, assistance_needed, payment, complete, out_of_service
    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 lanes. LanePage
    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/lanes?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/lanes?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/lanes?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/lanes?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/lanes?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": "d0b92f7c-036a-4624-821f-4d9b36e36bda",
          "storeId": "5c15af2a-ec60-41c3-b91c-db5b305b4fd1",
          "number": 1,
          "state": "scanning",
          "basketId": "c37612e6-3f10-4a7d-b962-2afad36a4ab8",
          "config": "2026.11.1",
          "revision": 1
        },
        {
          "id": "b52ad788-5852-40fe-aa11-ed923e9fe3f3",
          "storeId": "5c15af2a-ec60-41c3-b91c-db5b305b4fd1",
          "number": 2,
          "state": "assistance_needed",
          "basketId": "e65dfec1-bfa1-46db-9978-a72896b6f0b2",
          "config": "2026.11.1",
          "revision": 1
        },
        {
          "id": "d25b0432-ea78-46dc-921e-29051a2a9202",
          "storeId": "5c15af2a-ec60-41c3-b91c-db5b305b4fd1",
          "number": 3,
          "state": "complete",
          "basketId": "b6402596-2e53-4abd-bdc0-df8cdb8dba98",
          "config": "2026.11.1",
          "revision": 1
        },
        {
          "id": "b0623320-6fc1-4c0f-8a09-af041e8d91ed",
          "storeId": "5c15af2a-ec60-41c3-b91c-db5b305b4fd1",
          "number": 4,
          "state": "assistance_needed",
          "basketId": "9cb6d664-6e70-4497-b962-5c6e9fbb069a",
          "config": "2026.11.1",
          "revision": 1
        },
        {
          "id": "93745be9-35d3-4b71-a2a6-dfcafee63996",
          "storeId": "5c15af2a-ec60-41c3-b91c-db5b305b4fd1",
          "number": 5,
          "state": "idle",
          "basketId": null,
          "config": "2026.11.1",
          "revision": 1
        },
        {
          "id": "4c6a20f7-ddb2-473f-8e09-e73b9799e9c6",
          "storeId": "5c15af2a-ec60-41c3-b91c-db5b305b4fd1",
          "number": 6,
          "state": "out_of_service",
          "basketId": null,
          "config": "2026.11.1",
          "revision": 1
        }
      ],
      "nextCursor": null
    }

    Get a lane

    GET /selfcheckout/v1/lanes/{laneId}

    Parameters

    NameInTypeRequiredMeaning
    laneId path string (uuid) Yesrequired The lane.

    Responses

    StatusMeaningBody
    200 The lane at its current revision. Lane
    401 The token is missing, not valid or has ended. Error
    403 The token does not give access to this data. Error
    404 The lane 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/lanes/b52ad788-5852-40fe-aa11-ed923e9fe3f3" \
      -H "Authorization: Bearer $RDC_TOKEN"

    JavaScript

    const response = await fetch(`${process.env.RDC_BASE_URL}/selfcheckout/v1/lanes/b52ad788-5852-40fe-aa11-ed923e9fe3f3`, {
      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/lanes/b52ad788-5852-40fe-aa11-ed923e9fe3f3',
        headers={
            'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
        },
    )
    result = response.json()

    PHP

    <?php
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/selfcheckout/v1/lanes/b52ad788-5852-40fe-aa11-ed923e9fe3f3');
    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/lanes/b52ad788-5852-40fe-aa11-ed923e9fe3f3");
    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": "b52ad788-5852-40fe-aa11-ed923e9fe3f3",
      "storeId": "5c15af2a-ec60-41c3-b91c-db5b305b4fd1",
      "number": 2,
      "state": "assistance_needed",
      "basketId": "e65dfec1-bfa1-46db-9978-a72896b6f0b2",
      "config": "2026.11.1",
      "revision": 1
    }

    Open a lane

    POST /selfcheckout/v1/lanes/{laneId}/open

    An attendant opens a lane that is out of service. It is refused while a device of the lane reports a fault.

    Parameters

    NameInTypeRequiredMeaning
    laneId path string (uuid) Yesrequired The lane.

    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 lane 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. lane_not_closed: The lane is not out of service. device_fault: A device of the lane is in fault, so the lane cannot be opened. 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/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();

    Response 202

    JSON

    {
      "operationId": "d3e52a44-b34f-4d85-b40a-6624821065c8",
      "status": "accepted",
      "aggregateId": "4c6a20f7-ddb2-473f-8e09-e73b9799e9c6",
      "aggregateRevision": 2
    }

    Close a lane

    POST /selfcheckout/v1/lanes/{laneId}/close

    An attendant takes a lane out of service, from any state. A basket that is open is voided with the reason lane_closed; a basket already paid is kept.

    Parameters

    NameInTypeRequiredMeaning
    laneId path string (uuid) Yesrequired The lane.

    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 lane 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. wrong_state: The lane is in a state that does not allow this change. 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/lanes/d0b92f7c-036a-4624-821f-4d9b36e36bda/close" \
      -H "Authorization: Bearer $RDC_TOKEN" \
      -H "Content-Type: application/json" \
      -d '{
      "operationId": "4f4b7459-f75a-4f82-bfd2-f827f2cc0b27",
      "expectedRevision": 1,
      "attendantId": "cristina-lungu"
    }'

    JavaScript

    const response = await fetch(`${process.env.RDC_BASE_URL}/selfcheckout/v1/lanes/d0b92f7c-036a-4624-821f-4d9b36e36bda/close`, {
      method: 'POST',
      headers: {
        Authorization: `Bearer ${process.env.RDC_TOKEN}`,
        'Content-Type': 'application/json',
      },
      body: JSON.stringify({
        "operationId": "4f4b7459-f75a-4f82-bfd2-f827f2cc0b27",
        "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/d0b92f7c-036a-4624-821f-4d9b36e36bda/close',
        headers={
            'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
        },
        json={
            'operationId': '4f4b7459-f75a-4f82-bfd2-f827f2cc0b27',
            'expectedRevision': 1,
            'attendantId': 'cristina-lungu',
        },
    )
    result = response.json()

    PHP

    <?php
    
    $body = <<<'JSON'
    {
      "operationId": "4f4b7459-f75a-4f82-bfd2-f827f2cc0b27",
      "expectedRevision": 1,
      "attendantId": "cristina-lungu"
    }
    JSON;
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/selfcheckout/v1/lanes/d0b92f7c-036a-4624-821f-4d9b36e36bda/close');
    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/d0b92f7c-036a-4624-821f-4d9b36e36bda/close");
    request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
    request.Content = new StringContent("""
    {
      "operationId": "4f4b7459-f75a-4f82-bfd2-f827f2cc0b27",
      "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": "4f4b7459-f75a-4f82-bfd2-f827f2cc0b27",
      "status": "accepted",
      "aggregateId": "d0b92f7c-036a-4624-821f-4d9b36e36bda",
      "aggregateRevision": 2
    }

    Release a lane

    POST /selfcheckout/v1/lanes/{laneId}/release

    Moves a lane that completed a basket back to idle, once the shopper has the receipt. The paid basket is kept.

    Parameters

    NameInTypeRequiredMeaning
    laneId path string (uuid) Yesrequired The lane.

    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.

    Responses

    StatusMeaningBody
    202 The change was accepted. The body is the operation result: aggregateId is the record that was changed. OperationResult
    401 The token is missing, not valid or has ended. Error
    403 The token does not give access to this data. Error
    404 The lane 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. lane_out_of_service: The lane is out of service. lane_not_complete: The lane has not finished a basket. 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/lanes/d25b0432-ea78-46dc-921e-29051a2a9202/release" \
      -H "Authorization: Bearer $RDC_TOKEN" \
      -H "Content-Type: application/json" \
      -d '{
      "operationId": "d96f32af-c413-41c8-8878-0bb5b46ee6e5",
      "expectedRevision": 6
    }'

    JavaScript

    const response = await fetch(`${process.env.RDC_BASE_URL}/selfcheckout/v1/lanes/d25b0432-ea78-46dc-921e-29051a2a9202/release`, {
      method: 'POST',
      headers: {
        Authorization: `Bearer ${process.env.RDC_TOKEN}`,
        'Content-Type': 'application/json',
      },
      body: JSON.stringify({
        "operationId": "d96f32af-c413-41c8-8878-0bb5b46ee6e5",
        "expectedRevision": 6
      }),
    });
    const result = await response.json();

    Python

    import os
    import requests
    
    response = requests.request(
        'POST',
        f'{os.environ["RDC_BASE_URL"]}/selfcheckout/v1/lanes/d25b0432-ea78-46dc-921e-29051a2a9202/release',
        headers={
            'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
        },
        json={
            'operationId': 'd96f32af-c413-41c8-8878-0bb5b46ee6e5',
            'expectedRevision': 6,
        },
    )
    result = response.json()

    PHP

    <?php
    
    $body = <<<'JSON'
    {
      "operationId": "d96f32af-c413-41c8-8878-0bb5b46ee6e5",
      "expectedRevision": 6
    }
    JSON;
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/selfcheckout/v1/lanes/d25b0432-ea78-46dc-921e-29051a2a9202/release');
    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/d25b0432-ea78-46dc-921e-29051a2a9202/release");
    request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
    request.Content = new StringContent("""
    {
      "operationId": "d96f32af-c413-41c8-8878-0bb5b46ee6e5",
      "expectedRevision": 6
    }
    """, System.Text.Encoding.UTF8, "application/json");
    var response = await client.SendAsync(request);
    var result = await response.Content.ReadAsStringAsync();

    Response 202

    JSON

    {
      "operationId": "d96f32af-c413-41c8-8878-0bb5b46ee6e5",
      "status": "accepted",
      "aggregateId": "93745be9-35d3-4b71-a2a6-dfcafee63996",
      "aggregateRevision": 7
    }

    List devices

    GET /selfcheckout/v1/devices

    Returns the scanner, the scale, the card reader and the printer of each lane, with the version, the last heartbeat and the fault. A device that has not reported for two minutes is silent.

    Parameters

    NameInTypeRequiredMeaning
    storeId query string (uuid) Yesrequired The store whose records you want.
    laneId query string (uuid) Nooptional Only devices of this lane.
    kind query string Nooptional Only devices of this kind. One of scanner, scale, reader, printer
    status query string Nooptional Only devices with this status. One of ok, fault, silent
    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 devices. DevicePage
    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/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();

    Response 200

    JSON

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

    Report a heartbeat

    POST /selfcheckout/v1/devices/{deviceId}/heartbeat

    A device reports that it works, or the fault it has. A first fault takes the lane out of service, voids an open basket and raises the event device.faulted. A report without a fault clears the fault; the lane stays out of service until an attendant opens it.

    Parameters

    NameInTypeRequiredMeaning
    deviceId path string (uuid) Yesrequired The device.

    Request body

    FieldTypeRequiredMeaning
    operationId string (uuid) Yesrequired A UUID you choose for this change. Send it again to repeat the request.
    fault string Yesrequired The fault of the device, or null when it works. One of paper_out, jammed, no_signal, read_error

    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 The token does not give access to this data. Error
    404 The device does not exist in your account. Error
    409 The operationId was already used with a different request. 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/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();

    Response 202

    JSON

    {
      "operationId": "ee09d551-69e5-499e-955c-4e0dc6d7ab5f",
      "status": "accepted",
      "aggregateId": "672442ce-99e1-408f-8056-ea7ae55718e7",
      "aggregateRevision": 2
    }