0Bit Documentation

Replay webhook deliveries

Use webhook delivery logs and replay endpoints to recover failed delivery without duplicate processing.

0Bit product APIs keep partner-scoped webhook delivery records where the product contract supports delivery listing and replay. The audited 0Gate API surface includes delivery and replay operations. For 0Base, use product documentation and account-specific enablement notes until partner API pages are published. Replay is a recovery tool for terminal failed delivery, not a replacement for idempotent processing.

Replay can redeliver a real event

Always dedupe by event id before applying business effects. A replay should be boring because your fulfillment path is already idempotent.

Recovery loop

Delivery statuses

Common stateExamples in audited surfacesYour action
Queued0Gate pending; 0Base pendingWait or check endpoint health.
In flight0Gate in_flight; product equivalent if documentedDo not replay yet.
Delivered0Gate succeeded; 0Base deliveredInspect your event log if state did not move.
Terminal failed0Gate dead_lettered; 0Base deadFix the handler, then replay if the product API permits it.

Replay pattern

async function replayDeadLetteredDelivery(deliveryId: string) {
  const delivery = await productWebhooks.replayDelivery(deliveryId);

  await supportTimeline.add({
    kind: 'webhook_replayed',
    deliveryId: delivery.id,
    eventId: delivery.event_id,
    status: delivery.status,
  });

  return delivery;
}

Operational checklist

  1. Confirm the endpoint is reachable over HTTPS.
  2. Confirm raw-body verification succeeds with the configured webhook secret.
  3. Confirm your handler returns 2xx before long-running work starts.
  4. Confirm event id dedupe is active.
  5. Replay only dead-lettered deliveries that belong to your account.
  6. Watch your own event log and product state after replay.

What not to expose

AvoidWhy
Raw webhook payload logs in support tools.Payloads can contain customer or transaction data.
Signature headers in tickets.They are verification material.
Internal delivery worker details.Partners only need status and recovery behavior.
Provider failure details.Keep user-facing errors generic and approved.

On this page