Functions for managing webhook endpoints.
Endpoint: https://api.conekta.io/webhooks
Summary
Functions
Create a new webhook endpoint Conekta Documentation
Delete a webhook endpoint
Get a webhook endpoint by ID
List all webhook endpoints
Send a test event to a webhook endpoint
Update a webhook endpoint Conekta Documentation
Functions
Create a new webhook endpoint Conekta Documentation
Method: POST
Conekta.Webhooks.create(%Conekta.WebhookRequest{url: "https://example.com/webhook"})
# => {:ok, %Conekta.WebhookResponse{}}
Delete a webhook endpoint
Method: DELETE
Conekta.Webhooks.delete(webhook_id)
# => {:ok, %Conekta.WebhookResponse{}}
Get a webhook endpoint by ID
Method: GET
Conekta.Webhooks.find(webhook_id)
# => {:ok, %Conekta.WebhookResponse{}}
List all webhook endpoints
Method: GET
Conekta.Webhooks.list()
# => {:ok, %Conekta.WebhooksResponse{}}
Send a test event to a webhook endpoint
Method: POST
Conekta.Webhooks.test(webhook_id)
# => {:ok, %Conekta.WebhookResponse{}}
Update a webhook endpoint Conekta Documentation
Method: PUT
Conekta.Webhooks.update(webhook_id, %Conekta.WebhookUpdateRequest{url: "https://new-url.com"})
# => {:ok, %Conekta.WebhookResponse{}}