Replay parked events

Find parked events, fix your endpoint and replay one event or a period, with the same id.

On this page

A parked event is one whose last attempt failed, and it is kept until you ask for it again.

After 6 failed attempts, an event is not sent again by itself: you fix the endpoint, then replay.

StatusMeaning
delivered Your endpoint confirmed the event.
retrying An attempt failed and another one is waiting.
parked The last attempt failed. The event is kept and is not sent again until you replay it.
replayed A parked event was sent again on request.
ToRequest
Find what is parkedGET /deliveries?state=parked
Replay one eventPOST /events/{eventId}/replay
Replay a period of one subscriptionPOST /subscriptions/{subscriptionId}/replay

Find what is parked

List the deliveries in the state parked. Each row names the event, the subscription, how many attempts were made and the status your endpoint last answered.

Parked deliveries

curl

curl "$RDC_BASE_URL/inventory/v1/deliveries?state=parked&limit=100" \
  -H "Authorization: Bearer $RDC_TOKEN"

JavaScript

const response = await fetch(`${process.env.RDC_BASE_URL}/inventory/v1/deliveries?state=parked&limit=100`, {
  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"]}/inventory/v1/deliveries?state=parked&limit=100',
    headers={
        'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
    },
)
result = response.json()

PHP

<?php

$curl = curl_init(getenv('RDC_BASE_URL') . '/inventory/v1/deliveries?state=parked&limit=100');
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")}/inventory/v1/deliveries?state=parked&limit=100");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync();

Answer 200

{
  "items": [
    {
      "eventId": "5e2b9c47-8d13-4a6f-b0e5-71c4a2d93f68",
      "subscriptionId": "a71c5e03-2d98-4b6f-8e40-f3b9d1c6a572",
      "state": "parked",
      "attempts": 6,
      "lastStatus": 503,
      "lastAttemptAt": "2026-11-21T00:17:08Z"
    }
  ],
  "nextCursor": null
}

Fix the endpoint, then replay

Replay only after your endpoint answers 2xx again, otherwise the new attempts fail too. Replay one event by its id:

Replay one event

curl

curl -X POST "$RDC_BASE_URL/inventory/v1/events/5e2b9c47-8d13-4a6f-b0e5-71c4a2d93f68/replay" \
  -H "Authorization: Bearer $RDC_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "operationId": "6d0a4c93-1b8e-4f27-9a35-c7e2b81d5f04"
}'

JavaScript

const response = await fetch(`${process.env.RDC_BASE_URL}/inventory/v1/events/5e2b9c47-8d13-4a6f-b0e5-71c4a2d93f68/replay`, {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.RDC_TOKEN}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "operationId": "6d0a4c93-1b8e-4f27-9a35-c7e2b81d5f04"
  }),
});
const result = await response.json();

Python

import os
import requests

response = requests.request(
    'POST',
    f'{os.environ["RDC_BASE_URL"]}/inventory/v1/events/5e2b9c47-8d13-4a6f-b0e5-71c4a2d93f68/replay',
    headers={
        'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
    },
    json={
        'operationId': '6d0a4c93-1b8e-4f27-9a35-c7e2b81d5f04',
    },
)
result = response.json()

PHP

<?php

$body = <<<'JSON'
{
  "operationId": "6d0a4c93-1b8e-4f27-9a35-c7e2b81d5f04"
}
JSON;

$curl = curl_init(getenv('RDC_BASE_URL') . '/inventory/v1/events/5e2b9c47-8d13-4a6f-b0e5-71c4a2d93f68/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")}/inventory/v1/events/5e2b9c47-8d13-4a6f-b0e5-71c4a2d93f68/replay");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
request.Content = new StringContent("""
{
  "operationId": "6d0a4c93-1b8e-4f27-9a35-c7e2b81d5f04"
}
""", System.Text.Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync();

Answer 202

{
  "operationId": "6d0a4c93-1b8e-4f27-9a35-c7e2b81d5f04",
  "status": "completed",
  "aggregateRevision": 1
}

Or replay a period of one subscription, for example everything that parked while you deployed:

Replay a period

curl

curl -X POST "$RDC_BASE_URL/inventory/v1/subscriptions/a71c5e03-2d98-4b6f-8e40-f3b9d1c6a572/replay" \
  -H "Authorization: Bearer $RDC_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "operationId": "9b3e5a07-4c18-4d62-a0f9-2e7d1b86c354",
  "from": "2026-11-20T00:00:00Z",
  "to": "2026-11-21T00:00:00Z"
}'

JavaScript

const response = await fetch(`${process.env.RDC_BASE_URL}/inventory/v1/subscriptions/a71c5e03-2d98-4b6f-8e40-f3b9d1c6a572/replay`, {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.RDC_TOKEN}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "operationId": "9b3e5a07-4c18-4d62-a0f9-2e7d1b86c354",
    "from": "2026-11-20T00:00:00Z",
    "to": "2026-11-21T00:00:00Z"
  }),
});
const result = await response.json();

Python

import os
import requests

response = requests.request(
    'POST',
    f'{os.environ["RDC_BASE_URL"]}/inventory/v1/subscriptions/a71c5e03-2d98-4b6f-8e40-f3b9d1c6a572/replay',
    headers={
        'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
    },
    json={
        'operationId': '9b3e5a07-4c18-4d62-a0f9-2e7d1b86c354',
        'from': '2026-11-20T00:00:00Z',
        'to': '2026-11-21T00:00:00Z',
    },
)
result = response.json()

PHP

<?php

$body = <<<'JSON'
{
  "operationId": "9b3e5a07-4c18-4d62-a0f9-2e7d1b86c354",
  "from": "2026-11-20T00:00:00Z",
  "to": "2026-11-21T00:00:00Z"
}
JSON;

$curl = curl_init(getenv('RDC_BASE_URL') . '/inventory/v1/subscriptions/a71c5e03-2d98-4b6f-8e40-f3b9d1c6a572/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")}/inventory/v1/subscriptions/a71c5e03-2d98-4b6f-8e40-f3b9d1c6a572/replay");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
request.Content = new StringContent("""
{
  "operationId": "9b3e5a07-4c18-4d62-a0f9-2e7d1b86c354",
  "from": "2026-11-20T00:00:00Z",
  "to": "2026-11-21T00:00:00Z"
}
""", System.Text.Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync();

A replay starts a new series of delivery attempts for the event, with the same schedule. The state of the delivery becomes replayed.

A replayed event keeps its id

The event you receive again is the same event, with the same id, and webhook-id carries it. Your check for duplicates still works: skip what you already handled.

  • Replay events of one record in the order of their aggregateRevision, so the state you hold ends up current.
  • Skip an older revision that arrives after a newer one: see Events.

A routine for parked events

A parked event waits until you replay it. Check for parked events as part of your routine, not only after an incident.