Events
The Events API provides a read-only audit trail of everything that happens in your account. Use it to inspect event history, debug webhook delivery issues, and build event timelines for individual entities.
Events are automatically generated whenever a state change occurs in PaymentKit — when an invoice is paid, a subscription is created, or a customer is updated. They are the same events that drive webhook delivery.
Event object
Each event captures a single state change. An event always belongs to one entity (aggregate_id) and carries a full snapshot of the entity’s state before and after the change.
Both data and previous_data contain the full entity state at the time of the event. previous_data is null for create events.
List events
Retrieve a paginated list of events for your account. Results are ordered by created descending (newest first).
Filters
Use query parameters to narrow results:
Results are ordered by created_at descending (newest first).
Get an event
Retrieve a single event by its ID.
Returns the full Event object, or 404 if not found.
Event deliveries
Events are delivered to your webhook endpoints asynchronously. The delivery endpoints let you inspect the delivery status of any event across all your configured endpoints.
Delivery object
List deliveries for an event
Returns all webhook delivery records for a specific event — one record per subscribed webhook endpoint.
Get event with deliveries
Retrieve an event together with all its delivery records in a single request, instead of calling the event and deliveries endpoints separately.
Use /full when debugging a specific event — it gives you the full event payload and all delivery outcomes in one request.