PaybytokenDocs
Events
API reference · Events

Events

Inspect immutable records of payment, payout and account activity.

Events are immutable account-scoped records of resource transitions. Listing events is useful for support, replay investigation and reconciliation, but it is not a real-time polling contract. Use signed webhooks for asynchronous delivery and retrieve an Event when you need to inspect its canonical stored payload.

An Event is the business fact (evt_...). A Webhook Event is a delivery attempt for that fact to a specific endpoint. Use /api/v1/events to inspect the immutable journal; use the Portal delivery inspector or paybytoken.webhookEvents in the Node SDK to inspect and retry failed deliveries.

API Endpoints

  • Get Event: Retrieves the details of a specific event by its ID.
  • List Events: Returns an offset-paginated list of account events.

API Endpoint Reference

MethodEndpointDescription
GET/api/v1/events/:idRetrieves the details of a specific event.
GET/api/v1/eventsLists account events in newest-first order.

Attributes

AttributeTypeDescription
idstringUnique identifier for the event (e.g., evt_123456).
account_idstringID of the associated account (e.g., acct_1).
resource_typestringType of the associated resource (e.g., payment_intent).
resource_idstringID of the associated resource (e.g., pay_123).
typestringCanonical event type (for example, payment_intent.succeeded).
api_versionstringOptional API version used for the event.
livemodebooleanIndicates if the event occurred in live mode.
dataobjectJSON object containing event-specific data.
created_atstringCreation timestamp.
updated_atstringLast update timestamp.

Event types use canonical dot notation, such as payment_intent.succeeded. Delivery may be duplicated or arrive out of order, so process by event ID and compare resource state before taking an irreversible action.

On this page

API Workbench

Full Explorer

Open in new tab