webhook
Eventos relacionados con webhooks.
Evento | Descripción |
---|---|
webhook.created | Ocurre cada vez que un webhook es creado |
webhook.updated | Ocurre cada vez que un webhook es actualizado |
webhook.deleted | Ocurre cada vez que un webhook es eliminado |
webhook_ping | Ocurre cada vez que se hace ping a un webhook |
Te recomendamos seguir la receta para crear webhooks
Webhook actualizado - webhook.created
webhook.created
{
"data": {
"object": {
"url": "https://example.com/api/v1/notifications",
"status": "being_pinged",
"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",
"order.declined",
"cashout.canceled",
"cashout.confirmed",
"webhook_ping",
"customer.payment_source.card.blocked"
],
"synchronous": false,
"id": "6386a1d71687bc002131cb6f",
"object": "webhook",
"production_enabled": false,
"development_enabled": true
},
"previous_attributes": {
}
},
"livemode": true,
"webhook_status": "successful",
"webhook_logs": [
{
"id": "webhl_2sr6P2oyFqNTSLghJ",
"url": "http://requestb.in/1467d141",
"failed_attempts": 12,
"last_http_response_status": 200,
"response_data": {},
"object": "webhook_log",
"last_attempted_at": 1668480248
}
],
"id": "637306fb5eeaad00015eeb6f",
"object": "event",
"type": "webhook.created",
"created_at": 1668482811
}
Webhook actualizado - webhook.updated
webhook.updated
{
"data": {
"object": {
"url": "https://example.com/api/v1/notifications",
"status": "being_pinged",
"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",
"order.declined",
"cashout.canceled",
"cashout.confirmed",
"webhook_ping",
"customer.payment_source.card.blocked"
],
"synchronous": false,
"id": "6386a1d71687bc002131cb6f",
"object": "webhook",
"production_enabled": false,
"development_enabled": true
},
"previous_attributes": {
}
},
"livemode": true,
"webhook_status": "successful",
"webhook_logs": [
{
"id": "webhl_2sr6P2oyFqNTSLghJ",
"url": "http://requestb.in/1467d141",
"failed_attempts": 12,
"last_http_response_status": 200,
"response_data": {},
"object": "webhook_log",
"last_attempted_at": 1668480248
}
],
"id": "637306fb5eeaad00015eeb6f",
"object": "event",
"type": "webhook.updated",
"created_at": 1668482811
}
Webhook eliminado - webhook.deleted
webhook.deleted
{
"data": {
"object": {
"url": "https://example.com/api/v1/notifications",
"status": "being_pinged",
"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",
"order.declined",
"cashout.canceled",
"cashout.confirmed",
"webhook_ping",
"customer.payment_source.card.blocked"
],
"synchronous": false,
"id": "6386a1d71687bc002131cb6f",
"object": "webhook",
"production_enabled": false,
"development_enabled": true
},
"previous_attributes": {
}
},
"livemode": true,
"webhook_status": "successful",
"webhook_logs": [
{
"id": "webhl_2sr6P2oyFqNTSLghJ",
"url": "http://requestb.in/1467d141",
"failed_attempts": 12,
"last_http_response_status": 200,
"response_data": {},
"object": "webhook_log",
"last_attempted_at": 1668480248
}
],
"id": "637306fb5eeaad00015eeb6f",
"object": "event",
"type": "webhook.deleted",
"created_at": 1668482811
}
Updated about 1 year ago