Events
The full list of request body parameters and possible outcomes can be found here.
#
Retrieve event typesRetrieve a list of event types grouped by their respective version that you can configure on your webhooks.
/* Specify API version: "1.0" => Legacy API "2.0" => Unified Payments API null => all versions*/List<EventTypesResponse> response = api.eventsClient().retrieveAllEventTypes(null).get();
#
Retrieve eventsRetrieves events based on your query parameters.
Instant from = Instant.now().minus(90, ChronoUnit.DAYS).truncatedTo(ChronoUnit.SECONDS);Instant to = Instant.now().minus(7, ChronoUnit.DAYS).truncatedTo(ChronoUnit.SECONDS);int limit = 5;int skip = 2;String paymentId = null;
EventsPageResponse eventsPageResponse = api.eventsClient().retrieveEvents(from, to, limit, skip, paymentId).get();
#
Retrieve eventRetrieves the event with the specified identifier string. The event data includes the full event details, the schema of which will vary based on the type.
EventResponse event = api.eventsClient().retrieveEvent(eventId).get();
#
Retrieve event notificationRetrieves the attempts for a specific event notification.
EventNotificationResponse notification = api.eventsClient().retrieveEventNotification(eventId, notificationId).get();
#
Retry webhookRetries a specific webhook notification for the given event.
api.eventsClient().retryWebhook(eventId, webhookId).get();
#
Retry all webhooksRetries all webhook notifications configured for the specified event.
api.eventsClient().retryAllWebhooks(eventId).get();