V2 Core Events API.
Stripe v2 Events represent significant occurrences in your Stripe account. They are delivered to event destinations that you configure.
Key differences from v1 events:
Stripe docs: https://docs.stripe.com/api/v2/core/events
V2 Core Events API. Stripe v2 Events represent significant occurrences in your Stripe account. They are delivered to event destinations that you configure. Key differences from v1 events: - JSON request/response encoding - URL-based pagination with next_page_url - Uses 'include' instead of 'expand' for field expansion Stripe docs: https://docs.stripe.com/api/v2/core/events
(list-events stripe-client)(list-events stripe-client params)(list-events stripe-client params opts)Lists all v2 core events.
Events are returned in reverse chronological order.
Parameters:
Returns: A list object containing event data and pagination info.
Example: (list-events client) (list-events client {:type "v2.billing.meter_event.created"}) (list-events client {} {:include ["data.payload"]})
Lists all v2 core events.
Events are returned in reverse chronological order.
Parameters:
- stripe-client: The Stripe client instance
- params: Optional query parameters
- :object_id - Filter by object ID
- :type - Filter by event type
- :created - Filter by creation time
- opts: Optional request options
- :include - Fields to include in the response
Returns:
A list object containing event data and pagination info.
Example:
(list-events client)
(list-events client {:type "v2.billing.meter_event.created"})
(list-events client {} {:include ["data.payload"]})(retrieve-event stripe-client event-id)(retrieve-event stripe-client event-id opts)Retrieves a v2 core event by ID.
Parameters:
Returns: The event object.
Example: (retrieve-event client "evt_1234567890") (retrieve-event client "evt_1234567890" {:include ["payload"]})
Retrieves a v2 core event by ID.
Parameters:
- stripe-client: The Stripe client instance
- event-id: The ID of the event to retrieve (e.g., "evt_xxx")
- opts: Optional request options
- :include - Fields to include in the response
Returns:
The event object.
Example:
(retrieve-event client "evt_1234567890")
(retrieve-event client "evt_1234567890" {:include ["payload"]})cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |