# `mix mishka_pay.replay_events`
[🔗](https://github.com/mishka-group/mishka_pay/blob/v0.0.1/lib/mix/tasks/mishka_pay.replay_events.ex#L5)

Reads a tenant's events from its provider since a time and hands each to the project's
`mishka_pay:webhook:received` listeners, oldest first (`MishkaPay.replay_events/3`): the Ash
inbox stores the ones it does not have and works them as if the webhook had come. Run it after
an outage. The project starts, for its keys and listeners.

    mix mishka_pay.replay_events --provider stripe --tenant site-42 --since 2026-11-15T08:00:00Z
    mix mishka_pay.replay_events --since 2026-11-15T08:00:00Z --type invoice.paid

Options:

  * `--provider`: `stripe` by default.
  * `--tenant`: whose keys and events (none by default, for a single-site project).
  * `--since`: an ISO 8601 time; required. Stripe keeps 30 days of events.
  * `--type`: only this event type; more than once for several. By default every event Mishka
    Pay acts on.
  * `--events`: `thin` or `snapshot`, the kind of events to read; by default the tenant's
    `:events` (thin). Replay the kind the site's webhook takes.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
