Conekta.Events (Conekta v1.2.0)

Copy Markdown View Source

Functions for retrieving and resending webhook events.

Events are created automatically when actions occur in your Conekta account (e.g., a charge is paid, an order is created).

Endpoint: https://api.conekta.io/events

Summary

Functions

Get an event by ID

List all events

Resend an event to its webhook endpoint

Functions

find(event_id)

Get an event by ID

Method: GET

Conekta.Events.find(event_id)
# => {:ok, %Conekta.EventResponse{}}

list()

List all events

Method: GET

Conekta.Events.list()
# => {:ok, %Conekta.EventsResponse{}}

resend(event_id, webhook_log_id)

Resend an event to its webhook endpoint

Method: POST

Conekta.Events.resend(event_id, webhook_log_id)
# => {:ok, %Conekta.EventResendResponse{}}