Skip to content
Docs
API 1.0.0 · 22 Nov 2026

Search the docs

    Română

    Rollouts

    Move a configuration to the lanes of a store ring by ring.

    On this page

    List rollouts

    GET /selfcheckout/v1/rollouts

    Returns the rollouts of a store, newest first, with their rings.

    Parameters

    NameInTypeRequiredMeaning
    storeId query string (uuid) Yesrequired The store whose records you want.
    status query string Nooptional Only rollouts in this state. One of planned, rolling, halted, completed, rolled_back
    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 rollouts. RolloutPage
    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/rollouts?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/rollouts?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/rollouts?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/rollouts?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/rollouts?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": "00cfbe43-51af-46b3-a72a-70ce5faee1b5",
          "storeId": "5c15af2a-ec60-41c3-b91c-db5b305b4fd1",
          "config": "2026.11.2",
          "previous": "2026.11.1",
          "status": "planned",
          "rings": [
            {
              "name": "Ring 1",
              "lanes": [
                1
              ],
              "applied": false
            },
            {
              "name": "Ring 2",
              "lanes": [
                2,
                3
              ],
              "applied": false
            },
            {
              "name": "Ring 3",
              "lanes": [
                4,
                5,
                6
              ],
              "applied": false
            }
          ],
          "revision": 1
        },
        {
          "id": "9e1f04f6-bc97-4182-85ce-1c7ae1841324",
          "storeId": "3e8526ad-3554-43e1-a17a-50abddcb6e7f",
          "config": "2026.11.2",
          "previous": "2026.11.1",
          "status": "rolling",
          "rings": [
            {
              "name": "Ring 1",
              "lanes": [
                1
              ],
              "applied": true
            },
            {
              "name": "Ring 2",
              "lanes": [
                2,
                3
              ],
              "applied": false
            },
            {
              "name": "Ring 3",
              "lanes": [
                4
              ],
              "applied": false
            }
          ],
          "revision": 2
        }
      ],
      "nextCursor": null
    }

    Plan a rollout

    POST /selfcheckout/v1/rollouts

    Plans the move of a configuration to the lanes of a store, in three rings: the first lane, then the next lanes, then the rest. A store has one rollout that is planned or running at a time.

    Request body

    FieldTypeRequiredMeaning
    operationId string (uuid) Yesrequired A UUID you choose for this change. Send it again to repeat the request.
    storeId string (uuid) Yesrequired The store whose lanes get the configuration.
    config string Yesrequired The configuration to roll out.

    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 store does not exist in your account. Error
    409 operation_reused: The operationId was already used with a different request. rollout_active: The store already has a rollout that is planned or running. config_current: Every lane of the store already runs this configuration. 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/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

    JSON

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

    Get a rollout

    GET /selfcheckout/v1/rollouts/{rolloutId}

    Parameters

    NameInTypeRequiredMeaning
    rolloutId path string (uuid) Yesrequired The rollout.

    Responses

    StatusMeaningBody
    200 The rollout at its current revision. Rollout
    401 The token is missing, not valid or has ended. Error
    403 The token does not give access to this data. Error
    404 The rollout 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/rollouts/00cfbe43-51af-46b3-a72a-70ce5faee1b5" \
      -H "Authorization: Bearer $RDC_TOKEN"

    JavaScript

    const response = await fetch(`${process.env.RDC_BASE_URL}/selfcheckout/v1/rollouts/00cfbe43-51af-46b3-a72a-70ce5faee1b5`, {
      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/rollouts/00cfbe43-51af-46b3-a72a-70ce5faee1b5',
        headers={
            'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
        },
    )
    result = response.json()

    PHP

    <?php
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/selfcheckout/v1/rollouts/00cfbe43-51af-46b3-a72a-70ce5faee1b5');
    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/rollouts/00cfbe43-51af-46b3-a72a-70ce5faee1b5");
    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": "00cfbe43-51af-46b3-a72a-70ce5faee1b5",
      "storeId": "5c15af2a-ec60-41c3-b91c-db5b305b4fd1",
      "config": "2026.11.2",
      "previous": "2026.11.1",
      "status": "planned",
      "rings": [
        {
          "name": "Ring 1",
          "lanes": [
            1
          ],
          "applied": false
        },
        {
          "name": "Ring 2",
          "lanes": [
            2,
            3
          ],
          "applied": false
        },
        {
          "name": "Ring 3",
          "lanes": [
            4,
            5,
            6
          ],
          "applied": false
        }
      ],
      "revision": 1
    }

    Advance a rollout

    POST /selfcheckout/v1/rollouts/{rolloutId}/advance

    Applies the configuration to the next ring. The first advance starts a planned rollout; the last completes it and raises the event rollout.completed. It is refused while a lane of an applied ring is out of service or has a device in fault.

    Parameters

    NameInTypeRequiredMeaning
    rolloutId path string (uuid) Yesrequired The rollout.

    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 rollout 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. rollout_final: The rollout is completed or rolled back and does not change. rollout_not_running: The rollout is not running, so this change does not apply. rollout_active: The store already has a rollout that is planned or running. ring_unhealthy: A lane of a ring that has the configuration is out of service or has a device in fault, so the next ring waits. 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/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

    JSON

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

    Halt a rollout

    POST /selfcheckout/v1/rollouts/{rolloutId}/halt

    Stops a rollout that is running. The rings already applied keep the configuration.

    Parameters

    NameInTypeRequiredMeaning
    rolloutId path string (uuid) Yesrequired The rollout.

    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 rollout 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. rollout_not_running: The rollout is not running, so this change does not apply. 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/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

    JSON

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

    Resume a rollout

    POST /selfcheckout/v1/rollouts/{rolloutId}/resume

    Lets a halted rollout run again.

    Parameters

    NameInTypeRequiredMeaning
    rolloutId path string (uuid) Yesrequired The rollout.

    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 rollout 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. rollout_not_halted: The rollout is not halted. 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/rollouts/9e1f04f6-bc97-4182-85ce-1c7ae1841324/resume" \
      -H "Authorization: Bearer $RDC_TOKEN" \
      -H "Content-Type: application/json" \
      -d '{
      "operationId": "5f89d149-4c7c-430d-9d44-34ac463d5fed",
      "expectedRevision": 3
    }'

    JavaScript

    const response = await fetch(`${process.env.RDC_BASE_URL}/selfcheckout/v1/rollouts/9e1f04f6-bc97-4182-85ce-1c7ae1841324/resume`, {
      method: 'POST',
      headers: {
        Authorization: `Bearer ${process.env.RDC_TOKEN}`,
        'Content-Type': 'application/json',
      },
      body: JSON.stringify({
        "operationId": "5f89d149-4c7c-430d-9d44-34ac463d5fed",
        "expectedRevision": 3
      }),
    });
    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/resume',
        headers={
            'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
        },
        json={
            'operationId': '5f89d149-4c7c-430d-9d44-34ac463d5fed',
            'expectedRevision': 3,
        },
    )
    result = response.json()

    PHP

    <?php
    
    $body = <<<'JSON'
    {
      "operationId": "5f89d149-4c7c-430d-9d44-34ac463d5fed",
      "expectedRevision": 3
    }
    JSON;
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/selfcheckout/v1/rollouts/9e1f04f6-bc97-4182-85ce-1c7ae1841324/resume');
    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/resume");
    request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
    request.Content = new StringContent("""
    {
      "operationId": "5f89d149-4c7c-430d-9d44-34ac463d5fed",
      "expectedRevision": 3
    }
    """, System.Text.Encoding.UTF8, "application/json");
    var response = await client.SendAsync(request);
    var result = await response.Content.ReadAsStringAsync();

    Response 202

    JSON

    {
      "operationId": "5f89d149-4c7c-430d-9d44-34ac463d5fed",
      "status": "accepted",
      "aggregateId": "9e1f04f6-bc97-4182-85ce-1c7ae1841324",
      "aggregateRevision": 4
    }

    Roll back a rollout

    POST /selfcheckout/v1/rollouts/{rolloutId}/rollback

    Returns the lanes of the applied rings to the configuration they ran before. A rollout that is planned, completed or rolled back is refused.

    Parameters

    NameInTypeRequiredMeaning
    rolloutId path string (uuid) Yesrequired The rollout.

    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 rollout 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. rollout_final: The rollout is completed or rolled back and does not change. rollout_not_running: The rollout is not running, so this change does not apply. 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/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

    JSON

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