Skip to content
Docs
API 1.0.0 · 22 Nov 2026

Search the docs

    Română

    Roll out a configuration

    Move a new configuration to the lanes of a store ring by ring, halt it, resume it or roll it back.

    A configuration is the set of settings a lane runs. A rollout moves a new one to the lanes of one store in three rings: the first lane, then the next lanes, then the rest. Each lane shows the config it runs, so you can see which ring has it.

    1. Plan

      planRollout with the store and the configuration. The rollout is planned and no lane changes. A store has one rollout that is planned or running; a configuration that every lane already runs is refused with config_current.

    2. Advance

      advanceRollout applies the configuration to the next ring. The first advance starts the rollout.

    3. Look at the lanes

      Read the lanes and the devices of the rings that have the configuration. A lane out of service, or a device in fault, stops the next advance with ring_unhealthy.

    4. Finish, halt or go back

      The last advance completes the rollout and sends rollout.completed. haltRollout stops it where it is and resumeRollout lets it run again. rollbackRollout gives the lanes of the applied rings the configuration they ran before.

    curl

    curl -X POST "$RDC_BASE_URL/selfcheckout/v1/rollouts" \
      -H "Authorization: Bearer $RDC_TOKEN" \
      -H "Content-Type: application/json" \
      -d '{
      "operationId": "813fa103-9f4f-49a1-a133-489ac6b6e349",
      "storeId": "3e8526ad-3554-43e1-a17a-50abddcb6e7f",
      "config": "2026.12.1"
    }'

    JavaScript

    const response = await fetch(`${process.env.RDC_BASE_URL}/selfcheckout/v1/rollouts`, {
      method: 'POST',
      headers: {
        Authorization: `Bearer ${process.env.RDC_TOKEN}`,
        'Content-Type': 'application/json',
      },
      body: JSON.stringify({
        "operationId": "813fa103-9f4f-49a1-a133-489ac6b6e349",
        "storeId": "3e8526ad-3554-43e1-a17a-50abddcb6e7f",
        "config": "2026.12.1"
      }),
    });
    const result = await response.json();

    Python

    import os
    import requests
    
    response = requests.request(
        'POST',
        f'{os.environ["RDC_BASE_URL"]}/selfcheckout/v1/rollouts',
        headers={
            'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
        },
        json={
            'operationId': '813fa103-9f4f-49a1-a133-489ac6b6e349',
            'storeId': '3e8526ad-3554-43e1-a17a-50abddcb6e7f',
            'config': '2026.12.1',
        },
    )
    result = response.json()

    PHP

    <?php
    
    $body = <<<'JSON'
    {
      "operationId": "813fa103-9f4f-49a1-a133-489ac6b6e349",
      "storeId": "3e8526ad-3554-43e1-a17a-50abddcb6e7f",
      "config": "2026.12.1"
    }
    JSON;
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/selfcheckout/v1/rollouts');
    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/rollouts");
    request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
    request.Content = new StringContent("""
    {
      "operationId": "813fa103-9f4f-49a1-a133-489ac6b6e349",
      "storeId": "3e8526ad-3554-43e1-a17a-50abddcb6e7f",
      "config": "2026.12.1"
    }
    """, System.Text.Encoding.UTF8, "application/json");
    var response = await client.SendAsync(request);
    var result = await response.Content.ReadAsStringAsync();

    Response 202

    {
      "operationId": "813fa103-9f4f-49a1-a133-489ac6b6e349",
      "status": "accepted",
      "aggregateId": "4fb6cc7d-1018-4733-bd41-7ca2816af0a9",
      "aggregateRevision": 1
    }

    curl

    curl -X POST "$RDC_BASE_URL/selfcheckout/v1/rollouts/00cfbe43-51af-46b3-a72a-70ce5faee1b5/advance" \
      -H "Authorization: Bearer $RDC_TOKEN" \
      -H "Content-Type: application/json" \
      -d '{
      "operationId": "8d19d55d-ff1f-4c6c-a231-57f868af416e",
      "expectedRevision": 1
    }'

    JavaScript

    const response = await fetch(`${process.env.RDC_BASE_URL}/selfcheckout/v1/rollouts/00cfbe43-51af-46b3-a72a-70ce5faee1b5/advance`, {
      method: 'POST',
      headers: {
        Authorization: `Bearer ${process.env.RDC_TOKEN}`,
        'Content-Type': 'application/json',
      },
      body: JSON.stringify({
        "operationId": "8d19d55d-ff1f-4c6c-a231-57f868af416e",
        "expectedRevision": 1
      }),
    });
    const result = await response.json();

    Python

    import os
    import requests
    
    response = requests.request(
        'POST',
        f'{os.environ["RDC_BASE_URL"]}/selfcheckout/v1/rollouts/00cfbe43-51af-46b3-a72a-70ce5faee1b5/advance',
        headers={
            'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
        },
        json={
            'operationId': '8d19d55d-ff1f-4c6c-a231-57f868af416e',
            'expectedRevision': 1,
        },
    )
    result = response.json()

    PHP

    <?php
    
    $body = <<<'JSON'
    {
      "operationId": "8d19d55d-ff1f-4c6c-a231-57f868af416e",
      "expectedRevision": 1
    }
    JSON;
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/selfcheckout/v1/rollouts/00cfbe43-51af-46b3-a72a-70ce5faee1b5/advance');
    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/rollouts/00cfbe43-51af-46b3-a72a-70ce5faee1b5/advance");
    request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
    request.Content = new StringContent("""
    {
      "operationId": "8d19d55d-ff1f-4c6c-a231-57f868af416e",
      "expectedRevision": 1
    }
    """, System.Text.Encoding.UTF8, "application/json");
    var response = await client.SendAsync(request);
    var result = await response.Content.ReadAsStringAsync();

    Response 202

    {
      "operationId": "8d19d55d-ff1f-4c6c-a231-57f868af416e",
      "status": "accepted",
      "aggregateId": "00cfbe43-51af-46b3-a72a-70ce5faee1b5",
      "aggregateRevision": 2
    }

    States of a rollout

    StatusMeaning
    planned Nothing is applied yet. advanceRollout starts it.
    rolling At least one ring has the configuration and at least one does not.
    halted Stopped by haltRollout. The rings applied keep the configuration.
    completed Every ring has the configuration. The rollout does not change any more.
    rolled_back The applied rings went back to the previous configuration. The rollout does not change any more.

    curl

    curl -X POST "$RDC_BASE_URL/selfcheckout/v1/rollouts/9e1f04f6-bc97-4182-85ce-1c7ae1841324/halt" \
      -H "Authorization: Bearer $RDC_TOKEN" \
      -H "Content-Type: application/json" \
      -d '{
      "operationId": "1f032408-2ede-4b78-8665-c00f4b597361",
      "expectedRevision": 2
    }'

    JavaScript

    const response = await fetch(`${process.env.RDC_BASE_URL}/selfcheckout/v1/rollouts/9e1f04f6-bc97-4182-85ce-1c7ae1841324/halt`, {
      method: 'POST',
      headers: {
        Authorization: `Bearer ${process.env.RDC_TOKEN}`,
        'Content-Type': 'application/json',
      },
      body: JSON.stringify({
        "operationId": "1f032408-2ede-4b78-8665-c00f4b597361",
        "expectedRevision": 2
      }),
    });
    const result = await response.json();

    Python

    import os
    import requests
    
    response = requests.request(
        'POST',
        f'{os.environ["RDC_BASE_URL"]}/selfcheckout/v1/rollouts/9e1f04f6-bc97-4182-85ce-1c7ae1841324/halt',
        headers={
            'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
        },
        json={
            'operationId': '1f032408-2ede-4b78-8665-c00f4b597361',
            'expectedRevision': 2,
        },
    )
    result = response.json()

    PHP

    <?php
    
    $body = <<<'JSON'
    {
      "operationId": "1f032408-2ede-4b78-8665-c00f4b597361",
      "expectedRevision": 2
    }
    JSON;
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/selfcheckout/v1/rollouts/9e1f04f6-bc97-4182-85ce-1c7ae1841324/halt');
    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/rollouts/9e1f04f6-bc97-4182-85ce-1c7ae1841324/halt");
    request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
    request.Content = new StringContent("""
    {
      "operationId": "1f032408-2ede-4b78-8665-c00f4b597361",
      "expectedRevision": 2
    }
    """, System.Text.Encoding.UTF8, "application/json");
    var response = await client.SendAsync(request);
    var result = await response.Content.ReadAsStringAsync();

    Response 202

    {
      "operationId": "1f032408-2ede-4b78-8665-c00f4b597361",
      "status": "accepted",
      "aggregateId": "9e1f04f6-bc97-4182-85ce-1c7ae1841324",
      "aggregateRevision": 3
    }

    curl

    curl -X POST "$RDC_BASE_URL/selfcheckout/v1/rollouts/9e1f04f6-bc97-4182-85ce-1c7ae1841324/rollback" \
      -H "Authorization: Bearer $RDC_TOKEN" \
      -H "Content-Type: application/json" \
      -d '{
      "operationId": "63fa0d05-ca92-424c-a277-515e0d1a89ee",
      "expectedRevision": 2
    }'

    JavaScript

    const response = await fetch(`${process.env.RDC_BASE_URL}/selfcheckout/v1/rollouts/9e1f04f6-bc97-4182-85ce-1c7ae1841324/rollback`, {
      method: 'POST',
      headers: {
        Authorization: `Bearer ${process.env.RDC_TOKEN}`,
        'Content-Type': 'application/json',
      },
      body: JSON.stringify({
        "operationId": "63fa0d05-ca92-424c-a277-515e0d1a89ee",
        "expectedRevision": 2
      }),
    });
    const result = await response.json();

    Python

    import os
    import requests
    
    response = requests.request(
        'POST',
        f'{os.environ["RDC_BASE_URL"]}/selfcheckout/v1/rollouts/9e1f04f6-bc97-4182-85ce-1c7ae1841324/rollback',
        headers={
            'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
        },
        json={
            'operationId': '63fa0d05-ca92-424c-a277-515e0d1a89ee',
            'expectedRevision': 2,
        },
    )
    result = response.json()

    PHP

    <?php
    
    $body = <<<'JSON'
    {
      "operationId": "63fa0d05-ca92-424c-a277-515e0d1a89ee",
      "expectedRevision": 2
    }
    JSON;
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/selfcheckout/v1/rollouts/9e1f04f6-bc97-4182-85ce-1c7ae1841324/rollback');
    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/rollouts/9e1f04f6-bc97-4182-85ce-1c7ae1841324/rollback");
    request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
    request.Content = new StringContent("""
    {
      "operationId": "63fa0d05-ca92-424c-a277-515e0d1a89ee",
      "expectedRevision": 2
    }
    """, System.Text.Encoding.UTF8, "application/json");
    var response = await client.SendAsync(request);
    var result = await response.Content.ReadAsStringAsync();

    Response 202

    {
      "operationId": "63fa0d05-ca92-424c-a277-515e0d1a89ee",
      "status": "accepted",
      "aggregateId": "9e1f04f6-bc97-4182-85ce-1c7ae1841324",
      "aggregateRevision": 3
    }

    Refused withCodeWhy
    409rollout_activeThe store has another rollout that is planned or running.
    409ring_unhealthyA lane of an applied ring is out of service or has a device in fault.
    409rollout_not_runningA halted rollout cannot advance. A planned rollout cannot be halted or rolled back.
    409rollout_not_haltedOnly a halted rollout can be resumed.
    409rollout_finalA completed or rolled back rollout does not change.