Crear un webhook

Crea un webhook con todos los eventos disponibles en Conekta

Solicitud

curl --location --request POST 'https://apipp.conekta.io/webhooks' \
--header 'Accept: application/vnd.conekta-v2.0.0+json' \
--header 'Content-Type: application/json; charset=utf-8' \
--header 'Authorization: Basic a2V5X0V5emNSV0Rded4defrcHdfrHezbTk5RiHc6'
Respuesta
{            
            "url":"https://services.company.com/hooks/incoming/",
            "status": "being_pinged",
            "subscribed_events": [
                "charge.created",
                "charge.paid",
                "charge.under_fraud_review",
                "charge.fraudulent",
                "charge.refunded",
                "charge.partially_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",
                "order.declined",
                "webhook_ping"
            ]
}