Skip to content
Docs
API 1.0.0 · 22 Nov 2026

Search the docs

    Română

    Replay

    Send a parked event again once your endpoint is ready to take it.

    An event is parked after its last failed attempt (Delivery and retries). Replay an event sends a parked event again.

    curl

    curl -X POST "$RDC_BASE_URL/banking/v1/deliveries/5a280d9f-e601-458c-b3a0-6ab01af6e733/replay" \
      -H "Authorization: Bearer $RDC_TOKEN" \
      -H "Content-Type: application/json" \
      -d '{
      "operationId": "f0c12006-1617-4fcd-a5b0-60d7ee2bc3c3"
    }'

    JavaScript

    const response = await fetch(`${process.env.RDC_BASE_URL}/banking/v1/deliveries/5a280d9f-e601-458c-b3a0-6ab01af6e733/replay`, {
      method: 'POST',
      headers: {
        Authorization: `Bearer ${process.env.RDC_TOKEN}`,
        'Content-Type': 'application/json',
      },
      body: JSON.stringify({
        "operationId": "f0c12006-1617-4fcd-a5b0-60d7ee2bc3c3"
      }),
    });
    const result = await response.json();

    Python

    import os
    import requests
    
    response = requests.request(
        'POST',
        f'{os.environ["RDC_BASE_URL"]}/banking/v1/deliveries/5a280d9f-e601-458c-b3a0-6ab01af6e733/replay',
        headers={
            'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
        },
        json={
            'operationId': 'f0c12006-1617-4fcd-a5b0-60d7ee2bc3c3',
        },
    )
    result = response.json()

    PHP

    <?php
    
    $body = <<<'JSON'
    {
      "operationId": "f0c12006-1617-4fcd-a5b0-60d7ee2bc3c3"
    }
    JSON;
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/banking/v1/deliveries/5a280d9f-e601-458c-b3a0-6ab01af6e733/replay');
    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")}/banking/v1/deliveries/5a280d9f-e601-458c-b3a0-6ab01af6e733/replay");
    request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
    request.Content = new StringContent("""
    {
      "operationId": "f0c12006-1617-4fcd-a5b0-60d7ee2bc3c3"
    }
    """, System.Text.Encoding.UTF8, "application/json");
    var response = await client.SendAsync(request);
    var result = await response.Content.ReadAsStringAsync();

    Response 202

    {
      "operationId": "f0c12006-1617-4fcd-a5b0-60d7ee2bc3c3",
      "status": "accepted",
      "aggregateId": "5a280d9f-e601-458c-b3a0-6ab01af6e733",
      "aggregateRevision": 7
    }

    What to expect

    • The replayed event is the same event, with the same id. If you handled it, skip it.
    • A replay starts a new series of delivery attempts.
    • Replay in the order of aggregateRevision for one record, so the state you hold ends up current.

    The full rule: Developer guide