Webhooks

"Webhooks" te permiten escuchar eventos o recibir notificaciones configuradas sobre eventos y acciones relacionadas a una compañía y sus transacciones.

Objeto Webhook

Atributos

Tipo

Descripción

url

String

La URL configurada para el webhook donde se recibirá la notificación.

status

String

Estatus del webhook

subscribed_events

Array

Listado de ventos

synchronous

Boolean

Cómo se dispara la notificación:

sync: true, async: false

id

String

Identificador único de la notificación asignado al azar.

object

String

Tipo de objeto.

production_enabled

Boolean

Determina si esta habilitado para producción.

development_enabled

Boolean

Determine si esta habilitado para pruebas.

Webhook
{
            "url": "https://services.company.com/hooks/incoming/",
            "status": "listening",
            "subscribed_events": [
                "charge.created",
                "charge.paid",
                "charge.under_fraud_review",
                "charge.fraudulent",
                "charge.refunded",
                "charge.preauthorized",
                "charge.declined",
                "charge.canceled",
                "charge.reversed",
                "charge.pending_confirmation",
                "charge.expired",
                "customer.created",
                "customer.updated",
                "customer.deleted",
                "webhook.created",
                "webhook.updated",
                "webhook.deleted",
                "charge.chargeback.created",
                "charge.chargeback.updated",
                "charge.chargeback.under_review",
                "charge.chargeback.lost",
                "charge.chargeback.won",
                "payout.created",
                "payout.retrying",
                "payout.paid_out",
                "payout.failed",
                "plan.created",
                "plan.updated",
                "plan.deleted",
                "subscription.created",
                "subscription.paused",
                "subscription.resumed",
                "subscription.canceled",
                "subscription.expired",
                "subscription.updated",
                "subscription.paid",
                "subscription.payment_failed",
                "payee.created",
                "payee.updated",
                "payee.deleted",
                "payee.payout_method.created",
                "payee.payout_method.updated",
                "payee.payout_method.deleted",
                "charge.score_updated",
                "receipt.created",
                "order.canceled",
                "order.charged_back",
                "order.created",
                "order.expired",
                "order.fraudulent",
                "order.under_fraud_review",
                "order.paid",
                "order.partially_refunded",
                "order.pending_payment",
                "order.pre_authorized",
                "order.refunded",
                "order.updated",
                "order.voided",
                "charge.created",
                "charge.paid",
                "charge.refunded",
                "charge.fraudulent",
                "charge.under_fraud_review",
                "charge.chargeback.created",
                "charge.chargeback.lost",
                "charge.chargeback.won",
                "charge.chargeback.updated",
                "charge.chargeback.under_review",
                "subscription.created",
                "subscription.paused",
                "subscription.resumed",
                "subscription.canceled",
                "subscription.expired",
                "subscription.updated",
                "subscription.paid",
                "subscription.payment_failed",
                "webhook_ping"
            ],
            "synchronous": false,
            "id": "5d39deee6a9945002f6cb392",
            "object": "webhook",
            "production_enabled": true,
            "development_enabled": false
        }