> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stateset.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Replays a document set from the stream: re-derives the VES events for every

> stored **inbound** document under reference (PO / shipment / invoice)…

stored **inbound** document under `reference` (PO / shipment / invoice).
Idempotent by construction — each event's deterministic ID collapses in the
outbox and the sequencer, so a replay produces no duplicate orders, acks, or
deliveries. This is the sandbox demonstration of replay-from-stream.

### Path parameters

<ParamField path="reference" type="string" required>
  PO / shipment / invoice reference
</ParamField>

### Response

No response body. Replay summary per document.

### Status codes

| Code  | Meaning                                |
| ----- | -------------------------------------- |
| `200` | Replay summary per document            |
| `403` | Admin credential required              |
| `404` | No inbound documents for the reference |

<RequestExample>
  ```bash cURL theme={null}
  curl --request POST \
    --url 'https://edi.stateset.com/v1/replay/{reference}' \
    --header 'Authorization: Bearer YOUR_API_KEY'
  ```
</RequestExample>
