Conekta::WebhookResponse

August 21, 2025 ยท View on GitHub

Properties

NameTypeDescriptionNotes
idStringid of the webhook[optional]
descriptionStringA name or brief explanation of what this webhook is used for[optional]
livemodeBooleanIndicates if the webhook is in production[optional]
activeBooleanIndicates if the webhook is actived or not[optional]
objectStringObject name, value is 'webhook'[optional]
statusStringIndicates if the webhook is ready to receive events or failing[optional]
subscribed_eventsArray<String>lists the events that will be sent to the webhook[optional]
urlStringurl or endpoint of the webhook[optional]

Example

require 'conekta'

instance = Conekta::WebhookResponse.new(
  id: 6307a60c41de27127515a575,
  description: Server payments processor,
  livemode: true,
  active: true,
  object: event,
  status: listening,
  subscribed_events: [&quot;charge.created&quot;,&quot;charge.paid&quot;,&quot;charge.under_fraud_review&quot;,&quot;charge.fraudulent&quot;,&quot;charge.refunded&quot;,&quot;charge.preauthorized&quot;,&quot;charge.declined&quot;,&quot;charge.canceled&quot;,&quot;charge.reversed&quot;,&quot;charge.pending_confirmation&quot;],
  url: https://username:password@mockoon.conekta.io/payments-api/cash/merchant_approval
)