---
title: "Replay the most recent webhook event for a test case."
method: POST
path: "/test/cases/{id}/replay-last-event"
tags: ["TestCases"]
---

# Replay the most recent webhook event for a test case.

`POST /test/cases/{id}/replay-last-event`

<b>Collection Partner API only</b> — this endpoint is a convenience stopgap that existed
             before `GET /webhooks/events` was available. It remains here for backward compatibility
             and because it is a thin wrapper over `POST /webhooks/events/{eventId}/replay`.
            
             <b>Design note:</b> This endpoint was added when the Collection Partner API had no
             delivery-history endpoint (`GET /webhooks/events`), making it impossible to look up
             event IDs for replay. It is a stopgap: "give me the last event without having to know its ID."
             Now that `GET /webhooks/events` exists, integrators can use the full
             history + replay-by-id pattern instead. This endpoint is intentionally <b>not</b> ported
             to the Customer API — the stopgap only exists because it was needed before history existed.

## Path parameters

- `id` string, uuid, required

## Response `200`

Event re-enqueued for delivery

- DebituraWebExternalApiContractsV1CasesReplayLastEventResponse — Result of the `POST /test/cases/{id}/replay-last-event` convenience endpoint.
  - `eventId` string, uuid — The ID of the webhook event that was re-enqueued.
  - `subscriptionId` string, uuid — The subscription the event was re-enqueued to.
  - `eventType` string, nullable — The event type that was replayed (e.g. "case.updated").

## Other responses

- `400` — Validation error — non-test case or not owned by this partner
- `404` — Case not found, or no webhook events recorded yet for this case

---

[API](https://skmtc.net/debitura/apis/debitura-collection-partner-api.md) · [All operations](https://skmtc.net/debitura/apis/debitura-collection-partner-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/debitura/debitura-collection-partner-api/revisions/40bd25a4edaf/schema)
