Skip to main content
Events come in six families. Every event uses the same envelope; its data depends on the event type.

Event types

Coverage

V1 covers supported merchant checkout and mandate charge attempts, plus stored-card creation and deletion. Full card enrollment and authorize-only mandate setup have their own event families, described below. V1 excludes:
  • agent-account sessions
  • full-enrollment result events for provision-only synchronous enrollment (a newly stored card still emits card.saved)
  • card lifecycle changes other than saving and deletion, such as display-metadata updates
  • failures before a durable payment attempt exists
Explicit payment-success simulation is supported for sandbox checkout and quote-backed mandate charges. Genuine credential issuance and simulated success produce payment events with distinct outcome sources.

Who receives an event

An endpoint must be verified and subscribed when the event is created. Enabling webhooks doesn’t reconstruct past events.

Event envelope

Every event shares this envelope. This example is a payment.succeeded event:

Handling events

  • Deduplicate by id, independently of version handling.
  • Keep the newest state. Persist the highest applied resource.version per resource, so an older, late notification can’t overwrite a newer state.
  • Ignore new fields. Additive future fields should be ignored safely.
  • Expect identical replays. Event payloads keep their original schema version and bytes through retries and replays.
GET /v1/webhook-event-types returns descriptions, supported flows, JSON schemas and safe examples for every type. The schema version remains 2026-10-08. New payment events add data.card_id, and sandbox simulated success adds the sandbox_simulated outcome source. Refresh any pinned catalog schemas or strict outcome-source enums before testing these sandbox events. Older retained event bytes are unchanged and can omit card_id. Payloads omit payment credentials, network tokens, dynamic CVV, full card numbers, provider/vault references, addresses, email, and raw metadata. A Prava card_id is an opaque application-scoped identifier.

Payment events

Mandate charges use these same events. See Mandate charges. Payment success or failure does not establish final order settlement.

Payment data

The envelope example shows a full payment payload.

Attempts and versions

  • The payment transaction ID identifies the attempt. Each new attempt has its own ID.
  • resource.version increases for each recorded change to that attempt.
For a session-based checkout, resource.id corresponds to transactions[].txn_id in Get Payment Result, and data.card_id identifies that attempt’s card. Keep separate attempt records when a shopper switches cards. Associate the replacement card when receiving payment.credentials_ready; it does not require a standalone enrollment event. Webhook statuses credentials_ready, succeeded and failed correspond to transaction statuses awaiting_result, completed and failed. Webhooks cover eligible lifecycle changes, not every verification attempt. Use Payment Result for the complete session attempt list, including failures before credentials were issued. A newly added checkout card also emits card_enrollment.completed when full enrollment finishes; payment success is a separate milestone.

Outcome sources

Failed payments

A failed payment keeps the category PAYMENT_ATTEMPT_FAILED. failure_stage shows where it failed: The error code preserves the known operation result. Unknown causes stay generic. Private provider messages are excluded. See the error reference. These never emit payment.failed:
  • session-user fail reports
  • unverified legacy reports
  • transport timeouts
  • uncertain issuance outcomes
An API rejection before a transaction exists remains API-only.

Card lifecycle

Subscribe explicitly to these events to reconcile the cards saved for your application. Existing endpoint subscriptions do not automatically gain either event. Saving a card does not establish successful payment or completed passkey enrollment. A later failed or cancelled payment does not undo card.saved. Both standalone full enrollment and a new-card checkout can produce card.saved followed by card_enrollment.completed. Reusing an existing card, duplicate recovery and display/default-card updates do not emit another save event. A rejected deletion that leaves the card intact emits no delete event. If the deletion can’t be recorded as a notification right away, the card stays deleted and Prava sends card.deleted once it is recorded. List Cards reflects the deletion immediately. Repeated deletion requests do not create another logical deletion event.
Both events use the same data fields: Use user_id to associate the card with your user, including when session_id is null. An available session_id also links the event to a checkout. A card event carries no payment credentials or provider identifiers. Deduplicate deliveries by event id and retain the highest resource.version per card. Delivery is unordered: a delayed version 1 save must not restore a card after version 2 deletion. A historical card can first appear as a version 2 deletion; earlier saves are not backfilled. Saving the physical card again after removal creates a new Card ID. The schema version remains 2026-10-08. Refresh pinned catalog validators before subscribing to the two new event types.

Mandate charges and lifecycle

Mandate charges

Mandate charges use payment.credentials_ready, payment.succeeded and payment.failed. New regular and quote-backed mandate charges report the card the mandate was set up with as data.card_id. It is null when that card cannot be determined safely. Previously captured events remain unchanged, including on delivery retries. Use data.mandate_id and the transaction’s resource.id to correlate charges.
  • Newly created payment events include data.mandate_id for an owned mandate charge, or null for other payment flows.
  • Older retained payloads may omit this additive field.
  • Use the mandate ID to correlate charges without another API request.
  • Issued credentials do not establish payment success or final settlement.

Lifecycle events

Subscribe separately to the lifecycle events you need. Existing endpoints do not gain the new subscriptions automatically.
  • These events use resource type mandate and an mdt_... resource ID.
  • They are distinct from setup cancellation and expiry (mandate.creation_cancelled and mandate.creation_expired).
  • Agent-owned mandates, and one-off payment mandates that Prava creates for a single payment, are excluded.

Clock-driven expiry

Prava detects clock-driven expiry automatically. You don’t need to call the status API, and detecting expiry doesn’t change any financial state.
  • Active and paused mandates can receive clock-expiry notifications. Cancelled and consumed mandates do not.
  • Once expiry is recorded, later local pause, resume or cancel changes do not emit another lifecycle notification for that expired mandate.
  • If a mandate’s stored deadlines conflict, Prava doesn’t send an expiry event rather than guess.
The API can retain its stored status. Compare valid_until with the current time as well as checking state and status. A paused mandate can still report state: "paused" after its deadline.
Delays and backfill
  • An expiry event can arrive some time after the deadline. Revalidate the highest resource version and deduplicate event IDs as with other events.
  • Deadlines that passed before these events were enabled, including before a later re-enablement, aren’t backfilled.
  • Retained events and replay bytes remain unchanged.

Enrollment and mandate setup

  • Standalone enrollment and mandate-setup resources keep their ses_... IDs.
  • A new card enrolled during checkout uses the enrollment action’s sa_... resource ID. data.session_id is the original checkout session, including when another card was tried first. Use data.card_id to identify the enrolled card.
  • Two newly enrolled cards in the same checkout have separate enrollment resources. Reusing an already saved card does not create another enrollment event.
  • Checkout completion uses the same full-enrollment milestone as standalone enrollment: provisioning alone is insufficient. The event can arrive before the payment succeeds, fails or is cancelled.
  • card_enrollment.failed, .cancelled and .expired continue to describe standalone enrollment sessions. Existing retained events are unchanged; historical checkout enrollments are not backfilled.
  • card_enrollment.cancelled preserves its existing failure_category: null. The additive error.code is SESSION_CANCELLED.
  • mandate.created preserves the stored approved frequency. Current recurring mandates use weekly, monthly or yearly; older records may use uppercase values. New mandate lifecycle events use lowercase values.
  • These events describe setup. Later charges use the payment event family with a mandate ID. Later pause, resume, cancellation and expiry use the mandate lifecycle events.

Enrollment and setup data

Mandate setup terms: Raw provider errors, consent references, customer PII, instruction IDs and card tokens are excluded. This does not verify future merchant cancellations or order settlement.

Versions and ordering

  • Each recorded status advances resource.version. Retain the latest version when retries, failures and eventual completion arrive out of order.
  • Consecutive unchanged status writes are deduplicated.
  • A retry that returns to an earlier failure or expiry can publish a new event with a higher version.

Which result wins

Session expiry

  • Prava detects expiry automatically for unfinished sessions that expire after webhooks were enabled.
  • Enabling webhooks does not backfill past results or expirations.

Quote request failures

Subscribe explicitly to quote.request_failed to receive errors from admitted merchant-owned POST /v1/shop/quote requests. A quote ID may never have been created, so the resource is a quote request, identified by qreq_.... This event reports the failure of the quote API request, not the lifecycle of an existing quote or a payment.
quote.request_failed is best-effort. Prava doesn’t guarantee an event for every failed quote request: during bursts of failures, such as a downstream outage, some failures may not produce a webhook, and missed events aren’t sent later. Always handle the API’s error response directly; don’t wait for a webhook to learn that a request failed.

The request ID header

The failed HTTP response includes Prava-Quote-Request-Id only after an event is confirmed persisted for an active, verified, explicitly subscribed endpoint.
  • A returned request ID confirms event persistence, not successful webhook delivery or business processing.
  • Each HTTP attempt has its own request/event ID, including attempts that reuse an API idempotency key. Deduplicate event delivery by the event ID.
  • Prava doesn’t retry saving a missed event.

Before you retry

QUOTE_TIMEOUT, for example, does not prove that the downstream service created no quote. Reconcile the existing operation and use the API’s idempotency rules before retrying.

Delivery

Once an event is saved, it follows the normal delivery and retry rules. The best-effort limit applies only to saving the event, before those delivery guarantees begin. If no endpoint is subscribed, no event is saved.

What doesn’t generate this event

No request body, address/contact data, product URL, access grant or unverified quote ID is included.

No quote lifecycle events

There are currently no independent quote.ready, quote.updated or quote.expired lifecycle events. Expiry reported during a quote request can appear as its error; it is not a background notification that every quote expired. See coverage and missing events.